Description of problem: When yum knew about some (RHN) channel before and then I removed that channel from it's (RHN) profile, `yum repolist` fails on that system even after `yum clean all`. Version-Release number of selected component (if applicable): yum-3.2.22-33.el5 yum-rhn-plugin-0.5.4-20.el5 How reproducible: always Steps to Reproduce: 1. # yum repolist / upgrade /... 2. Remove one channel from RHN profile 3. # yum clean all 4. # yum repolist Actual results: # yum repolist Loaded plugins: rhnplugin, security file://var/cache/yum/redhat-rhn-satellite-5.3-server-x86_64-5/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/redhat-rhn-satellite-5.3-server-x86_64-5/repodata/repomd.xml' Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: redhat-rhn-satellite-5.3-server-x86_64-5. Please verify its path and try again Expected results: This should work without need to run `rm -rf /var/cache/yum/*`. Additional info: This looks to be related: bug 684342, bug 705335 and bug 703169.
I can confirm it. And I'm able to reproduce it.
Hmm subsequent run of yum repolist, succeed. I suppose that /var/cache/yum/rhnplugin.repos will be in fault...
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update. Contact your manager or support representative in case you need to escalate this bug.
The issue has been addressed as a part of bug 734965 and bug 735282.
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-0162.html