Project

General

Profile

Actions

Bug #10646

closed

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

Added by Mark Gargiulo almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Bug #9391: subnet without organization/location and host using the subnet in org/loc => unable to set org/loc on the subnetClosedShimon Shtein02/15/2015Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Category changed from Host creation to Organizations and Locations
  • translation missing: en.field_release set to 56
Actions #2

Updated by Dominic Cleal almost 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
Actions #3

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #4

Updated by The Foreman Bot almost 9 years ago

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

Updated by Dominic Cleal almost 9 years ago

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

Also available in: Atom PDF