Bug 1201738
Summary: | hammer discovery info cmd should show the 'Model' value | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | Discovery Plugin | Assignee: | orabin | ||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | CC: | mmccune | ||||
Target Milestone: | Unspecified | Keywords: | 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: |
|
Created redmine issue http://projects.theforeman.org/issues/10192 from this bug Upstream bug assigned to orabin Upstream bug component is Discovery Plugin Moving to POST since upstream bug http://projects.theforeman.org/issues/10192 has been closed ------------- Ori Rabin Applied in changeset commit:hammer-discovery|a460c5c0b1841b016d620049adf415cbf45b657b. 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 ~]# 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 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 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 |
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: