Bug #29093
closedIssue with hammer shell while using "--fields" parameter to display host info
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1805028
Description of problem:
Issue with hammer shell while using "--fields" parameter to display host info
Version-Release number of selected component (if applicable):
Red Hat Satellite Server 6.7
How reproducible:
Steps to Reproduce:
1. Login to hammer shell on the Satellite server
2. Get the information for any registered host. For the first time it will display complete information
3. Now try to pull information for a specific field.
4. Again try to pull information for the host. I will only display information for previously search field
Below is the actual output
===================================
hammer> host info --id 5
Id: 5
Name: vm252-147.gsslab.pnq2.redhat.com
Organization: Default Organization
Location: Default Location
Puppet Environment: production
Puppet CA Proxy: vm252-147.gsslab.pnq2.redhat.com
Puppet Master Proxy: vm252-147.gsslab.pnq2.redhat.com
Cert name: vm252-147.gsslab.pnq2.redhat.com
Managed: no
Installed at:
Last report: 2020/02/20 05:16:33
Uptime (seconds): 175439
Status:
Global Status: Error
Network:
IPv4 address: 10.74.252.147
IPv6 address: 2620:52:0:4af8:21a:4aff:fe00:2c6
MAC: 00:1a:4a:00:02:c6
Domain: gsslab.pnq2.redhat.com
Network interfaces:
1) Id: 5
Identifier: eth0
Type: interface (primary, provision)
MAC address: 00:1a:4a:00:02:c6
IPv4 address: 10.74.252.147
IPv6 address: 2620:52:0:4af8:21a:4aff:fe00:2c6
FQDN: vm252-147.gsslab.pnq2.redhat.com
Operating system:
Architecture: x86_64
Operating System: RedHat 7.7
Build: no
Custom partition table:
Parameters:
All parameters:
enable-puppet5 => true
enable-epel => false
Additional info:
Owner: Admin User
Owner Id: 4
Owner Type: User
Enabled: yes
Model: RHEV Hypervisor
Comment:
OpenSCAP Proxy:
Content Information:
Content View:
ID: 1
Name: Default Organization View
Lifecycle Environment:
ID: 1
Name: Library
Content Source:
ID:
Name:
Kickstart Repository:
ID:
Name:
Applicable Packages: 105
Upgradable Packages: 105
Applicable Errata:
Enhancement: 3
Bug Fix: 28
Security: 10
Subscription Information:
UUID: 984979c1-4fe1-4f82-9b95-92c0b82279ce
Last Checkin: 2020-02-20 05:25:04 UTC
Release Version:
Autoheal: true
Registered To: vm253-166.gsslab.pnq2.redhat.com
Registered At: 2020-02-18 05:58:01 UTC
System Purpose:
Service Level:
Purpose Usage:
Purpose Role:
Purpose Addons:
Host Collections:
hammer> host info --fields "Network/Domain" --id 5
Network:
Domain: gsslab.pnq2.redhat.com
hammer> host info --id 5
Id: 5
Name: vm252-147.gsslab.pnq2.redhat.com
Organization: Default Organization
Location: Default Location
Puppet Environment: production
Puppet CA Proxy: vm252-147.gsslab.pnq2.redhat.com
Puppet Master Proxy: vm252-147.gsslab.pnq2.redhat.com
Cert name: vm252-147.gsslab.pnq2.redhat.com
Managed: no
Installed at:
Last report: 2020/02/20 05:46:33
Uptime (seconds): 176711
Status:
Network:
Domain: gsslab.pnq2.redhat.com
Network interfaces:
1)
Operating system:
Parameters:
All parameters:
Additional info:
OpenSCAP Proxy:
Content Information:
Subscription Information:
Host Collections:
==============================
Actual results:
Display information for previously search field
Expected results:
It should display complete information for the host
Additional info:
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Oleh Fedorenko
- Pull request https://github.com/theforeman/hammer-cli/pull/341 added
Updated by Oleh Fedorenko over 3 years ago
- Status changed from Ready For Testing to New
- Assignee deleted (
Oleh Fedorenko) - Pull request deleted (
https://github.com/theforeman/hammer-cli/pull/341)
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/345 added
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases hammer-cli-3.0.0 added
Updated by Adi Abramovitch over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 2988cc6e08f91d7506280f335f90be33f4305786.
Updated by Oleh Fedorenko over 3 years ago
- Status changed from Closed to Assigned
- Pull request deleted (
https://github.com/theforeman/hammer-cli/pull/345)
Updated by Oleh Fedorenko over 3 years ago
- Fixed in Releases deleted (
hammer-cli-3.0.0)
Updated by The Foreman Bot about 3 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/348 added
Updated by The Foreman Bot about 3 years ago
- Fixed in Releases hammer-cli-3.1.0 added
Updated by Anonymous about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset c8430df12d28856abcdb9ca076040ca9cbe72c8c.