Bug 1386831 - Exception is raised for discovery facts command
Summary: Exception is raised for discovery facts command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.3
Hardware: x86_64
OS: Linux
medium
low vote
Target Milestone: Unspecified
Assignee: Swapnil Abnave
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 16:55 UTC by Oleksandr Shtaier
Modified: 2019-09-26 14:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:49:54 UTC
Target Upstream Version:
sabnave: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17056 0 None None None 2016-11-16 10:01:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.