Hide Forgot
Description of problem: When the yum-rhn-plugin within the 'yum repolist' command discovers that there is no channel available within RHN, it emits warning message: This system is not subscribed to any channels. However the yum-rhn-plugin omits to wipe the rhnplugin.repos file. This might cause some random failures. One of the know is that the subsequent 'yum clean all' command attempts to delete repository metadata for RHN channels, even if they are not assigned to the system. The only workaround is to remove rhnplugin.repos manually. Version-Release number of selected component (if applicable): yum-3.2.29-17.el6.noarch yum-rhn-plugin-0.9.1-35.el6.noarch How reproducible: Deterministic Steps to Reproduce: 1. Register system to RHN Satellite to rhel base channel 2. yum repolist 3. Unassign the base channel on RHN Satellite webui 4. yum repolist 5. yum clean all Actual results: (Step 4 and 5) # yum repolist Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. repo id repo name status beaker Beaker 13 rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 5,423 repolist: 5,436 # yum clean all Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. Cleaning repos: beaker rhel-x86_64-server-6 Cleaning up Everything Expected results: Additional info:
The problem is also present when the system is deleted from RHN Satellite, # yum repolist Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. There was an error communicating with RHN. RHN Satellite or RHN Classic support will be disabled. Error Message: Please run rhn_register as root on this client Error Class Code: 9 Error Class Info: Invalid System Credentials. Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem. beaker | 2.9 kB 00:00 beaker/primary_db | 7.7 kB 00:00 repo id repo name status beaker Beaker 13 repolist: 13 # yum clean all Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. Cleaning repos: beaker rhel-x86_64-server-6 Cleaning up Everything
The problem is also exposed after removal of the systemid file. # yum repolist Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. This system is not registered with RHN. RHN Satellite or RHN Classic support will be disabled. repo id repo name status beaker Beaker 13 repolist: 13 # yum clean all Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. Cleaning repos: beaker rhel-x86_64-server-6 Cleaning up Everything
FIxed in spacewalk master by commit 570e37f07945c0208ec6a5c69a39be7ea34d74f1 735339 - truncate rhnplugin.repos when there are no rhn channels
QA would like to automate, all the three scenarios. See comment 0 - comment 2.
moving back to assigned, this has not been cherrypicked yet.
Backported to CLIENT-RHEL-6 as commit c95ae92184e617de01d0e9dfe2f8d59a3cf7be00 735339 - truncate rhnplugin.repos when there are no rhn channels
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-2012-0752.html