Bug #23178

Organization becomes invalid when host assigned to location not in organization

Added by Andrew Kofink 3 months ago. Updated 10 days ago.

Status:Closed
Priority:Normal
Assignee:Stephen Benjamin
Category:Organizations and Locations
Target version:1.19.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/5573

Description

To reproduce:
refresh a manifest

Actual results:
Manifest is refreshed, but an error is also shown:
"Error refreshing manifest. Validation failed: Locations expecting locations used by hosts or inherited (check mismatches report)."

Expected:
Manifest is refreshed, and no errors are raised.


Related issues

Related to Katello - Bug #22373: [Audit] Refresh manifest Closed 01/23/2018

Associated revisions

Revision 86ac65a9
Added by Stephen Benjamin about 1 month ago

fixes #23178 - seeded location should be in seeded org

When creating a host in the seeded org and seeded loc, host saves and
then organization becomes invalid: "Locations expecting locations used
by hosts or inherited (check mismatches report)."

History

#1 Updated by Andrew Kofink 3 months ago

  • Related to Bug #22373: [Audit] Refresh manifest added

#2 Updated by Justin Sherrill 3 months ago

  • Legacy Backlogs Release (now unused) set to 338

When seeding the default org and location, we may not be putting the org in the location. Then when a host registers it causes both the taxonomies to become invalid.

#3 Updated by Stephen Benjamin 2 months ago

  • Subject changed from Validation failed error on manifest refresh to Organization becomes invalid when host assigned to location not in organization
  • Project changed from Katello to Foreman

Really a foreman issue.

#4 Updated by Stephen Benjamin 2 months ago

  • Assignee set to Stephen Benjamin
  • Category set to Organizations and Locations

#5 Updated by The Foreman Bot 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5573 added

#6 Updated by Tomer Brisker about 1 month ago

  • Legacy Backlogs Release (now unused) changed from 338 to 353

#7 Updated by Stephen Benjamin about 1 month ago

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

Also available in: Atom PDF