Bug 1869918

Summary: Hammer location and organization info command outputs missing partition tables and realms
Product: Red Hat Satellite Reporter: Kaushik Sajjan Agarwal <kagarwal>
Component: HammerAssignee: Yifat Makias <ymakias>
Status: CLOSED ERRATA QA Contact: Mirek Długosz <mzalewsk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ahumbe, apatel, kgaikwad, mshira, ofedoren, pcreech, rabajaj, tbrisker
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman-2.1.2.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:32:13 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 Kaushik Sajjan Agarwal 2020-08-19 03:38:04 UTC
Description of problem:

Hammer location and organization info command outputs missing partition tables and realms.


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

Red Hat Satellite 6.8 Beta

How reproducible:

Always


Steps to Reproduce:
1. Execute "hammer location info --id x" or "hammer organization info --id x" command on satellite CLI.
2. In the output all parameters are visible except partition tables and realms. 

Actual results:

Partition tables and realms parameters are not part of the output given by "hammer location info --id x" or "hammer organization info --id x" command on satellite CLI.


Expected results:

Should show all parameters including partition tables and realms as these all parameters are visible under "Administer >> Locations >> Click on any location" or "Administer >> Organizations >> Click on any organization".

Comment 2 Yifat Makias 2020-08-19 10:07:07 UTC
Created redmine issue https://projects.theforeman.org/issues/30663 from this bug

Comment 3 Bryan Kearney 2020-08-19 12:04:47 UTC
Upstream bug assigned to ymakias

Comment 4 Bryan Kearney 2020-08-19 12:04:50 UTC
Upstream bug assigned to ymakias

Comment 5 Bryan Kearney 2020-08-19 16:04:48 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30663 has been resolved.

Comment 7 Mirek Długosz 2020-09-22 17:11:12 UTC
Partition tables and realms are part of `hammer (location|organization) info` command:

#v+
# hammer organization info --id 4 |grep ':'
Id:                     4
Title:                  my new organization
Name:                   my new organization
Description:            
Users:                  
Smart proxies:          
Subnets:                
Compute resources:      
Installation media:     
Templates:              
Partition Tables:       
Domains:                
Realms:                 
Environments:           
Hostgroups:             
Parameters:             
Created at:             2020/09/22 15:36:29
Updated at:             2020/09/22 15:36:29
Label:                  my_new_organization
Description:            
Red Hat Repository URL: https://cdn.redhat.com
Service Levels:
# hammer location info --id 3 |grep ':'
Id:                 3
Title:              my new location
Name:               my new location
Description:        
Users:              
Smart proxies:      
Subnets:            
Compute resources:  
Installation media: 
Templates:          
Partition Tables:   
Domains:            
Realms:             
Environments:       
Hostgroups:         
Parameters:         
Created at:         2020/09/22 15:36:04
Updated at:         2020/09/22 15:36:04
#v-


Tested on:
Satellite 6.8 snap 16
satellite-6.8.0-1.el7sat.noarch
katello-3.16.0-1.el7sat.noarch
foreman-2.1.2.12-1.el7sat.noarch
pulp-server-2.21.3-1.el7sat.noarch
tfm-rubygem-hammer_cli-2.1.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.22.2.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-2.1.2.1-1.el7sat.noarch

Comment 10 errata-xmlrpc 2020-10-27 13:32:13 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 (Satellite 6.8 Satellite Tools 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/RHBA-2020:4367