Bug 119921

Summary: NetworkManager fails to get hostname by DHCP
Product: [openSUSE] SUSE LINUX 10.0 Reporter: James Ogley <riggwelter>
Component: GNOMEAssignee: Robert Love <rml>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: i686   
OS: SUSE Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description James Ogley 2005-10-03 17:29:32 UTC
NetworkManager's daemon fails to get a hostname by DHCP - this works when using
dhcpcd.  With NetworkManager, the hostname (according to my hostname) is 3(NXDOMAIN)

The following is written to /var/log/messages when NetworkManager starts:

Oct  3 18:17:01 riggwelter NetworkManager: <information>        wlan0: Driver
support level for 'ndiswrapper' is fully-supported
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.400322]  ():
found config /etc/sysconfig/network/ifcfg-wlan0 for if wlan0
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.400878]  ():
BOOTPROTO=dhcp
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.401087]  ():
------ Config (wlan0)
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.401255]  ():
dhcp=1
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.401448]  ():
addr=0.0.0.0
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.401675]  ():
gw=0.0.0.0
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.401866]  ():
mask=0.0.0.0
Oct  3 18:17:01 riggwelter NetworkManager: <debug info> [1128359821.402034]  ():
---------------------
Oct  3 18:17:01 riggwelter NetworkManager: <information>        nm_device_new():
waiting for device's worker thread to start
Oct  3 18:17:01 riggwelter NetworkManager: <information>        nm_device_new():
device's worker thread started, continuing.
Oct  3 18:17:01 riggwelter NetworkManager: <information>        Now managing
wireless device 'wlan0'.
Oct  3 18:17:01 riggwelter NetworkManager: <information>        Deactivating
device wlan0.
Oct  3 18:17:03 riggwelter hp: unable to open /var/run/hpiod.port: No such file
or directory: prnt/hpijs/hplip_api.c 75
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) started...
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 1 (Device Prepare) scheduled...
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Old device
'eth0' activating, won't change.
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 1 (Device Prepare) started...
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 2 (Device Configure) scheduled...
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 1 (Device Prepare) complete.
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 2 (Device Configure) starting...
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0/wired) Stage 2 (Device Configure) successful.
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 3 (IP Configure Start) scheduled.
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 2 (Device Configure) complete.
Oct  3 18:17:03 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 3 (IP Configure Start) started...
Oct  3 18:17:04 riggwelter NetworkManager: <information>        Activation
(eth0) Beginning DHCP transaction.
Oct  3 18:17:04 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 3 (IP Configure Start) complete.
Oct  3 18:17:04 riggwelter NetworkManager: <information>        DHCP daemon
state now 12 for interface eth0
Oct  3 18:17:04 riggwelter dhclient: Internet Systems Consortium DHCP Client V3.0.3
Oct  3 18:17:04 riggwelter dhclient: Copyright 2004-2005 Internet Systems
Consortium.
Oct  3 18:17:04 riggwelter dhclient: All rights reserved.
Oct  3 18:17:04 riggwelter dhclient: For info, please visit
http://www.isc.org/products/DHCP
Oct  3 18:17:04 riggwelter dhclient:
Oct  3 18:17:04 riggwelter NetworkManager: <information>        Old device
'eth0' activating, won't change.
Oct  3 18:17:04 riggwelter NetworkManager: <information>        DHCP daemon
state now 1 for interface eth0
Oct  3 18:17:04 riggwelter dhclient: Listening on LPF/eth0/00:c0:9f:41:a7:ba
Oct  3 18:17:04 riggwelter dhclient: Sending on   LPF/eth0/00:c0:9f:41:a7:ba
Oct  3 18:17:04 riggwelter dhclient: Sending on   Socket/fallback
Oct  3 18:17:05 riggwelter dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 3
Oct  3 18:17:05 riggwelter dhclient: DHCPOFFER from 10.32.0.8
Oct  3 18:17:10 riggwelter dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  3 18:17:10 riggwelter dhclient: DHCPACK from 10.32.0.8
Oct  3 18:17:10 riggwelter dhclient: bound to 10.32.0.100 -- renewal in
1019123817 seconds.
Oct  3 18:17:10 riggwelter dhcdbd: dhco_input_option: Value -1 cannot be
converted to type L
Oct  3 18:17:10 riggwelter dhcdbd: dhco_parse_option_settings: bad option
setting: new_dhcp_lease_time = -1
Oct  3 18:17:10 riggwelter dhcdbd: dhco_input_option: Value -1 cannot be
converted to type L
Oct  3 18:17:10 riggwelter dhcdbd: dhco_parse_option_settings: bad option
setting: old_dhcp_lease_time = -1
Oct  3 18:17:10 riggwelter NetworkManager: <information>        DHCP daemon
state now 2 for interface eth0
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 4 (IP Configure Get) scheduled...
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 4 (IP Configure Get) started...
Oct  3 18:17:10 riggwelter dhcdbd: message_handler: message handler not found
under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.domain_name
Oct  3 18:17:10 riggwelter NetworkManager: <WARNING>      (): get_ip4_string():
error calling 'domain_name', DHCP daemon returned error
'org.freedesktop.DBus.Error.UnknownMethod', message 'Method "domain_name" with
signature "" on interface "com.redhat.dhcp.dbus.get" doesn't exist '.
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Retrieved the
following IP4 configuration from the DHCP daemon:
Oct  3 18:17:10 riggwelter NetworkManager: <information>          address
10.32.0.100
Oct  3 18:17:10 riggwelter NetworkManager: <information>          netmask
255.255.255.0
Oct  3 18:17:10 riggwelter NetworkManager: <information>          broadcast
10.32.0.255
Oct  3 18:17:10 riggwelter NetworkManager: <information>          gateway 10.32.0.8
Oct  3 18:17:10 riggwelter NetworkManager: <information>          nameserver
10.32.0.3
Oct  3 18:17:10 riggwelter NetworkManager: <information>          nameserver
217.64.112.13
Oct  3 18:17:10 riggwelter NetworkManager: <information>          nameserver
217.64.112.13
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 5 (IP Configure Commit) scheduled...
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 4 (IP Configure Get) complete.
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 5 (IP Configure Commit) started...
Oct  3 18:17:10 riggwelter NetworkManager: <information>        Your IP address
= 10.32.0.100
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Adding
nameserver: 10.32.0.3
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Clearing nscd
hosts cache.
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Adding
nameserver: 217.64.112.13
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Clearing nscd
hosts cache.
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Adding
nameserver: 217.64.112.13
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Clearing nscd
hosts cache.
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Activation
(eth0) Finish handler scheduled.
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Activation
(eth0) successful, device activated.
Oct  3 18:17:11 riggwelter NetworkManager: <information>        Activation
(eth0) Stage 5 (IP Configure Commit) complete.
Oct  3 18:17:21 riggwelter kernel: eth0: no IPv6 routers present
Comment 1 Robert Love 2005-12-02 17:59:16 UTC
Marking this a dupe of 134160.  Timo is working on adding set-hostname-from-dhcp support to dhcdbd.  Follow bug #134160 for progress.

*** This bug has been marked as a duplicate of 134160 ***