Bug 749281

Summary: <type 'exceptions.TypeError'>: unsupported operand type(s) for +: 'NoneType' and 'str'
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: rhn-client-toolsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Jiří Mikulka <jmikulka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: jmikulka, jpazdziora, mminar, msuchy
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-client-tools-1.0.0-76.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 11:59:46 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: 767679    
Bug Blocks:    

Description Alexander Todorov 2011-10-26 15:49:39 UTC
Description of problem:

During rhn_register form the command line it fails with this :


Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 76, in <module>
    app.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_register", line 58, in main
    ui.main()
  File "/usr/share/rhn/up2date_client/tui.py", line 1272, in main
    tui.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 1220, in run
    win = self.windows[index](self.screen, self)
  File "/usr/share/rhn/up2date_client/tui.py", line 678, in __init__
    hardware_text += hw['ipaddr'] + "  "
<type 'exceptions.TypeError'>: unsupported operand type(s) for +: 'NoneType' and 'str'



I suspect this is due to my computer having issues with network connectivity. It failed 2 times, then I was able to get past the hardware info screen (but it failed to connect to RHN) and on the next run it failed again with this traceback.

This is on a freshly installed 6.1 Workstation system.

Version-Release number of selected component (if applicable):
rhn-setup-1.0.0-61.el6.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jan Pazdziora 2011-11-24 14:54:57 UTC
Setting devel ack -- fix is in Spacewalk master, e13f9db192792fe9501b884c5a595cccc887ede6.

Comment 2 Jan Pazdziora 2011-11-24 14:55:22 UTC
For QA: this should likely happen if the client is IPv6-only machine.

Comment 3 Miroslav Suchý 2012-01-09 17:25:27 UTC
This will be fixed as side effect of bug 767679.
Leaving for QA to test.

Comment 7 errata-xmlrpc 2012-06-20 11:59:46 UTC
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.

http://rhn.redhat.com/errata/RHBA-2012-0752.html