Bug 1386831

Summary: Exception is raised for discovery facts command
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: HammerAssignee: Swapnil Abnave <sabnave>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 6.2.3CC: bbuckingham, bkearney, dhlavacd, lzap, oshtaier, sabnave, sghai, tstrachota
Target Milestone: UnspecifiedKeywords: AutomationBlocker, EasyFix, Triaged
Target Release: UnusedFlags: sabnave: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 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:

Description Oleksandr Shtaier 2016-10-19 16:55:10 UTC
Description of problem:
When I try to get all associated facts for specific discovered hosts, error is raised:
hammer -u admin -p changeme discovery facts --id=2
-----------------------|---------------------------------------------------------------------------------
FACT                   | VALUE                                                                           
-----------------------|---------------------------------------------------------------------------------
link_lo                | true                                                                            
link_eth0              | true
...
lib                    | /usr/share/fdi/facts:/opt/extension/facts                                       
-----------------------|---------------------------------------------------------------------------------
Error: undefined method `meta' for #<Array:0x0000000391d270>


Version-Release number of selected component (if applicable):
Satellite ​6.2.3-1.1 

How reproducible:
Always

Steps to Reproduce:
1. Discover PXE or PXEless host
2. Try to get facts for it
3.

Actual results:
Error is raised

Expected results:
Facts are returned successfully

Additional info:

Comment 4 Swapnil Abnave 2016-10-25 07:06:05 UTC
Hi Oleksandr,

Can you please provide details of the reproducer setup ?
This would help me debug the issue.


Thanks!

Comment 7 Swapnil Abnave 2016-11-16 10:00:15 UTC
Tested and Verified on Satellite 6.3.0 snap 5.

Result: No exception raised for following command.

#hammer -v discovery facts --id 2.

Please close with correct status(I am not sure what commit had fixed this)

Comment 8 Bryan Kearney 2016-11-16 11:09:50 UTC
Upstream bug component is Hammer

Comment 9 Bryan Kearney 2016-11-16 11:09:54 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17056 has been resolved.

Comment 10 Lukas Zapletal 2016-11-23 10:30:54 UTC
I suggest to move this to ON_QA since there will not be any patch to backport.

Comment 11 Bryan Kearney 2017-01-05 20:10:01 UTC
Moving to VERIFIED per comment 7

Comment 12 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