Bug 1116349
Summary: | call rhsm-debug with --no-subscriptions by default | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Bryn M. Reeves <bmr> |
Component: | sos | Assignee: | Bryn M. Reeves <bmr> |
Status: | CLOSED ERRATA | QA Contact: | David Kutálek <dkutalek> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | agk, alikins, bkearney, isenfeld, jsefler, pep, wpoteat |
Target Milestone: | rc | Keywords: | EasyFix |
Target Release: | 7.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sos-3.2-4.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1114117 | Environment: | |
Last Closed: | 2015-03-05 11:23:25 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: | 1114117 | ||
Bug Blocks: | 1005618 |
Description
Bryn M. Reeves
2014-07-04 09:40:04 UTC
Acking 7.1 This bug should be against sos - it's to make use of the option added to rhsm-debug in bug 1114117 the default. Testing sos version... [root@jsefler-os7 ~]# rpm -q sos sos-3.2-7.el7.noarch [root@jsefler-os7 ~]# rpm -ql sos-3.2-7.el7.noarch | grep yum.py /usr/lib/python2.7/site-packages/sos/plugins/yum.py /usr/lib/python2.7/site-packages/sos/plugins/yum.pyc /usr/lib/python2.7/site-packages/sos/plugins/yum.pyo [root@jsefler-os7 ~]# grep -A2 rhsm-debug /usr/lib/python2.7/site-packages/sos/plugins/yum.py self.add_cmd_output("rhsm-debug system --sos --no-archive " "--no-subscriptions --destination %s" % self.get_cmd_output_path()) [root@jsefler-os7 ~]# VERIFIED: sos appears to be calling rhsm-debug system with the new --no-subscriptions which will be much faster.... [root@jsefler-os7 ~]# subscription-manager register --serverur=https://subscription.rhn.stage.redhat.com:443/subscription Username: qa Password: The system has been registered with ID: fe276cb2-76a2-4285-98ce-c8bad57fd1b0 [root@jsefler-os7 ~]# time rhsm-debug system --sos --no-archive --destination /tmp/test Wrote: /tmp/test/rhsm-debug-system-20141121-269017 real 0m13.244s user 0m1.363s sys 0m0.162s [root@jsefler-os7 ~]# time rhsm-debug system --sos --no-archive --no-subscriptions --destination /tmp/test Wrote: /tmp/test/rhsm-debug-system-20141121-884360 real 0m3.360s user 0m0.732s sys 0m0.138s [root@jsefler-os7 ~]# VERIFIED: A call to rhsm-debug system with the new --no-subscription option against a system registered to the stage environment took 3 seconds versus 13 seconds without the --no-subscription option. 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-0532.html |