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.
DescriptionShwetha Kallesh
2014-12-17 10:07:20 UTC
Description of problem:
when you run rhsm-debug with --destination and --no-archive option and extra slash is added to the destination location whereas without --no-archive option destination path is perfectly fine
Version-Release number of selected component (if applicable):
[root@dhcp35-236 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.36-1
subscription management rules: 5.11
subscription-manager: 1.13.10-1.git.3.aa2f549.el7
python-rhsm: 1.13.8-1.git.0.e44a940.el7
How reproducible:
Steps to Reproduce:
[root@dhcp35-236 ~]# rhsm-debug system --destination /root/Pictures/ --no-archive
Wrote: /root/Pictures//rhsm-debug-system-20141217-576978
^^ an extra "/" is added to the destination location /root/Pictures/
Without --no-archive option destination path in the stdout is fine
[root@dhcp35-236 ~]# rhsm-debug system --destination /root/Pictures/
Wrote: /root/Pictures/rhsm-debug-system-20141217-830975.tar.gz
Actual results:
Expected results:
Additional info:
commit 52e9511b0bf5107ea286b2c437669b863433d2b1
Author: Chris Rog <crog>
Date: Wed Dec 17 12:48:13 2014 -0500
1175185: Removed extra slash from rhsm-debug output
- The extra slash will no longer be printed when using the
rhsm-debug command "system" with a destination directory
containing a trailing slash and the no-archive flag set.
Version:
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.38-1
subscription management rules: 5.13
subscription-manager: 1.13.16-1.el7
python-rhsm: 1.13.10-1.el7
Verification:
# rhsm-debug system --destination /root/Pictures/ --no-archive
Wrote: /root/Pictures/rhsm-debug-system-20150115-957861
# rhsm-debug system --destination /root/Pictures --no-archive
Wrote: /root/Pictures/rhsm-debug-system-20150115-079505
# rhsm-debug system --destination . --no-archive
Wrote: ./rhsm-debug-system-20150115-486738
# rhsm-debug system --destination ../ --no-archive
Wrote: ../rhsm-debug-system-20150115-226623
In every case file is created in the destination path appropriately
VERIFIED
Additional Tests:
# rhsm-debug system --destination /root/Pictures//// --no-archive
Wrote: /root/Pictures////rhsm-debug-system-20150115-099116
# rhsm-debug system --destination /root////Pictures//// --no-archive
Wrote: /root////Pictures////rhsm-debug-system-20150115-001185
In the above cases Linux treats multiple "/////" as a valid path.
ls, cd and any other command navigates you to the appropriate directory.
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://rhn.redhat.com/errata/RHBA-2015-0502.html
Description of problem: when you run rhsm-debug with --destination and --no-archive option and extra slash is added to the destination location whereas without --no-archive option destination path is perfectly fine Version-Release number of selected component (if applicable): [root@dhcp35-236 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.36-1 subscription management rules: 5.11 subscription-manager: 1.13.10-1.git.3.aa2f549.el7 python-rhsm: 1.13.8-1.git.0.e44a940.el7 How reproducible: Steps to Reproduce: [root@dhcp35-236 ~]# rhsm-debug system --destination /root/Pictures/ --no-archive Wrote: /root/Pictures//rhsm-debug-system-20141217-576978 ^^ an extra "/" is added to the destination location /root/Pictures/ Without --no-archive option destination path in the stdout is fine [root@dhcp35-236 ~]# rhsm-debug system --destination /root/Pictures/ Wrote: /root/Pictures/rhsm-debug-system-20141217-830975.tar.gz Actual results: Expected results: Additional info: