Bug 1364876

Summary: [Sat6.2] command "hammer activation-key add-host-collection" fails if using option "--host-collection" with organization_id set to default 1
Product: Red Hat Satellite Reporter: jalviso <jalviso>
Component: Content ManagementAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, jcallaha, oshtaier
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1459860 (view as bug list) Environment:
Last Closed: 2018-02-21 16:49:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1459860    

Comment 1 Andrew Kofink 2016-08-09 18:22:54 UTC
Created redmine issue http://projects.theforeman.org/issues/16034 from this bug

Comment 3 Bryan Kearney 2016-08-10 16:17:46 UTC
Upstream bug component is Content Management

Comment 4 Bryan Kearney 2016-08-10 18:17:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16034 has been closed

Comment 8 Peter Ondrejka 2016-10-24 12:34:40 UTC
Verified in Satellite 6.3 snap 5. Host collection can be successfully added to an activation key by name with preset default org:

~]# hammer defaults list 
----------------|------
PARAMETER       | VALUE
----------------|------
organization_id | 1    
----------------|------

~]# hammer activation-key add-host-collection --host-collection testcollection --id 1
The host collection has been associated

Comment 9 Satellite Program 2018-02-21 16:49:54 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336