Project

General

Profile

Bug #10646

Cannot build new host when locations hav been enabled and then disabled.

Added by Mark Gargiulo about 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

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.


Related issues

Related to Foreman - Bug #9391: subnet without organization/location and host using the subnet in org/loc => unable to set org/loc on the subnetClosed2015-02-15

Associated revisions

Revision d6a19253 (diff)
Added by Dominic Cleal about 7 years ago

fixes #10646 - disable NIC subnet taxonomy checks when feature's disabled

Revision 37b5e080 (diff)
Added by Dominic Cleal about 7 years ago

fixes #10646 - disable NIC subnet taxonomy checks when feature's disabled

(cherry picked from commit d6a192531b7203b12f5e755a7b695435c423ece4)

History

#1 Updated by Dominic Cleal about 7 years ago

  • Category changed from Host creation to Organizations and Locations
  • Legacy Backlogs Release (now unused) set to 56

#2 Updated by Dominic Cleal about 7 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

#3 Updated by Dominic Cleal about 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#4 Updated by The Foreman Bot about 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2411 added
  • Pull request deleted ()

#5 Updated by Dominic Cleal about 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF