Bug 466775

Summary: DBusException: org.freedesktop.DBus.Error.InvalidArgs: No such property Hostname
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jlaska, joshua, jturner, mmaslano, sshinde, tomek, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:dc8b00f2fbdf8f11cb4e0547df90c0bef94788d0d78c4016085f3609b2aef309
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-16 17:28:01 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:    
Bug Blocks: 438944    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description James Laska 2008-10-13 15:25:49 UTC
This bug was filed automatically by anaconda.

Comment 1 James Laska 2008-10-13 15:25:57 UTC
Created attachment 320193 [details]
Attached traceback automatically from anaconda.

Comment 2 James Laska 2008-10-13 16:18:41 UTC
Created attachment 320197 [details]
Attached traceback automatically from anaconda.

Comment 3 James Laska 2008-10-14 11:42:01 UTC
Snippet of traceback from attachment#320193 [details]

anaconda 11.4.1.48 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/anaconda/network.py", line 96, in getDefaultHostname
    hostname = ip4_config_props.Get(isys.NM_MANAGER_IFACE, "Hostname")
  File "/usr/lib/anaconda/iw/network_gui.py", line 38, in getScreen
    self.hostname = network.getDefaultHostname(anaconda)
  File "/usr/lib/anaconda/gui.py", line 1436, in setScreen
    new_screen = self.currentWindow.getScreen(anaconda)
  File "/usr/lib/anaconda/gui.py", line 1353, in nextClicked
    self.setScreen ()
DBusException: org.freedesktop.DBus.Error.InvalidArgs: No such property Hostname

Comment 4 Tomasz Torcz 2008-10-14 16:26:46 UTC
Created attachment 320322 [details]
Attached traceback automatically from anaconda.

Comment 5 Chris Lumens 2008-10-14 18:20:53 UTC
Hostname is no longer a property NM provides, so we just need to be using socket.gethostname every time.  This should be fixed in the next build of anaconda.

Comment 6 David Cantrell 2008-10-15 03:44:33 UTC
I've updated Chris' patch a bit so we get the IP address of the interface from NetworkManager via D-Bus and do a socket.gethostbyaddr() before falling back on socket.gethostname() and eventually falling back on localhost.localdomain.

Comment 7 David Cantrell 2008-10-15 03:46:19 UTC
*** Bug 466546 has been marked as a duplicate of this bug. ***

Comment 8 Shashin Shinde 2008-10-15 17:28:19 UTC
Created attachment 320463 [details]
Attached traceback automatically from anaconda.

Comment 9 Will Woods 2008-10-15 17:50:52 UTC
Created attachment 320465 [details]
Attached traceback automatically from anaconda.

Comment 10 Marcela Mašláňová 2008-10-16 12:11:42 UTC
Created attachment 320545 [details]
Attached traceback automatically from anaconda.

Comment 11 James Laska 2008-10-16 17:27:20 UTC
Fixed in Fedora development i386 (20081016) which contains anaconda-11.4.1.49-1.i386