Bug 838187
Summary: | some subscription-manager modules fail after consumer has been deleted server side | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | alikins, awood, bgollahe, bkearney |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
No documentation necessary.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-08 03:56:44 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: | 771748 |
Description
John Sefler
2012-07-06 23:56:22 UTC
This sounds like the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=838113 (#838113) Does the following commit fix it? commit 441f13b5d656f5caf3d93609444c280fd82ec7d8 Author: Adrian Likins <alikins> Date: Wed Aug 1 15:23:01 2012 -0400 838113: 'unregister' was not cleaning up repos After unregistering, we were running IdentityCertLib update actions, which assumed consumer cert existed, and were raising exceptions. certmgt.update was not handling exceptions there well, and raised them up into the UnRegister.do_command, where it was ignored. This prevented the rest of the update methods from running, which included repolib, so repo's were not being cleaned up. Try to handle exceptions in the update actions better (and log them). Also make IdentityCertLib.update not fail on unregistered systems. Verifying Version... [root@jsefler-rhel59 ~]# rpm -q subscription-manager subscription-manager-1.0.22-1.el5 [root@jsefler-rhel59 ~]# subscription-manager identity Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager list --avail Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager refresh Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager subscribe --pool 8a90f8753859805a013859816a090480 Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager unsubscribe --all Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager service-level Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted [root@jsefler-rhel59 ~]# subscription-manager facts --update Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details. <============= SEE BUG 798788 [root@jsefler-rhel59 ~]# subscription-manager unregister Consumer a186fd2b-28ab-49c3-bb15-b2e086a05103 has been deleted Moving to VERIFIED 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-2013-0033.html |