Bug 532145 - 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 CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 0.7
Hardware: i686
OS: Linux
low
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 530659
Blocks: space07
TreeView+ depends on / blocked
 
Reported: 2009-10-30 21:09 UTC by Miroslav Suchý
Modified: 2009-12-07 12:03 UTC (History)
1 user (show)

Fixed In Version:
Clone Of: 530659
Environment:
Last Closed: 2009-12-07 12:03:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2009-10-30 21:09:34 UTC
+++ This bug was initially created as a clone of Bug #530659 +++

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 1 Miroslav Suchý 2009-10-30 21:12:36 UTC
This happen when hostname is not set and hardware profile is not sent to rhnServer.

Comment 2 Miroslav Suchý 2009-10-30 21:16:50 UTC
Commited as 3dab836b0f7f4da095daec5c9618dd52f635dacd

Comment 3 Miroslav Suchý 2009-12-07 12:03:04 UTC
Spacewalk 0.7 released.


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