Bug 1055664
Summary: | rhsm-debug tool should follow the configured paths to: ca_cert_dir pluginconfdir plugindir | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | alikins, bkearney, ckozak, wpoteat |
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 11:32:57 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: | 1070737 | ||
Bug Blocks: | 863175 |
Description
John Sefler
2014-01-20 17:51:48 UTC
I think for this case I'd rather not collect the plugins themselves, but I'll add the plugin configurations. We can add collecting the 'plugins --list' outputs as an RFE. https://github.com/candlepin/subscription-manager/pull/911 That fixes most of it. master commit 025a5069108f3278becf33dcaa3cdbe31a1427cb Verifying Version... [root@jsefler-7 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: Unknown subscription-manager: 1.10.14-4.el7 python-rhsm: 1.10.12-1.el7 [root@jsefler-7 ~]# subscription-manager config --list | egrep "ca_cert_dir|pluginconfdir|plugindir" ca_cert_dir = [/etc/rhsm/ca/] pluginconfdir = [/etc/rhsm/pluginconf.d] plugindir = [/usr/share/rhsm-plugins] [root@jsefler-7 ~]# mkdir /tmp/ca_cert_dir /tmp/pluginconfdir /tmp/plugindir [root@jsefler-7 ~]# cp /etc/rhsm/ca/* /tmp/ca_cert_dir [root@jsefler-7 ~]# cp /etc/rhsm/pluginconf.d/* /tmp/pluginconfdir [root@jsefler-7 ~]# cp /usr/share/rhsm-plugins/* /tmp/plugindir [root@jsefler-7 ~]# ls -c1 /tmp/ca_cert_dir jsefler-f14-candlepin.pem katellosach.pem redhat-uep.pem candlepin-stage.pem jsefler-f14-7candlepin.pem [root@jsefler-7 ~]# ls -c1 /tmp/pluginconfdir subscribe_test.SubscribeTestPlugin.conf facts_collection_test.FactsCollectionTestPlugin.conf product_id_install_test.ProductIdInstallTestPlugin.conf register_consumer_test1.RegisterConsumerTestPlugin.conf register_consumer_test2.RegisterConsumerTestPlugin.conf auto_attach_test.AutoAttachTestPlugin.conf dbus_event.DbusEventPlugin.conf all_slots_test.AllSlotsTestPlugin.conf [root@jsefler-7 ~]# ls -c1 /tmp/plugindir subscribe_test.pyc register_consumer_test2.pyc subscribe_test.py register_consumer_test2.py register_consumer_test1.py register_consumer_test1.pyc product_id_install_test.py product_id_install_test.pyc facts_collection_test.py facts_collection_test.pyc dbus_event.py dbus_event.pyc all_slots_test.pyc auto_attach_test.py auto_attach_test.pyc all_slots_test.py [root@jsefler-7 ~]# subscription-manager config --rhsm.ca_cert_dir=/tmp/ca_cert_dir --rhsm.pluginconfdir=/tmp/pluginconfdir --rhsm.plugindir=/tmp/plugindir [root@jsefler-7 ~]# subscription-manager config --list | egrep "ca_cert_dir|pluginconfdir|plugindir" ca_cert_dir = /tmp/ca_cert_dir pluginconfdir = /tmp/pluginconfdir plugindir = /tmp/plugindir repo_ca_cert = /tmp/ca_cert_dirredhat-uep.pem [root@jsefler-7 ~]# subscription-manager register --username=testuser1 --org=admin --serverurl=jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin Password: The system has been registered with ID: f19d73e3-3d29-4fb0-b1df-872a195ea973 [root@jsefler-7 ~]# rhsm-debug system --sos Wrote: /tmp/rhsm-debug-system-20140304-676399.tar.gz [root@jsefler-7 ~]# tar -tf /tmp/rhsm-debug-system-20140304-676399.tar.gz rhsm-debug-system-20140304-676399/ rhsm-debug-system-20140304-676399/subscriptions.json rhsm-debug-system-20140304-676399/consumer.json rhsm-debug-system-20140304-676399/compliance.json rhsm-debug-system-20140304-676399/entitlements.json rhsm-debug-system-20140304-676399/pools.json rhsm-debug-system-20140304-676399/version.json rhsm-debug-system-20140304-676399/tmp/ rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/ rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/candlepin-stage.pem rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/jsefler-f14-7candlepin.pem rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/jsefler-f14-candlepin.pem rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/katellosach.pem rhsm-debug-system-20140304-676399/tmp/ca_cert_dir/redhat-uep.pem rhsm-debug-system-20140304-676399/tmp/pluginconfdir/ rhsm-debug-system-20140304-676399/tmp/pluginconfdir/all_slots_test.AllSlotsTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/auto_attach_test.AutoAttachTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/dbus_event.DbusEventPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/facts_collection_test.FactsCollectionTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/product_id_install_test.ProductIdInstallTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/register_consumer_test1.RegisterConsumerTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/register_consumer_test2.RegisterConsumerTestPlugin.conf rhsm-debug-system-20140304-676399/tmp/pluginconfdir/subscribe_test.SubscribeTestPlugin.conf [root@jsefler-7 ~]# VERIFIED: The tar listing included all of the files listed in: /tmp/ca_cert_dir /tmp/pluginconfdir VERIFIED: As stated in comment 1, the plugindir will NOT be collected by rhsm-debug VERIFIED: Also verified that using the --sos option will exclude files that are not already be collected by the sos report tool -- namely /etc/pki/* /etc/rhsm/* /var/log/rhsm/* /var/lib/rhsm/* 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. |