Bug #10646
closedCannot build new host when locations hav been enabled and then disabled.
Description
I was testing the use of locations in our foreman 1.8.0 dev server. I created 2 locations and assigned some hosts to them. I disabled locations as it was not of value to us at this time.
After upgrading ( what appeared to be successfully ) to foreman 1.8.1 I could no longer build a new host, I was simply returned to the submit page again.
When looking at the Interfaces tab I saw a red banner indicating a network config error but there was nothing highlighted in the dialog box.
In the production.log I saw "Failed to save: Subnet is not defined for host's location."
I re-enabled locations and added all subnets to the first location and was able to build a new host, on disabling locations again new hosts failed with the same error
As a hack I manually edited the foreman database and removed location references in hosts, taxable_taxonomies and taxonomies, I was then able to build new hosts with locations disabled.
Updated by Dominic Cleal over 9 years ago
- Category changed from Host creation to Organizations and Locations
- Translation missing: en.field_release set to 56
Updated by Dominic Cleal over 9 years ago
- Related to Bug #9391: subnet without organization/location and host using the subnet in org/loc => unable to set org/loc on the subnet added
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Assigned
- Assignee set to Dominic Cleal
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2411 added
- Pull request deleted (
)
Updated by Dominic Cleal over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset d6a192531b7203b12f5e755a7b695435c423ece4.