Bug 1039653 - [RFE] Backport the debug tool to RHEL5
Summary: [RFE] Backport the debug tool to RHEL5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel511 1049888
TreeView+ depends on / blocked
 
Reported: 2013-12-09 17:08 UTC by Bryan Kearney
Modified: 2014-09-16 00:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: new rhsm-debug tool packaged with subscription-manger Reason: We needed better debugging of subscription-related issues.
Clone Of:
Environment:
Last Closed: 2014-09-16 00:22:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1225 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2014-09-16 04:15:23 UTC

Description Bryan Kearney 2013-12-09 17:08:31 UTC
the debug tool should be ported back to 5.11

Comment 4 Carter Kozak 2014-04-29 13:25:23 UTC
Fixed in subscription-manager-1.11.3-2.el5

Comment 6 John Sefler 2014-05-20 20:56:35 UTC
Verifying Version...
[root@jsefler-5 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.10.2-1
subscription-manager: 1.11.3-3.el5
python-rhsm: 1.11.3-3.el5
[root@jsefler-5 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.11 Beta (Tikanga)

[root@jsefler-5 ~]# rhsm-debug --help
Usage: rhsm-debug MODULE-NAME [MODULE-OPTIONS] [--help]

Primary Modules: 

  system         Assemble system information as a tar file or directory

Other Modules:   


[root@jsefler-5 ~]# rhsm-debug system --help
Usage: rhsm-debug system [OPTIONS] 

Assemble system information as a tar file or directory

options:
  -h, --help            show this help message and exit
  --proxy=PROXY_URL     proxy URL in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for HTTP proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for HTTP proxy with basic authentication
  --destination=DESTINATION
                        the destination location of the result; default is
                        /tmp
  --no-archive          data will be in an uncompressed directory
  --sos                 only data not already included in sos report will be
                        collected


VERIFIED: The rhsm-debug system tooling appears to be included in subscription-manager-1.11.3-3.el5 for rhel5.11


Following is a short demonstration of this feature....

[root@jsefler-5 ~]#  subscription-manager register --serverurl=subscription.rhn.redhat.com:443/subscription --autosubscribe
Username: qa
Password: 
The system has been registered with ID: b9278de0-2943-403c-8421-ae446456ff3b 
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@jsefler-5 ~]# rhsm-debug system
Wrote: /tmp/rhsm-debug-system-20140520-165003.tar.gz
[root@jsefler-5 ~]# tar -tvf /tmp/rhsm-debug-system-20140520-165003.tar.gz
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/
-rw-r--r-- root/root      9934 2014-05-20 16:50:13 rhsm-debug-system-20140520-165003/consumer.json
-rw-r--r-- root/root    112383 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/pools.json
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/consumer/
-rw-r--r-- root/root      2065 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/consumer/cert.pem
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/product/
-rw-r--r-- root/root      2160 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/product/69.pem
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/entitlement/
-rw-r--r-- root/root     10098 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/pki/entitlement/8085084240637477006.pem
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/facts/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/pluginconf.d/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/ca/
-rw-r--r-- root/root      1797 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/ca/katellosach.pem
-rw-r--r-- root/root      2473 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/ca/candlepin-stage.pem
-rw-r--r-- root/root      7732 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/ca/redhat-uep.pem
-rw-r--r-- root/root      1636 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/etc/rhsm/rhsm.conf
-rw-r--r-- root/root     10748 2014-05-20 16:50:15 rhsm-debug-system-20140520-165003/entitlements.json
-rw-r--r-- root/root       190 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/version.json
-rw-r--r-- root/root      8549 2014-05-20 16:50:14 rhsm-debug-system-20140520-165003/compliance.json
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/
-rw-r--r-- root/root   1048527 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log.5
-rw-r--r-- root/root   1047940 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log.3
-rw-r--r-- root/root      9431 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsmcertd.log.3
-rw-r--r-- root/root      3559 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsmcertd.log.4
-rw-r--r-- root/root    192540 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log
-rw-r--r-- root/root     29624 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log.2
-rw-r--r-- root/root   1048445 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log.1
-rw-r--r-- root/root      2213 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsmcertd.log
-rw-r--r-- root/root   1048213 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsm.log.4
-rw-r--r-- root/root      2894 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsmcertd.log.2
-rw-r--r-- root/root      3207 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/log/rhsm/rhsmcertd.log.1
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/facts/
-rw-r--r-- root/root      3290 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/facts/facts.json
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/cache/
-rw-r--r-- root/root       343 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/cache/product_status.json
-rw-r--r-- root/root      3833 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/cache/entitlement_status.json
-rw-r--r-- root/root       114 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/cache/installed_products.json
-rw-r--r-- root/root         2 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/cache/content_overrides.json
-rw-r--r-- root/root       259 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/productid.js
-rw-r--r-- root/root        18 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/branded_name
drw------- root/root         0 2014-05-20 16:50:17 rhsm-debug-system-20140520-165003/var/lib/rhsm/packages/
-rw-r--r-- root/root   3672138 2014-05-20 16:50:13 rhsm-debug-system-20140520-165003/subscriptions.json
[root@jsefler-5 ~]# 


VERIFIED: As demonstrated above, the rhsm-debug system tool will create a tar file containing all of the pertinent files needed to attach to a bugzilla or sos report to help developers troubleshoot subscription management issues on rhel5.11.

Comment 9 errata-xmlrpc 2014-09-16 00:22:05 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.

http://rhn.redhat.com/errata/RHBA-2014-1225.html


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