Bug 1361993

Summary: Listing product content for an activation key does not show default state in Hammer
Product: Red Hat Satellite Reporter: jalviso <jalviso>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, jcallaha, oshtaier, rankumar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:49:54 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 jalviso 2016-08-01 06:41:18 UTC
Description of problem:

In Hammer, listing product content for an activation key does not show default state (whether it is Yes/No). It only shows "Enabled?" column as "default" but it does not show the actual status.

In SatWEBUI, the Product Content status is shown as defaulted to Yes or No.


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


How reproducible: Always


Steps to Reproduce:

1. List product content of activation key in Hammer:

# hammer activation-key product-content --id 2 --organization "Red Hat"
----|----------------------------------------------------|----|---|-------|------------------------------|--------
ID  |NAME                                                |TYPE|URL|GPG KEY| LABEL                        |ENABLED?
----|----------------------------------------------------|----|---|-------|------------------------------|--------
4425|Red Hat Enterprise Virtualization Manager 3.6 (RPMs)|    |   |       | rhel-6-server-rhevm-3.6-rpms |default 
2455|Red Hat Enterprise Linux 7 Server (Kickstart)       |    |   |       | rhel-7-server-kickstart      |default 
2456|Red Hat Enterprise Linux 7 Server (RPMs)            |    |   |       | rhel-7-server-rpms           |default 
----|----------------------------------------------------|----|---|-------|------------------------------|--------

2. In Satellite WEBUI, Content> Activation Key> Product Content>

each repo/product-content is shown if enabled or not (Enabled Yes/No)


Actual results:

Hammer output does not contain information as the WEBUI provides.


Expected results:

Hammer output to show product-content enabled status as Yes/No

Additional info:

Comment 3 Bryan Kearney 2016-08-10 16:17:29 UTC
Upstream bug component is Content Management

Comment 4 Bryan Kearney 2016-08-10 16:17:32 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16000 has been closed

Comment 7 Peter Ondrejka 2016-10-21 11:33:01 UTC
Verified in Satellite 6.3 snap 5, enabled status is now present in the output of hammer command:

# hammer activation-key product-content --id 1
-----|----------------------------------------------------------|------|-----|---------|------------------------------------------|----------|---------
ID   | NAME                                                     | TYPE | URL | GPG KEY | LABEL                                    | ENABLED? | OVERRIDE
-----|----------------------------------------------------------|------|-----|---------|------------------------------------------|----------|---------
4751 | Red Hat Satellite Capsule 6.2 (for RHEL 7 Server) (RPMs) |      |     |         | rhel-7-server-satellite-capsule-6.2-rpms | no       | default 
4831 | Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs)   |      |     |         | rhel-7-server-satellite-tools-6.2-rpms   | no       | default 
2456 | Red Hat Enterprise Linux 7 Server (RPMs)                 |      |     |         | rhel-7-server-rpms                       | yes      | default 
-----|----------------------------------------------------------|------|-----|---------|------------------------------------------|----------|---------

Comment 8 Satellite Program 2018-02-21 16:49:54 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/RHSA-2018:0336