Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1201731

Summary: hammer discovery list command should show the correct subnet value
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Discovery PluginAssignee: orabin
Status: CLOSED NEXTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10193
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:03:35 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
on UI subnet field shows subnet name along with actual subnet(192.168.100.0/24) none

Description Sachin Ghai 2015-03-13 11:22:50 UTC
Description of problem:


# hammer --username admin --password changeme discovery list
/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 | NAME            | MAC               | LAST REPORT         | CPUS | MEMORY | DISK COUNT | DISKS SIZE | SUBNET  | LAST REPORT        
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------
2  | mac525400e0e8ab | 52:54:00:e0:e8:ab | 2015/03/13 03:58:44 | 1    | 995    | 1          | 8192       | libvirt | 2015/03/13 03:58:44
---|-----------------|-------------------|---------------------|------|--------|------------|------------|---------|--------------------


Here subnet column displays 'libvirt', it should show actual subnet too like in UI:  libvirt (192.168.100.0/24)

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 subnet in discovery list cmd.

Expected results:
Subnet column displays 'libvirt', it should show actual subnet too like in UI:  libvirt (192.168.100.0/24)


Additional info:

Comment 2 Sachin Ghai 2015-03-13 11:25:46 UTC
same issue with info command:

[root@dhcp201-163 boot]# hammer --username admin --password changeme discovery info --id 2
/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

Comment 3 Sachin Ghai 2015-03-13 11:41:35 UTC
Created attachment 1001360 [details]
on UI subnet field shows subnet name along with actual subnet(192.168.100.0/24)

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

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

Comment 6 Bryan Kearney 2016-12-29 09:20:40 UTC
Upstream bug assigned to orabin

Comment 7 Bryan Kearney 2016-12-29 09:20:44 UTC
Upstream bug assigned to orabin

Comment 8 Bryan Kearney 2017-01-02 17:20:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/10193 has been resolved.

Comment 9 Bryan Kearney 2017-08-01 20:03:35 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.