Bug 1779093

Summary: Re-add owner-id output in "hammer host info"
Product: Red Hat Satellite Reporter: Stefan Meyer <smeyer>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Akhil Jha <akjha>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: apatel, egolov, kgaikwad, mshira, ofedoren, rabajaj
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.19.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 15:54:09 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:

Description Stefan Meyer 2019-12-03 09:56:09 UTC
Description of problem:
From Satellite 6.4 forward the information for the owner ID was replaced with the owner name


Version-Release number of selected component (if applicable):
6.4+

How reproducible:
In 6.4 "hammer host info --name "systemname" shows:

  Additional info:
  Owner Id: 6
  Owner Type: User
  Enabled: yes
  Model: Standard PC (i440FX + PIIX, 1996)
  Comment: This is a comment


Actual results:

  Additional info:
  Owner: User Name
  Owner Type: User
  Enabled: yes
  Model: Standard PC (i440FX + PIIX, 1996)
  Comment: This is a comment

Expected results:

  Additional info:
  Owner: User Name
  Owner Id: 6
  Owner Type: User
  Enabled: yes
  Model: Standard PC (i440FX + PIIX, 1996)
  Comment: This is a comment

Additional info:

Comment 3 Bryan Kearney 2019-12-03 15:01:45 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28397 has been resolved.

Comment 4 vijsingh 2019-12-08 05:17:50 UTC
ON_QA

@Satellite 6.7.0 snap 5.0

Steps/Observation:

hammer> host info --id 2 --fields 'Additional info'
Additional info: 
    Owner:      Admin User
    Owner Id:   4
    Owner Type: User
    Enabled:    yes
    Comment:

hammer> user info --id 4 --fields 'Name'
Name: Admin User

Comment 5 vijsingh 2019-12-08 05:18:14 UTC
ON_QA Verified.

Comment 8 errata-xmlrpc 2020-04-14 15:54:09 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, 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/RHBA-2020:1455