Project

General

Profile

Actions

Bug #24199

closed

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

Added by Ivan Necas about 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 #1

Updated by The Foreman Bot about 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
Actions #2

Updated by Stephen Benjamin almost 6 years ago

  • Copied to Bug #24239: Katello host tests do not add puppet environment to orgs/locs added
Actions #3

Updated by Marek Hulán almost 6 years ago

  • Related to Bug #24348: hammer host create returns ISE when LibVirt compute-resource is not in correct organization added
Actions #4

Updated by Marek Hulán almost 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
Actions #5

Updated by Ivan Necas almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Lukas Zapletal almost 6 years ago

  • Related to Bug #24647: Assigning environment on hostgroup create doesn't check the assignment of organization/location added
Actions

Also available in: Atom PDF