Bug #24199
closedAssigning environment on host create doesn't check the assignment of organization/location
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1595161
Steps to Reproduce:
1. make sure the puppet environment has puppet classes, but is not assigned to the organization or location that the host will be created in
1. # hammer -d -v -u admin -p changeme host create --architecture-id="1" --domain-id="4" --environment-id="6" --ip="186.107.94.90" --location-id="2" --mac="4c:f7:c4:84:e2:92" --medium-id="11" --name="jhutar$RANDOM" --operatingsystem-id="2" --organization-id="1" --partition-table-id="94" --puppet-class-ids="6" --root-password="..."
Actual results:
The host is created, without any warning, but assignment of puppet classes is wrong at the end
Expected results:
The hammer command fails with error, that the provided environment doesn't belong to the organization/location
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Pull request https://github.com/theforeman/foreman/pull/5793 added
Updated by Stephen Benjamin over 6 years ago
- Copied to Bug #24239: Katello host tests do not add puppet environment to orgs/locs added
Updated by Marek Hulán over 6 years ago
- Related to Bug #24348: hammer host create returns ISE when LibVirt compute-resource is not in correct organization added
Updated by Marek Hulán over 6 years ago
- Subject changed from Assigning environment on host create doesn't check the assignment of organization/location to Assigning environment on host create doesn't check the assignment of organization/location
- Target version set to 1.20.0
- Fixed in Releases 1.20.0 added
Updated by Ivan Necas over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 488a94b5f2e94ae4cba6b9f33c1e2498c192eca2.
Updated by Lukas Zapletal over 6 years ago
- Related to Bug #24647: Assigning environment on hostgroup create doesn't check the assignment of organization/location added