Bug 1344642

Summary: hammer host puppet-classes --host and hammer host puppet-classes --host-id produce totally different output
Product: Red Hat Satellite Reporter: Ade Bradshaw <abradshaw>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.8CC: bbuckingham, bkearney, egolov, rankumar, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 6.2.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-05 13:47:02 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:

Description Ade Bradshaw 2016-06-10 08:49:04 UTC
Description of problem:
Trying to determine which puppet classes a host as assigned using hammer

hammer host puppet-classes --host <hostname>  and hammer host puppet-classes --host-id  <host-id> produce totally different output in 6.1.9

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

How reproducible:
100%

Steps to Reproduce:
1. Hammer host list and chose a host
2. hammer host puppet-classes --host <hostname> 
3. puppet-classes --host-id  <host-id>
4. compare

Actual results:
Output is totally different

Expected results:
The results to be the same for both commands

Additional info:
Here is an example 

#hammer host list   (truncated)
...
106 | rep83-t-b3-01.lab.elga-core.at      | RedHat 7.1       | hg-elga/hg-elga-lab/hg-elga-lab-ith/hg-elga-lab-xds                          | 172.16.191.83  | 00:50:56:83:22:5d
...

# hammer host puppet-classes --host-id 106
---|-----
ID | NAME
---|-----
 
 
# hammer host puppet-classes --host rep83-t-b3-01.lab.elga-core.at
----|--------------------------------------
ID  | NAME
----|--------------------------------------
1   | access_insights_client
83  | auditd
121 | certificate_example
44  | checkmk
94  | customlimits
109 | customssh
37  | firewall
42  | firewall::linux
....  (it goes on to list many more)

https://paste.fedoraproject.org/376975/55466281/

Comment 3 Tomas Strachota 2017-05-10 09:37:37 UTC
Closing as VERIFIED based on Ranjan's comment.