Project

General

Profile

Actions

Bug #11776

closed

assignment of default org and location to new hosts makes org/location invalid

Added by Justin Sherrill over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This change: https://github.com/theforeman/foreman/commit/8809a63b93b3f79eecb33a4757c4c13d2cbf4421

meant that new hosts checking in with puppet were assigned to the default org and location (as determined by the settings).

The current fact importing creates domains and puppet env, but does not associate these items to the host's organization and location.

In addition the location is not associated to the organization (which seems to also be causing a problem).

Steps to reproduce:

1) install foreman specifying a default org and location
2) let a puppet client check in
3) visit the org edit page

you'll notice lots of errors:

you cannot remove locations that are used by hosts or inherited.
you cannot remove domains that are used by hosts or inherited.
you cannot remove environments that are used by hosts or inherited.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #9654: If taxonomies are seeded, they should be the default orgsClosedStephen Benjamin03/05/2015Actions
Actions

Also available in: Atom PDF