Hide Forgot
Description of problem: yum fails when /var/cache/yum/rhnplugin.repos contain name of channel that is not present in cache structure (eg. there is no repo.xml) in /var/cache/yum/<channel_name> Version-Release number of selected component (if applicable): yum-rhn-plugin-1.4.4-1.el5 (on machine with Spacewalk) How reproducible: Alway Steps to Reproduce: 1. Register into Satellite and channel 2. Manually remove SystemID and repository data 3. Try yum repolist Actual results: ]# yum repolist Loaded plugins: rhnplugin This system is not registered with RHN. RHN Satellite or RHN Classic support will be disabled. file://var/cache/yum/test-i386-0/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/test-i386-0/repodata/repomd.xml' Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: test-i386-0. Please verify its path and try again Expected results: Cache problems should not stop yum operation from finishing. Additional info: It is general problem - yum install will return same error. Workaround is deleting of /var/cache/yum/rhnplugin.repos file.
Fixed in spacewalk nightly commit 44955186189e3a60afa07e6e4d1b5c9710b2e61c 688870 - also check whether cached repo is valid
I think that https://bugzilla.redhat.com/show_bug.cgi?id=690234#c5 can solve #4 as side effect. Have to test it...
Hmm.. No it will to solve this BZ. :(
Backported to CLIENT-RHEL-6 as commit 8c882f84ce28711c3b387153e3a727b78872f407 688870 - resolve --enablerepo/--disablerepo for RHN repos (cherry picked from commit 1147d9d704d797483e0f30f086125468d91b9f1a)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0565.html