Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1040338

Summary: Display successful stdout feedback to the user with the actual --destination value used by "rhsm-debug system" command
Product: Red Hat Enterprise Linux 7 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: alikins, ckozak, fsharath
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:07:59 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: 863175    

Description Rehana 2013-12-11 08:50:57 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.33-1
subscription-manager: 1.10.8-1.el7
python-rhsm: 1.10.8-1.el7

How reproducible:
3/3

Steps to Reproduce:
1.Register client to candlepin server
2.now execute 'rhsm-debug system ' command
3.

Actual results:
The command was successfully executed with out any error 

[root@amd-pike-05 ~]# rhsm-debug system
[root@amd-pike-05 ~]# 


Expected results:
When the command "rhsm-debug system" is executed with out the destination it should either display a 'rhsm-debug' usage error or display the help of the rhsm-debug system

Additional info:

Comment 1 John Sefler 2013-12-11 13:50:15 UTC
The default destination appears to be /tmp which is fine.

In my opionin, the feedback from running "rhsm-debug system" should be the actual path to the zip file that was created.  For example...

Expected results:
[root@jsefler-7 ~]# rhsm-debug system
Successfully created: /tmp/system-debug-20131211-464084.zip

Comment 2 John Sefler 2013-12-11 13:52:23 UTC
I would also like to see the help description for --destination rephrased to...

Actual:
  --destination=DESTINATION
                        the destination location of the zip file

Expected:
  --destination=DIRECTORY
                        the directory location for the debug zip file;
                        defaults to /tmp

Comment 3 Adrian Likins 2014-01-14 18:48:30 UTC
https://github.com/candlepin/subscription-manager/pull/859

Leaving the message a touch vague since the destination result
could be a zip file or a directory.

Comment 6 Sharath Dwaral 2014-01-23 21:26:45 UTC
Version

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.2-1
subscription-manager: 1.10.11-1.el7
python-rhsm: 1.10.11-1.el7

Verification:

# subscription-manager identity
system identity: dc21e3af-5d6a-4e7e-9331-30de7f378791
name: rhel-7-server
org name: Admin Owner
org ID: admin


# rhsm-debug system 
Wrote: /tmp/rhsm-debug-system-20140123-721900.tar.gz


# ls /tmp/rhsm-debug-system-20140123-721900.tar.gz 
/tmp/rhsm-debug-system-20140123-721900.tar.gz

# vim /tmp/rhsm-debug-system-20140123-721900.tar.gz

" tar.vim version v29
" Browsing tarfile /tmp/rhsm-debug-system-20140123-721900.tar.gz
" Select a file with cursor and press ENTER

rhsm-debug-system-20140123-721900/
rhsm-debug-system-20140123-721900/subscriptions.json
rhsm-debug-system-20140123-721900/consumer.json
rhsm-debug-system-20140123-721900/compliance.json
rhsm-debug-system-20140123-721900/entitlements.json
rhsm-debug-system-20140123-721900/pools.json
rhsm-debug-system-20140123-721900/version.json
rhsm-debug-system-20140123-721900/etc/
rhsm-debug-system-20140123-721900/etc/rhsm/
rhsm-debug-system-20140123-721900/etc/rhsm/ca/
..........
..........
..........
..........
..........
..........
..........



VERIFIED

Comment 7 Ludek Smid 2014-06-13 10:07:59 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.