Bug 1175284
| Summary: | rhsm-debug --no-archive --destination <destination Loc> throws [Errno 18] Invalid cross-device link | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> |
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | bkearney, wpoteat |
| Target Milestone: | rc | ||
| Target Release: | 7.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-05 13:16: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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1005618 | ||
master commit f6b126f0e097db74c633db1a6de9e65d1419f9b4 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.'}
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: 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: