Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 530659

Summary: rhnregGui.py Line 949 in populateProfile: local variable 'ipaddr' referenced before assignment
Product: Red Hat Enterprise Linux 5 Reporter: David L. Sieving <David.Sieving>
Component: rhn-client-toolsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: low    
Version: 5.5CC: cperry, gkhachik, jhutar, jkastner, mkoci, msuchy
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 532145 (view as bug list) Environment:
Last Closed: 2010-03-30 08:44:30 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: 554317    
Bug Blocks: 532145    

Description David L. Sieving 2009-10-24 00:10:02 UTC
Description of problem:

    Unable to register RedHat 5 Enterprise Server for software updates.

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

    /usr/share/rhn/up2date_client/rhnregGui.py

How reproducible:

    Configure /etc/sysconfig to enable firstboot.
    Follow the prompts and attempt to register for updates.
    run 'yum update'

Steps to Reproduce:

    cp -pr /etc/sysconfig/firstboot /etc/sysconfig/firstboot.bak
    rm /etc/sysconfig/firstboot
    chkconfig --list firstboot
    chkconfig --level 35 firstboot on
    chkconfig --list firstboot
    shutdown -r now
    (Follow the prompts and attempt to register for updates)
    yum update
  
Actual results (in /var/log/up2date):

    up2date 
    Traceback (most recent call last):
      File "/usr/share/rhn/up2date_client/rhnregGui.py", line 949, in populateProfile
        if ipaddr:
    exceptions.UnboundLocalError: local variable 'ipaddr' referenced before assignment

Actual results (on 'yum update'):

    Loaded plugins: rhnplugin, security
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-i386-server-5. Please verify its path and try again

Expected results:

    Successful registration for software updates.
    Successful execution of 'yum update'

Additional info:

Comment 2 Miroslav Suchý 2009-10-30 21:33:19 UTC
Fixed in upstream - Spacewalk bug 532145

Comment 4 Miroslav Suchý 2009-12-02 12:48:37 UTC
commited as rev. 189122

Comment 8 Garik Khachikyan 2010-01-07 13:01:13 UTC
#FAILED

On firstboot GUI registration to RHN (processing sent of hardware information to server) there was thrown an exception - and got frozen on the page of "Sending hardware profile..." dialog box. But the system got registered to RHN and served normally once I reset it...

Error is:
---
[Thu Jan  7 13:37:03 2010] up2date Registered login info.
[Thu Jan  7 13:37:18 2010] up2date Registered system.
[Thu Jan  7 13:37:18 2010] up2date Wrote system id to disk.
[Thu Jan  7 13:37:19 2010] up2date Sent hardware profile.
[Thu Jan  7 13:37:34 2010] up2date 
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 1681, in callAndFilterExceptions
    return function()
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 1096, in _createProfilePageApply
    if self.cfg['supportsExtendedPackageProfile']:
exceptions.AttributeError: RhnCreateProfileWindow instance has no attribute 'cfg'
---

Comment 9 Garik Khachikyan 2010-01-07 13:02:24 UTC
# COMMENT

Additionally to comment#8: The "Gnome" was chosen and the RHN registration passed through firstboot GUI guide...

Comment 10 Miroslav Suchý 2010-01-13 10:49:57 UTC
This issue (#8) has been solved in BZ 554317.

Comment 14 Garik Khachikyan 2010-01-20 13:30:48 UTC
# VERIFIED

The packages fixing the issue:
rhn-check-0.4.20-15.el5
rhn-setup-0.4.20-15.el5
rhn-setup-gnome-0.4.20-15.el5
rhn-client-tools-0.4.20-15.el5

Verification was applied on RHEL 5.5 Client/Server (v. 20100117.0).

Scenario: 
firstboot - tried registration to both hosted and satellite.
All is going fine without any errors. yum update also works fine with getting the updates to be installed...

Comment 16 errata-xmlrpc 2010-03-30 08:44:30 UTC
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-2010-0270.html