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 1175284 - rhsm-debug --no-archive --destination <destination Loc> throws [Errno 18] Invalid cross-device link
Summary: rhsm-debug --no-archive --destination <destination Loc> throws [Errno 18] Inv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.1
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel71
TreeView+ depends on / blocked
 
Reported: 2014-12-17 12:52 UTC by Shwetha Kallesh
Modified: 2018-06-15 21:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:16:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0502 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2015-03-05 16:20:39 UTC

Description Shwetha Kallesh 2014-12-17 12:52:50 UTC
Description of problem:
rhsm-debug --no-archive --destination <destination Loc> throws [Errno 18] Invalid cross-device link and rhsm logs says "Unable to create zip file of system information"

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 ~]# ls /home/shwetha/Desktop/
 
[root@dhcp35-236 ~]# rhsm-debug system --destination /home/shwetha/Desktop/ --no-archive
[Errno 18] Invalid cross-device link
 
[root@dhcp35-236 ~]# ls /home/shwetha/Desktop/
rhsm-debug-system-20141217-910030
 
 
[root@dhcp35-236 ~]# tail -f /var/log/rhsm/rhsm.log
2014-12-17 15:53:01,068 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,068 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/consumers/3d3b764c-2e44-428d-8890-b88b30a49f9d/owner
2014-12-17 15:53:01,148 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:01,149 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,150 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/owners/admin/subscriptions
2014-12-17 15:53:01,485 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:01,637 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,637 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/consumers/3d3b764c-2e44-428d-8890-b88b30a49f9d
2014-12-17 15:53:01,734 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:01,737 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,738 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/consumers/3d3b764c-2e44-428d-8890-b88b30a49f9d/compliance
2014-12-17 15:53:01,854 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:01,857 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,857 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/consumers/3d3b764c-2e44-428d-8890-b88b30a49f9d/entitlements?exclude=certificates.key&exclude=certificates.cert
2014-12-17 15:53:01,940 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:01,942 [DEBUG] rhsm-debug @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem, candlepin-ca.pem, 10.pem
2014-12-17 15:53:01,943 [DEBUG] rhsm-debug @connection.py:466 - Making request: GET /candlepin/owners/admin/pools?consumer=3d3b764c-2e44-428d-8890-b88b30a49f9d&listall=true
2014-12-17 15:53:02,224 [DEBUG] rhsm-debug @connection.py:489 - Response: status=200
2014-12-17 15:53:02,289 [ERROR] rhsm-debug @managercli.py:157 - Unable to create zip file of system information: [Errno 18] Invalid cross-device link
2014-12-17 15:53:02,289 [ERROR] rhsm-debug @managercli.py:158 - [Errno 18] Invalid cross-device link
Traceback (most recent call last):
  File "/usr/share/rhsm/rhsm_debug/debug_commands.py", line 177, in _do_command
    os.rename(content_path, dest_dir_name)
OSError: [Errno 18] Invalid cross-device link

Actual results:


Expected results:


Additional info:

Comment 2 William Poteat 2015-01-14 20:02:46 UTC
master commit f6b126f0e097db74c633db1a6de9e65d1419f9b4

Comment 4 Shwetha Kallesh 2015-01-16 12:26:14 UTC
Verified!!



[root@dhcp35-236 home]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.26.7-1
subscription management rules: 5.12
subscription-manager: 1.13.16-1.el7
python-rhsm: 1.13.10-1.el7


[root@dhcp35-236 home]# rhsm-debug system --destination /home/shwetha/Desktop/ --no-archive
To use the no-archive option, the destination directory '/home/shwetha/Desktop/' must exist on the same file system as the data assembly directory '/var/spool/rhsm/debug'.

[root@dhcp35-236 home]# df /var/spool/rhsm/debug
Filesystem            1K-blocks     Used Available Use% Mounted on
/dev/mapper/rhel-root  52403200 18200720  34202480  35% /


[root@dhcp35-236 home]# df /home/shwetha/Desktop/ 
Filesystem            1K-blocks   Used Available Use% Mounted on
/dev/mapper/rhel-home 427041048 773124 426267924   1% /home

^^ /home/shwetha/Desktop/ is on a different file system than that of /var/spool/rhsm/debug 

[root@dhcp35-236 ~]# tail -f /var/log/rhsm/rhsm.log
2015-01-16 17:53:53,306 [DEBUG] rhsm-debug:29946 @plugins.py:569 - loaded plugin modules: [<module 'container_content' from '/usr/share/rhsm-plugins/container_content.pyc'>, <module 'ostree_content' from '/usr/share/rhsm-plugins/ostree_content.pyc'>]
2015-01-16 17:53:53,306 [DEBUG] rhsm-debug:29946 @plugins.py:570 - loaded plugins: {'container_content.ContainerContentPlugin': <container_content.ContainerContentPlugin object at 0x1f4aa90>, 'ostree_content.OstreeContentPlugin': <ostree_content.OstreeContentPlugin object at 0x1f54050>}
2015-01-16 17:53:53,306 [DEBUG] rhsm-debug:29946 @identity.py:131 - Loading consumer info from identity certificates.
2015-01-16 17:53:53,306 [DEBUG] rhsm-debug:29946 @identity.py:143 - Reload of consumer identity cert /etc/pki/consumer/cert.pem raised an exception with msg: [Errno 2] No such file or directory: '/etc/pki/consumer/key.pem'
2015-01-16 17:53:53,307 [DEBUG] rhsm-debug:29946 @profile.py:97 - Loading current RPM profile.
2015-01-16 17:53:53,366 [INFO] rhsm-debug:29946 @managercli.py:348 - Client Versions: {'python-rhsm': '1.13.10-1.el7', 'subscription-manager': '1.13.16-1.el7'}
2015-01-16 17:53:53,367 [INFO] rhsm-debug:29946 @connection.py:682 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2015-01-16 17:53:53,367 [INFO] rhsm-debug:29946 @connection.py:693 - Connection Built: host: subscription.rhn.stage.redhat.com, port: 443, handler: /subscription
2015-01-16 17:53:53,367 [INFO] rhsm-debug:29946 @connection.py:689 - Using no auth
2015-01-16 17:53:53,367 [INFO] rhsm-debug:29946 @connection.py:693 - Connection Built: host: subscription.rhn.stage.redhat.com, port: 443, handler: /subscription
2015-01-16 17:53:53,379 [DEBUG] rhsm-debug:29946 @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-ca.pem, 10.pem, candlepin-stage.pem, redhat-uep.pem
2015-01-16 17:53:53,379 [DEBUG] rhsm-debug:29946 @connection.py:469 - Making request: GET /subscription/
2015-01-16 17:53:54,580 [DEBUG] rhsm-debug:29946 @connection.py:492 - Response: status=200
2015-01-16 17:53:54,581 [DEBUG] rhsm-debug:29946 @connection.py:709 - Server supports the following resources:
2015-01-16 17:53:54,581 [DEBUG] rhsm-debug:29946 @connection.py:710 - {'': '/', 'guestids': '/consumers/{consumer_uuid}/guestids', 'cdn': '/cdn', 'content_overrides': '/consumers/{consumer_uuid}/content_overrides', 'hypervisors': '/hypervisors', 'serials': '/serials', 'deleted_consumers': '/deleted_consumers', 'consumers': '/consumers', 'migrations': '/migrations', 'content': '/content', 'entitlements': '/entitlements', 'consumertypes': '/consumertypes', 'status': '/status', 'jobs': '/jobs', 'users': '/users', 'subscriptions': '/subscriptions', 'rules': '/rules', 'distributor_versions': '/distributor_versions', 'statistics/generate': '/statistics/generate', 'activation_keys': '/activation_keys', 'atom': '/atom', 'owners': '/owners', 'roles': '/roles', 'admin': '/admin', 'events': '/events', 'products': '/products', 'pools': '/pools', 'crl': '/crl'}
2015-01-16 17:53:54,582 [DEBUG] rhsm-debug:29946 @connection.py:420 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-ca.pem, 10.pem, candlepin-stage.pem, redhat-uep.pem
2015-01-16 17:53:54,582 [DEBUG] rhsm-debug:29946 @connection.py:469 - Making request: GET /subscription/status
2015-01-16 17:53:55,793 [DEBUG] rhsm-debug:29946 @connection.py:492 - Response: status=200
2015-01-16 17:53:55,794 [INFO] rhsm-debug:29946 @managercli.py:359 - Server Versions: {'rules-version': '5.12', 'candlepin': '0.9.26.7-1', 'server-type': 'This system is currently not registered.'}

Comment 6 errata-xmlrpc 2015-03-05 13:16: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://rhn.redhat.com/errata/RHBA-2015-0502.html


Note You need to log in before you can comment on or make changes to this bug.