Bug 372771
Summary: | After upgrade to RHEL 5.1, rhn_register against Satellite fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jan Pazdziora <jpazdziora> |
Component: | rhn-client-tools | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 5.1 | CC: | cperry, dkovalsk, jplans, riek |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2008-0362 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-05-21 16:51:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 382571 |
Description
Jan Pazdziora
2007-11-09 14:27:11 UTC
The faulty code in rhnreg.py is: hosted_whitelist = cfg['hostedWhitelist'] if host in ['xmlrpc.rhn.redhat.com', 'rhn.redhat.com'] or \ host in hosted_whitelist: return 'hosted' else: return 'satellite' It assumes there is this option hostedWhitelist specified in /etc/sysconfig/rhn/up2date. Which it is for new installations and normal upgrades, but not if you've kickstarted your RHEL 5 GA from Satellite or changed the up2date file -- the new one is then created as up2date.rpmnew. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. This bugzilla has Keywords: Regression. Since no regressions are allowed between releases, it is also being proposed as a blocker for this release. Please resolve ASAP. So, we have workaround -- add hostedWhitelist= to /etc/sysconfig/rhn/up2date. Lowering Priority to high. And we need to apply patch similar to the following one to the code: --- /usr/share/rhn/up2date_client/rhnreg.py.orig 2007-11-09 15:10:01.000000000 -0500 +++ /usr/share/rhn/up2date_client/rhnreg.py 2007-11-09 15:11:09.000000000 -0500 @@ -641,7 +641,7 @@ hosted_whitelist = cfg['hostedWhitelist'] if host in ['xmlrpc.rhn.redhat.com', 'rhn.redhat.com'] or \ - host in hosted_whitelist: + hosted_whitelist is not None and host in hosted_whitelist: return 'hosted' else: return 'satellite' Ok reproduced the issue on a freshly installed RHEL 5 GA client. From my tests looks like the issue occurs only when the client is trying to register to satellites. rhn_register and rhnreg_ks work fine against hosted. I applied the above patch and re tried and things seems to be working well now against sat as well as hosted.. - rhn_register works as expected against hosted and satellites (with Jan's patch) - rhnreg_ks works as expected against hosted and satellites. I think we can go ahead with the patch Jan proposed here.. can we get 5.1.z flag set for this as soon as possible. We need that to create the z-stream branch for 5.1.z test plan: 1. grab a freshly kickstarted RHEl-5 GA 2. rhn_register against satellite 3. Should not through any exception and register successfully Ummm. The test plan should continue. 4. Upgrade your RHEL 5 with all the latest erratas. 5. Try to re-rhn_register the system to that Satellite. It's the second rhn_register which failed, for package shipped in RHEL 5.1. 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 the 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-2008-0362.html |