Bug 1779642

Summary: Organization and Location fields are missing from output of 'hammer http-proxy info' command.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: HammerAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: apatel, chrobert, kgaikwad, mshira, ofedoren, pcreech, 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.6.2-1 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:
Bug Depends On:    
Bug Blocks: 1774324, 1774325    

Description Jameer Pathan 2019-12-04 12:30:51 UTC
Description of problem:
Organization and Location fields are missing from output of 'hammer http-proxy info' command.

Version-Release number of selected component (if applicable):
- Satellite 6.7.0 snap 4
- tfm-rubygem-hammer_cli-0.19.0-2.el7sat.noarch

How reproducible:
- Always

Steps to Reproduce:
1. Create HTTP Proxy with organization and Location assigned to them.
# hammer http-proxy create --name proxy4 --url https://proxy4 --organization-id 1 --location-id 2

2. Run 'hammer http-proxy info --id 4'

Actual results:
# hammer http-proxy info --id 4
Id:       4
Name:     proxy4
Username: 
URL:      https://proxy4

Expected results:
# hammer http-proxy info --id 4
Id:       4
Name:     proxy4
Username: 
URL:      https://proxy4
Locations:     
    Default Location
Organizations: 
    Default Organization

Additional info:

Comment 3 Shira Maximov 2019-12-10 12:48:57 UTC
Created redmine issue https://projects.theforeman.org/issues/28472 from this bug

Comment 4 Bryan Kearney 2019-12-19 23:02:11 UTC
Upstream bug assigned to chrobert

Comment 5 Bryan Kearney 2019-12-19 23:02:13 UTC
Upstream bug assigned to chrobert

Comment 6 Bryan Kearney 2020-01-02 11:02:20 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28472 has been resolved.

Comment 8 Jameer Pathan 2020-01-20 14:01:40 UTC
Verified:

Verified with:
- Satellite 6.7.0 snap 9
- tfm-rubygem-hammer_cli-0.19.2-1.el7sat.noarch

Test steps:

Steps to Reproduce:
1. Create HTTP Proxy with organization and Location assigned to them.
# hammer http-proxy create --name proxy5 --url https://proxy5 --organization-ids 1,3 --location-ids 2,4

2. Run 'hammer http-proxy info --name proxy5'

Observations:
- Organization and Location fields were present in output of 'hammer http-proxy info' command.

hammer> http-proxy info --name proxy5
Id:            5
Name:          proxy5
Username:      
URL:           https://proxy5
Locations:     
    Default Location
    loc1
Organizations: 
    Default Organization
    org1

Comment 11 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