Bug 838113
Summary: | subscription-manager unregister leaves redhat.repo dirty which causes yum repolist traceback | ||
---|---|---|---|
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: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | alikins, awood, bgollahe, bkearney, skallesh |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
No documentation needed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-08 03:56:30 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 16:13:18 UTC
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. (patch out for review) merged Verified!! RPM used: [root@dhcp201-115 ~]# rpm -qa | grep subscription-manager subscription-manager-migration-data-1.11.2.2-1.git.2.c3c8e22.el5 subscription-manager-firstboot-1.0.12-1.git.36.cb30843.el5 subscription-manager-migration-1.0.12-1.git.36.cb30843.el5 subscription-manager-1.0.12-1.git.36.cb30843.el5 subscription-manager-gui-1.0.12-1.git.36.cb30843.el5 [root@dhcp201-115 ~]# subscription-manager register --username=testuser1 --force --org admin The system with UUID ad74a2b6-79cb-42c0-96aa-5e8fb062ae42 has been unregistered Password: The system has been registered with id: d60411fe-1e48-416d-91fc-fc7e1918d52f [root@dhcp201-115 ~]# yum repolist -q This system is not registered with RHN. RHN Satellite or RHN Classic support will be disabled. https://cdn.redhat.com/foo/path/never/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden Trying other mirror. [root@dhcp201-115 ~]# subscription-manager list --avail | grep "Pool Id" | head -1 Pool Id: 8ac1493438fc33ee0138fc34ba0a0253 [root@dhcp201-115 ~]# subscription-manager subscribe --pool 8a90f8753859805a0138598161e70245 Subscription pool 8a90f8753859805a0138598161e70245 does not exist. [root@dhcp201-115 ~]# yum repolist -q This system is not registered with RHN. RHN Satellite or RHN Classic support will be disabled. https://cdn.redhat.com/foo/path/never/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden Trying other mirror. [root@dhcp201-115 ~]# subscription-manager unregister System has been un-registered. [root@dhcp201-115 ~]# yum repolist -q This system is not registered with RHN. RHN Satellite or RHN Classic support will be disabled. [root@dhcp201-115 ~]# cat /etc/yum.repos.d/redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # 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 |