Bug 1805028 - Issue with hammer shell while using "--fields" parameter to display host info
Summary: Issue with hammer shell while using "--fields" parameter to display host info
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.7.0
Hardware: All
OS: Linux
medium
low
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-20 06:20 UTC by Surjeet Salvi
Modified: 2022-07-05 14:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:27:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29093 0 Normal New Issue with hammer shell while using "--fields" parameter to display host info 2021-02-18 19:11:55 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:28:14 UTC

Description Surjeet Salvi 2020-02-20 06:20:46 UTC
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:

Comment 3 Oleh Fedorenko 2020-02-20 16:45:00 UTC
Created redmine issue https://projects.theforeman.org/issues/29093 from this bug

Comment 5 Bryan Kearney 2021-05-28 10:20:48 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/29093 has been resolved.

Comment 7 Bryan Kearney 2021-08-12 16:02:14 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/29093 has been resolved.

Comment 8 Gaurav Talreja 2021-12-24 12:27:11 UTC
Verified.

Tested on Satellite 7.0.0 Snap 3.0

Steps:
1. Register any host to Satellite
2. # hammer host info --id <id>
3. # hammer host info --fields "Network/Domain" --id <id>
4. # hammer host info --id <id>

Observation:
Displays complete information for the host as expected after once searched for the particular field

Comment 11 errata-xmlrpc 2022-07-05 14:27:59 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 (Moderate: Satellite 6.11 Release), 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/RHSA-2022:5498


Note You need to log in before you can comment on or make changes to this bug.