Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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
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:
Embargoed:
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.