Bug #21165
Updated by Tomáš Strachota over 4 years ago
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1483252
*Description of problem:*
Unable to view the content-source information from hammer host info
<pre>
~]# hammer -u admin -p changeme host info --id 3
Id: 3
UUID: b81f8c0d-6622-43a0-acc1-7c5228f9ed4b
Name: sara-volking.domain.redhat.com
Organization: Default Organization
Location: Default Location
Host Group: RHEL 7 Server 64-bit HG
Compute Resource: libvirt
Environment: production
Puppet CA Id: 1
Puppet Master Id: 1
Cert name: sara-volking.domain.redhat.com
Managed: yes
Installed at:
Last report:
Network:
IP: 10.x.x.x
MAC: 52:54:xx:yy:zz:aa
Subnet: katello_latest
Domain: satqe.lab.eng.rdu2.redhat.com
Network interfaces:
1) Id: 3
Identifier:
Type: interface (primary, provision)
MAC address: 52:54:xx:yy:zz:aa
IP address: 10.x.x.x
FQDN:
Operating system:
Architecture: x86_64
Operating System: RedHat 7.3
Build: yes
Partition Table: Kickstart default
Custom partition table:
Parameters:
Additional info:
*Additional info:*
Owner Id: 3
Owner Type: User
Enabled: yes
Comment:
Content Information:
Content View: RHEL 7 CV
Lifecycle Environment: DEV
Applicable Packages: 0
Upgradable Packages: 0
Applicable Errata:
Enhancement:
Bug Fix:
Security:
Subscription Information:
UUID:
Last Checkin:
Service Level:
Release Version:
Autoheal:
Registered At:
Host Collections:
1) Id: 1
Name: Test_bug_Dev
</pre>
*Version-Release number of selected component (if applicable):*
hammer-cli-katello 0.11.1
*Steps to Reproduce:*
1. create a host
2. run hammer host info --id <hostid>
*Actual results:*
No content-source information from "hammer host info --id <host-id>"
*Expected results:*
Should list content-source information from "hammer host info --id <host-id>"
*Additional info:*
API provides the data, the fix should be just matter of adding a new field into hammer-cli-katello's extenstions of the host command:
https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/host_extensions.rb
*Description of problem:*
Unable to view the content-source information from hammer host info
<pre>
~]# hammer -u admin -p changeme host info --id 3
Id: 3
UUID: b81f8c0d-6622-43a0-acc1-7c5228f9ed4b
Name: sara-volking.domain.redhat.com
Organization: Default Organization
Location: Default Location
Host Group: RHEL 7 Server 64-bit HG
Compute Resource: libvirt
Environment: production
Puppet CA Id: 1
Puppet Master Id: 1
Cert name: sara-volking.domain.redhat.com
Managed: yes
Installed at:
Last report:
Network:
IP: 10.x.x.x
MAC: 52:54:xx:yy:zz:aa
Subnet: katello_latest
Domain: satqe.lab.eng.rdu2.redhat.com
Network interfaces:
1) Id: 3
Identifier:
Type: interface (primary, provision)
MAC address: 52:54:xx:yy:zz:aa
IP address: 10.x.x.x
FQDN:
Operating system:
Architecture: x86_64
Operating System: RedHat 7.3
Build: yes
Partition Table: Kickstart default
Custom partition table:
Parameters:
Additional info:
*Additional info:*
Owner Id: 3
Owner Type: User
Enabled: yes
Comment:
Content Information:
Content View: RHEL 7 CV
Lifecycle Environment: DEV
Applicable Packages: 0
Upgradable Packages: 0
Applicable Errata:
Enhancement:
Bug Fix:
Security:
Subscription Information:
UUID:
Last Checkin:
Service Level:
Release Version:
Autoheal:
Registered At:
Host Collections:
1) Id: 1
Name: Test_bug_Dev
</pre>
*Version-Release number of selected component (if applicable):*
hammer-cli-katello 0.11.1
*Steps to Reproduce:*
1. create a host
2. run hammer host info --id <hostid>
*Actual results:*
No content-source information from "hammer host info --id <host-id>"
*Expected results:*
Should list content-source information from "hammer host info --id <host-id>"
*Additional info:*
API provides the data, the fix should be just matter of adding a new field into hammer-cli-katello's extenstions of the host command:
https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/host_extensions.rb