Bug 709241 - failure when listing repos after channel removal
Summary: failure when listing repos after channel removal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum-rhn-plugin
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-31 07:22 UTC by Jan Hutař
Modified: 2012-02-21 06:18 UTC (History)
3 users (show)

Fixed In Version: yum-rhn-plugin-0.5.4-25.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 06:18:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0162 0 normal SHIPPED_LIVE yum-rhn-plugin bug fix update 2012-02-20 15:07:13 UTC

Description Jan Hutař 2011-05-31 07:22:48 UTC
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.

Comment 1 Miroslav Suchý 2011-06-01 14:47:55 UTC
I can confirm it. And I'm able to reproduce it.

Comment 2 Miroslav Suchý 2011-06-01 15:00:41 UTC
Hmm subsequent run of yum repolist, succeed. I suppose that /var/cache/yum/rhnplugin.repos will be in fault...

Comment 3 RHEL Program Management 2011-06-21 05:32:02 UTC
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.

Comment 5 Michael Mráka 2011-10-06 09:56:46 UTC
The issue has been addressed as a part of bug 734965 and bug 735282.

Comment 8 errata-xmlrpc 2012-02-21 06:18:30 UTC
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


Note You need to log in before you can comment on or make changes to this bug.