Bug 1201738

Summary: hammer discovery info cmd should show the 'Model' value
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Discovery PluginAssignee: orabin
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10192
Whiteboard:
Fixed In Version: rubygem-hammer_cli_foreman_discovery-0.0.2.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:15:37 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:
Attachments:
Description Flags
'KVM' is set under Model on UI none

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