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 1201738 - hammer discovery info cmd should show the 'Model' value
Summary: hammer discovery info cmd should show the 'Model' value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: orabin
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-13 11:45 UTC by Sachin Ghai
Modified: 2019-09-26 17:38 UTC (History)
1 user (show)

Fixed In Version: rubygem-hammer_cli_foreman_discovery-0.0.2.2-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:15:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
'KVM' is set under Model on UI (24.47 KB, image/png)
2015-03-13 11:45 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10192 0 None None None 2016-04-22 16:17:31 UTC

Description Sachin Ghai 2015-03-13 11:45:55 UTC
Created attachment 1001361 [details]
'KVM' is set under Model on UI

Description of problem:
[root@dhcp201-163 boot]# hammer --username admin --password changeme discovery info --name mac525400e0e8ab
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
ID:           2
Name:         mac525400e0e8ab
MAC:          52:54:00:e0:e8:ab
Last report:  2015/03/13 03:58:44
CPUs:         1
Memory:       995
Disk count:   1
Disks size:   8192
Subnet:       libvirt
Last Report:  2015/03/13 03:58:44
IP:           192.168.100.11
Model:        
Organization: Default Organization
Location:     Default Location

IN UI, Model value is 'KVM', same should be updated in cli.

Version-Release number of selected component (if applicable):
sat6.1 beta snap6 compose2
Satellite-6.1.0-RHEL-6-20150311.1/

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
Missing 'Model' value

Expected results:
Should be same as shown in webUI. Please see attachment.

Additional info:

Comment 2 Bryan Kearney 2015-04-17 20:10:14 UTC
Created redmine issue http://projects.theforeman.org/issues/10192 from this bug

Comment 3 Bryan Kearney 2015-08-02 14:03:54 UTC
Upstream bug assigned to orabin

Comment 4 Bryan Kearney 2015-08-25 18:34:30 UTC
Upstream bug component is Discovery Plugin

Comment 5 Bryan Kearney 2015-09-08 08:03:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10192 has been closed
-------------
Ori Rabin
Applied in changeset commit:hammer-discovery|a460c5c0b1841b016d620049adf415cbf45b657b.

Comment 6 Sachin Ghai 2015-10-20 10:46:49 UTC
Verified with latest upstream build:

foreman-release-1.11.0-0.develop.201510121538gitb6b977a.el7.noarch


Model value is still blank:


[root@cloud-qe-19 ~]# hammer --username admin --password changeme discovery list
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
ID | NAME            | MAC               | LAST REPORT         | CPUS | MEMORY | DISK COUNT | DISKS SIZE | SUBNET  | LAST REPORT        
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
3  | mac525400b6fb1f | 52:54:00:b6:fb:1f | 2015/10/15 09:24:02 | 1    | 994    | 2          | 8413       | libvirt | 2015/10/15 09:24:02
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------


[root@cloud-qe-19 ~]# hammer --username admin --password changeme discovery info --name mac525400b6fb1f
ID:           3
Name:         mac525400b6fb1f
MAC:          52:54:00:b6:fb:1f
Last report:  2015/10/15 09:24:02
CPUs:         1
Memory:       994
Disk count:   2
Disks size:   8413
Subnet:       libvirt
Last Report:  2015/10/15 09:24:02
IP:           192.168.100.10
Model:        
Organization: Default Organization
Location:     Default Location

[root@cloud-qe-19 ~]# rpm -qa | grep hammer_cli_foreman_discovery
tfm-rubygem-hammer_cli_foreman_discovery-doc-0.0.2-3.el7.noarch
tfm-rubygem-hammer_cli_foreman_discovery-0.0.2-3.el7.noarch
[root@cloud-qe-19 ~]#

Comment 11 Sachin Ghai 2016-04-07 10:47:30 UTC
Verified with sat6.2 beta snap6.2

Model value is still blank:


~]# hammer --username admin --password changeme discovery list
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
ID | NAME            | MAC               | LAST REPORT         | CPUS | MEMORY | DISK COUNT | DISKS SIZE | SUBNET  | LAST REPORT        
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
4  | mac5254008e5a88 | 52:54:00:8e:5a:88 | 2016/04/07 10:31:11 | 1    | 994    | 1          | 8192       | libvirt | 2016/04/07 10:31:11
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
[root@cloud-qe-17 ~]# hammer --username admin --password changeme discovery info --name mac5254008e5a88
ID:           4
Name:         mac5254008e5a88
MAC:          52:54:00:8e:5a:88
Last report:  2016/04/07 10:31:11
CPUs:         1
Memory:       994
Disk count:   1
Disks size:   8192
Subnet:       libvirt
Last Report:  2016/04/07 10:31:11
IP:           192.168.100.11
Model:        
Organization: Default Organization
Location:     Default Location

Comment 14 Sachin Ghai 2016-05-06 13:30:40 UTC
Verified with sat62 GA snap10

I can see Model value now under discovered host info.

[root@cloud-qe-3 pxelinux.cfg]# hammer -u admin -p changeme discovery info --id 3
ID:           3
Name:         mac525400307533
MAC:          52:54:00:30:75:33
Last report:  2016/05/06 13:28:17
CPUs:         1
Memory:       994
Disk count:   1
Disks size:   8192
Subnet:       libvirt
Last Report:  2016/05/06 13:28:17
IP:           192.168.100.11
Model:        KVM
Organization: Default Organization
Location:     Default Location

Comment 15 Bryan Kearney 2016-07-27 11:15:37 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/RHBA-2016:1501


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