Project

General

Profile

Actions

Bug #24199

closed

Assigning environment on host create doesn't check the assignment of organization/location

Added by Ivan Necas almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #24348: hammer host create returns ISE when LibVirt compute-resource is not in correct organizationClosedActions
Related to Foreman - Bug #24647: Assigning environment on hostgroup create doesn't check the assignment of organization/locationClosedLukas ZapletalActions
Copied to Katello - Bug #24239: Katello host tests do not add puppet environment to orgs/locsClosedIvan Necas07/09/2018Actions
Actions

Also available in: Atom PDF