Project

General

Profile

Bug #29093

Issue with hammer shell while using "--fields" parameter to display host info

Added by Oleh Fedorenko over 1 year ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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:

Associated revisions

Revision 2988cc6e (diff)
Added by Adi Abramovitch 5 months ago

Fixes #29093 - change from superficial copy to deep copy of fields

Revision 684bcb1b
Added by yifat makias 5 months ago

Merge pull request #345 from adiabramovitch/29093

Fixes #29093 - change from superficial copy to deep copy of fields

Revision c8430df1 (diff)
Added by Adi Abramovich 2 months ago

Fixes #29093 - change from superficial copy to deep copy of fields (#348)

History

#1 Updated by Oleh Fedorenko over 1 year ago

  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot 8 months ago

  • Assignee set to Oleh Fedorenko
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/341 added

#3 Updated by Oleh Fedorenko 8 months ago

  • Assignee deleted (Oleh Fedorenko)
  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/theforeman/hammer-cli/pull/341)

#4 Updated by Adi Abramovitch 6 months ago

  • Assignee set to Adi Abramovitch

#5 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/345 added

#6 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases hammer-cli-3.0.0 added

#7 Updated by Adi Abramovitch 5 months ago

  • Status changed from Ready For Testing to Closed

#8 Updated by Oleh Fedorenko 5 months ago

  • Status changed from Closed to Assigned
  • Pull request deleted (https://github.com/theforeman/hammer-cli/pull/345)

#9 Updated by Oleh Fedorenko 5 months ago

  • Fixed in Releases deleted (hammer-cli-3.0.0)

#10 Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/348 added

#11 Updated by The Foreman Bot 2 months ago

  • Fixed in Releases hammer-cli-3.1.0 added

#12 Updated by Anonymous 2 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF