Bug 738193 - rhn_check fails when RHN channels are changed
rhn_check fails when RHN channels are changed
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum-rhn-plugin (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Michael Mráka
Martin Minar
: Regression
Depends On:
Blocks: 738962
  Show dependency treegraph
Reported: 2011-09-14 06:13 EDT by Šimon Lukašík
Modified: 2016-07-03 20:56 EDT (History)
6 users (show)

See Also:
Fixed In Version: yum-rhn-plugin-0.5.4-25.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 738962 (view as bug list)
Last Closed: 2012-02-21 01:29:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
snippet from /var/log/up2date (10.64 KB, text/plain)
2011-09-14 06:16 EDT, Šimon Lukašík
no flags Details

  None (edit)
Description Šimon Lukašík 2011-09-14 06:13:40 EDT
Description of problem:
rhn_check events from 'packages.' namespace fail, when the caching file
(rhnplugin.repos) contains outdated information.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Register system with RHN Hosted to the base channel
   (e.g. rhel-i386-server-5)
2. # yum repolist
3. Register system with RHN Satellite without any channel
4. Schedule 'Update Package List' on RHN Satellite webui
5. # rhn_check -vv

Actual results:
Fatal error in Python code occured

yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-i386-server-5. Please verify its path and try again

Expected results:
rhn_check tool should not crash, even in case the rhnplugin.repos
contains outdated information.

Additional info:
Comment 1 Šimon Lukašík 2011-09-14 06:16:29 EDT
Created attachment 523112 [details]
snippet from /var/log/up2date
Comment 2 Šimon Lukašík 2011-09-14 06:48:49 EDT
Regression against earlier rhel5 releases (rhel5.5 and older).
Comment 4 henry 2011-09-15 11:26:36 EDT
Having this issue as well.

I've tried to manually clean up /var/cache/yum to force an update of the rhnplugin.repos but I am unable to get a usable rhnplugin.repo file.

Has anyone managed a work-around?

Comment 5 henry 2011-09-15 11:28:02 EDT

This is on RHEL6.1
Comment 6 henry 2011-09-15 12:02:51 EDT
(In reply to comment #5)
> Edit:
> This is on RHEL6.1

More debugging -- turning off SSL in /etc/sysconfig/rhn/update lets rhn_check succeed and everything else work as expected.

My issues appear to be duplicates of #692118 and corresponding Fedora bugs:
738566 - python-urlgrabber
738367 - yum
738568 - anaconda
Comment 7 Šimon Lukašík 2011-09-28 14:22:18 EDT
Added RHTS keyword.

QA would like to have an automated test for this issue. Well, currently,
the issue might be exposed by our automation, when series of different
tests make a use of different channel sets. However, having separate test
for this issue, would be a preferred. That way, would would minimize the
risk that test cases gets lost by yum-clean-like workarounds.

Added qa_ack+ as well.
Comment 8 Michael Mráka 2011-10-03 04:56:49 EDT
The issue has been already fixed by z-stream errata package
Comment 9 Michael Mráka 2011-10-03 05:31:12 EDT
The issue has been addressed as a part of bug 734965 and bug 735282.
Comment 13 errata-xmlrpc 2012-02-21 01:29:14 EST
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.


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