Bug 921829

Summary: Networking Card python script hostname issue
Product: [Fedora] Fedora Reporter: Benjamin Adams <benjamindadams>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: g.kaviyarasu, jonathan, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-17 14:21:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
IBM T60 Laptop none

Description Benjamin Adams 2013-03-15 03:29:47 UTC
Created attachment 710382 [details]
IBM T60 Laptop

I'm on a IBM T60  I get the fallowing error on the welcome screen with
languages.  I select English (US) ... Hitting Continue I get:

(Attached is my dmesg)

(anaconda:2413): Gtk-WARNING **: Overriding tab label for notebook
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/__init__.py",
line 77, in <lambda>
    self.window.connect("continue-clicked", lambda *args:
self._on_continue_clicked(cb))
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py",
line 287, in _on_continue_clicked
    StandaloneSpoke._on_continue_clicked(self, cb)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/__init__.py",
line 73, in _on_continue_clicked
    cb()
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/__init__.py",
line 234, in _on_continue_clicked
    nextAction = self._instantiateAction(self._actions[1])
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/__init__.py",
line 77, in _instantiateAction
    obj = actionClass(self.data, self.storage, self.payload, self.instclass)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py",
line 1091, in __init__
    self.network_control_box.hostname = self.data.network.hostname
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py",
line 960, in hostname
    self.entry_hostname.set_text(value)
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value



--------------------------------------------
My work around
This is on i386 not sure about x64 coding.

Fix was in file:
/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py

line 960:
from
    @hostname.setter
    def hostname(self, value):
        self.entry_hostname.set_text(value)

To:
    @hostname.setter
    def hostname(self, value):
+        if not value:
+            value = 'localhost'
        self.entry_hostname.set_text(value)

Installing also on wireless without network connection.

Comment 1 Radek Vykydal 2013-06-17 14:21:26 UTC
This should be fixed in Fedora 19, there were a lot of fixes for setting of default for hostname since F18 (most probably you were hitting the same issue as in https://bugzilla.redhat.com/show_bug.cgi?id=893892#c4). Please feel free to reopen the bug if you hit the issue with F19.