Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1452124

Summary: [RFE] Hammer cli does not list Type field when listing subscriptions.
Product: Red Hat Satellite Reporter: Mustufa Mithaiwala <mmithaiw>
Component: Subscription ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.8CC: bbuckingham, bkearney, jcallaha
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: x86_64   
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 12:39:11 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: 1479962    
Attachments:
Description Flags
Hammer_cli_outout not showing type column
none
Sat UI-subscription shows Type. none

Description Mustufa Mithaiwala 2017-05-18 11:54:33 UTC
Created attachment 1279965 [details]
Hammer_cli_outout not showing type column

1. Proposed title of this feature request

Ans. hammer subscription list --organization-id <ID> does not show Type column via hammer CLI.

2. Who is the customer behind the request?

     Account: name (acct #) United Health Care,620335

     TAM customer: no/yes :- YES.

     SRM customer: no/yes :NO

     Strategic: no/yes:- YES.

3. What is the nature and description of the request?

Ans:- 
Sat UI:-

When we check subscriptions via Sat UI->Content->Red Hat Subscriptions->Enter filter, we see the column Type(Physical or Virtual) while performing via hammer CLI it does not show.

Eg:- hammer subscription list --organization-id '<ID>'.

4. Why does the customer need this? (List the business requirements here).

Ans :- Customer wants to operate Satellite via CLI utility.

5. How would the customer like to achieve this? (List the functional requirements here)

Ans:- Next version release.

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

Ans:- N/A.

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

Ans:- No

8. Does the customer have any specific time-line dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

Ans:- Next version release.

9. Is the sales team involved in this request and do they have any additional input?

Ans: No.

10. List any affected packages or components.
Ans: N/A.

11. Would the customer be able to assist in testing this functionality if implemented?

Ans: Yes.

Comment 1 Mustufa Mithaiwala 2017-05-18 11:56:19 UTC
Created attachment 1279966 [details]
Sat UI-subscription shows Type.

Comment 2 Bryan Kearney 2017-08-04 17:22:17 UTC
VERIFIED
Verified in Version: sat-6.3.0 Snap 9

[root@sat63-qa-rhel7 log]# hammer subscription list --organization-id 1
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
ID | UUID                             | NAME         | TYPE     | CONTRACT | ACCOUNT | SUPPORT | END DATE            | QUANTITY  | CONSUMED
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
1  | 4028f9c25d995595015d9981b34b0006 | VMware-tools | Physical |          |         |         | 2047/07/24 16:36:40 | Unlimited | 0       
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------

[root@sat63-qa-rhel7 log]# rpm -qa | grep hammer
tfm-rubygem-hammer_cli_katello-0.10.0-1.el7sat.noarch
tfm-rubygem-hammer_cli-0.10.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.5-3.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_csv-2.3.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-3.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_import-0.11.3-3.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.6-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-7.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.4-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-4.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.0.0-1.el7sat.noarch

Comment 6 errata-xmlrpc 2018-02-21 12:39:11 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