Bug 530659 - rhnregGui.py Line 949 in populateProfile: local variable 'ipaddr' referenced before assignment
Summary: rhnregGui.py Line 949 in populateProfile: local variable 'ipaddr' referenced ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.5
Hardware: i686
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Miroslav Suchý
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On: 554317
Blocks: 532145
TreeView+ depends on / blocked
 
Reported: 2009-10-24 00:10 UTC by David L. Sieving
Modified: 2015-01-04 21:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 532145 (view as bug list)
Environment:
Last Closed: 2010-03-30 08:44:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0270 0 normal SHIPPED_LIVE rhn-client-tools bug fix and enhancement update 2010-03-29 15:02:35 UTC

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


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