Bug 1396883

Summary: Unable to update the individual `hosts collection` with `content host` through hammer cli
Product: Red Hat Satellite Reporter: vijsingh
Component: Hammer - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.3CC: dhlavacd, inecas, mhulan, sabnave, tstrachota, vijsingh
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-22 10:42:33 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:

Description vijsingh 2016-11-21 05:13:03 UTC
Description of problem:

Unable to update the individual `hosts collection` with `content host` through 
hammer cli

Version-Release number of selected component (if applicable):

hammer_cli-0.5.1.11-4


How reproducible:

each time.

Steps to Reproduce:

1.Remove all host collections through the GUI and execute below 

 # hammer content-host update --name `hostname` --organization `org_name` --host-collection-ids `2,4`    
     
2.Above command returns with "Content host updated" and if check GUI, all four host collections are attached to `content host`

Actual results:

Command returns with "Content host updated" and if check GUI, all four host collections are attached to `content host`

Expected results:

It should attached to individual `hosts collection` with `content host` instead of all attached.

Additional info:

Comment 1 Swapnil Abnave 2016-11-22 05:33:06 UTC
(In reply to vijsingh from comment #0)
> Description of problem:
> 
> Unable to update the individual `hosts collection` with `content host`
> through 
> hammer cli
> 
> Version-Release number of selected component (if applicable):
> 
> hammer_cli-0.5.1.11-4
> 
> 
> How reproducible:
> 
> each time.
> 
> Steps to Reproduce:
> 
> 1.Remove all host collections through the GUI and execute below 
> 
>  # hammer content-host update --name `hostname` --organization `org_name`
> --host-collection-ids `2,4`    
>      
> 2.Above command returns with "Content host updated" and if check GUI, all
> four host collections are attached to `content host`
> 
> Actual results:
> 
> Command returns with "Content host updated" and if check GUI, all four host
> collections are attached to `content host`
> 
> Expected results:
> 
> It should attached to individual `hosts collection` with `content host`
> instead of all attached.
> 
> Additional info:

Do you have a reproducer for this ?

I think it works as expected in Satellite 6.2.4.

Can you please try to on Satellite 6.2.4 ?

Comment 2 vijsingh 2016-11-22 07:34:45 UTC
Checked with Satellite 6.2.4 and working as expected.

Comment 3 Swapnil Abnave 2016-11-22 10:42:33 UTC
Issue has been fixed on Satellite 6.2.4. Hence closing the BZ ticket.

If this issue has been raised by any customer please suggest to upgrade to Satellite 6.2.4 or greater.