After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 594591 - NetworkManager not reading DHCP_HOSTNAME in fedora's ifcfg-wlan0
NetworkManager not reading DHCP_HOSTNAME in fedora's ifcfg-wlan0
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
0.7.x
Other Linux
: Normal minor
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2009-09-09 05:14 UTC by Jorge A Gallegos
Modified: 2011-04-26 18:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jorge A Gallegos 2009-09-09 05:14:57 UTC
I added the hostname through fedora's network GUI tool and made sure by editing the /etc/sysconfig/network-scripts/ifcfg-wlan0 file, the parameter is there. However, when I connect to my wireless router, the send host-name request is not honored, and so my laptop only has an IP address as an identity in the router. This does not happen with ubuntu machines, since the dhclient.conf in ubuntu includes that directive, ubuntu machines display its hostname in the router.
Wired connection works charmingly in both distros, so, I believe this lies in the process that parses the wireless sysconfig stuff in fedora.
Additionally, this could also happen with machines with more than 1 ethernet card (depending on the bug's root cause), I have no such way to say so at the moment.
A workaround is to add a file /etc/dhclient-wlan0.conf (or whatever wireless NIC you have) and add the send host-name directive manually. That seems redundant though, since the parameter is already in the sysconfig files, and the dhclient-wlan0.conf file does not get updated on system-config* changes.

Thanks in advance
Comment 1 Dan Williams 2009-09-11 18:28:50 UTC
Can you grab the output of:

rpm -qv NetworkManager

run in a terminal (doesn't matter what user its run as) and let me know what version of NM you have installed?  Thanks!
Comment 2 Jonathan Pritchard 2009-09-11 18:51:55 UTC
I'm not the original reporter but I suffer from the same issue.

rpm -qv NetworkManger
NetworkManager-0.7.1-8.git20090708.fc11.i586
Comment 3 Dan Williams 2009-09-11 19:13:38 UTC
Can you also provide the contents of:

/var/run/nm-dhclient-wlan0.conf

while the connection is active?  (assuming your wifi interface is wlan0)
Comment 4 Dan Williams 2009-09-11 19:21:54 UTC
Next, can I get the output of:

dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings org.freedesktop.NetworkManagerSettings.ListConnections

?
Comment 5 Jonathan Pritchard 2009-09-11 22:32:48 UTC
(In reply to comment #3)
> Can you also provide the contents of:
> 
> /var/run/nm-dhclient-wlan0.conf
> 
> while the connection is active?  (assuming your wifi interface is wlan0)

# Created by NetworkManager
# Merged from /etc/dhclient-wlan0.conf

send host-name "Jon-Laptop_Linux";

--

Although as it says, it's only because I created a file called "dhclient-wlan0.conf" with send host-name "Jon-Laptop_Linux" in order to workaround this problem. So perhaps the problem is that NetworkManager wasn't creating this file by itself anyway.

--

(In reply to comment #4)
> Next, can I get the output of:
> 
> dbus-send --system --print-reply
> --dest=org.freedesktop.NetworkManagerSystemSettings
> /org/freedesktop/NetworkManagerSettings
> org.freedesktop.NetworkManagerSettings.ListConnections
> 
> ?

I'm still working on this one if that's ok. Pasted it into the terminal but it came up with a couple of errors. Looking into it.

Thanks for taking a look into it.
Comment 6 Jorge A Gallegos 2009-09-11 23:06:41 UTC
If the /etc/dhclient-wlan0.conf doesn't exist, there's no /var/run/nm-dhclient-wlan0.conf

I have this NM version NetworkManager-0.7.1-8.git20090708.fc11.i586

I'll work out the DBUS details later when I'm at home actually using a wireless conn.
Comment 7 Jonathan Pritchard 2009-09-11 23:34:04 UTC
(In reply to comment #4)
> Next, can I get the output of:
> 
> dbus-send --system --print-reply
> --dest=org.freedesktop.NetworkManagerSystemSettings
> /org/freedesktop/NetworkManagerSettings
> org.freedesktop.NetworkManagerSettings.ListConnections
> 
> ?

[Jon@Jon-Laptop ~]$ dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings org.freedesktop.NetworkManagerSettings.ListConnections
method return sender=:1.10 -> dest=:1.74 reply_serial=2
   array [
      object path "/org/freedesktop/NetworkManagerSettings/0"
   ]
Comment 8 Jorge A Gallegos 2009-09-18 23:01:03 UTC
This is what I got:

method return sender=:1.9 -> dest=:1.132 reply_serial=2
   array [
      object path "/org/freedesktop/NetworkManagerSettings/0"
   ]
Comment 9 Jonathan Pritchard 2010-01-13 02:16:58 UTC
This is still present in Fedora 12, my router isn't passed a hostname, with the following NM packages: NetworkManager-gnome-0.7.997-2.git20091214.fc12.i686
NetworkManager-0.7.997-2.git20091214.fc12.i686

The output of the following command appears to be blank:

[Jon@Jon-Laptop ~]$ cat /var/run/nm-dhclient-wlan0.conf
# Created by NetworkManager

Finally the last thing you asked for:

[Jon@Jon-Laptop ~]$ dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings org.freedesktop.NetworkManagerSettings.ListConnections
method return sender=:1.8 -> dest=:1.222 reply_serial=2
   array [
      object path "/org/freedesktop/NetworkManagerSettings/0"
   ]
Comment 10 Dan Williams 2010-02-01 22:39:01 UTC
Ok, so with that information, can I get:

dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings/0 org.freedesktop.NetworkManagerSettings.Connection.GetSettings


and also /var/log/messages bits about parsing the ifcfg files, which should look something like this:

Feb  1 09:44:41 localhost NetworkManager:    ifcfg-rh:     read connection 'System pan0'
Feb  1 09:44:41 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-Auto_LunaSol ... 
Feb  1 09:44:41 localhost NetworkManager:    ifcfg-rh:     read connection 'Auto LunaSol'
Feb  1 09:44:41 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-Test_LEAP ... 


Just want to make sure that there aren't errors when parsing your ifcfg-wlan0.
Comment 11 Jonathan Pritchard 2010-02-01 23:14:23 UTC
[Jon@Jon-Laptop ~]$ dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings/0 org.freedesktop.NetworkManagerSettings.Connection.GetSettings
method return sender=:1.8 -> dest=:1.67 reply_serial=2
   array [
      dict entry(
         string "ipv4"
         array [
            dict entry(
               string "addresses"
               variant                   array [
                  ]
            )
            dict entry(
               string "dns"
               variant                   array [
                  ]
            )
            dict entry(
               string "routes"
               variant                   array [
                  ]
            )
            dict entry(
               string "method"
               variant                   string "auto"
            )
         ]
      )
      dict entry(
         string "connection"
         array [
            dict entry(
               string "uuid"
               variant                   string "5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03"
            )
            dict entry(
               string "id"
               variant                   string "System eth0"
            )
            dict entry(
               string "type"
               variant                   string "802-3-ethernet"
            )
         ]
      )
      dict entry(
         string "802-3-ethernet"
         array [
            dict entry(
               string "mac-address"
               variant                   array [
                     byte 0
                     byte 28
                     byte 37
                     byte 159
                     byte 138
                     byte 52
                  ]
            )
         ]
      )
   ]

And as for /var/log/messages:

Jan 31 20:40:13 localhost bluetoothd[1273]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory
Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-wlan0 ... 
Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh:     error: Missing SSID
Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh:     read connection 'System eth0'
Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... 
Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): carrier is OFF
Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): new Ethernet device (driver: 'e1000e')
Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): exported as /org/freedesktop/NetworkManager/Devices/0

Feb  1 13:44:06 localhost bluetoothd[1283]: Parsing /etc/bluetooth/audio.conf failed: No such file or directory
Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-wlan0 ... 
Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh:     error: Missing SSID
Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
Feb  1 13:44:06 localhost kernel: Bluetooth: SCO (Voice Link) ver 0.6
Feb  1 13:44:06 localhost kernel: Bluetooth: SCO socket layer initialized
Feb  1 13:44:06 localhost bluetoothd[1283]: HCI dev 0 registered
Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh:     read connection 'System eth0'
Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... 

Hope some of that helps. Thanks.
Comment 12 Jiri Klimes 2011-01-13 12:43:50 UTC
(In reply to comment #11)
> 
> And as for /var/log/messages:
> 
> Jan 31 20:40:13 localhost bluetoothd[1273]: Parsing /etc/bluetooth/serial.conf
> failed: No such file or directory
> Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-wlan0 ... 
> Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh:     error: Missing SSID
> Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
> Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh:     read connection
> 'System eth0'
> Jan 31 20:40:13 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-lo ... 
> Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): carrier is OFF
> Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): new Ethernet device
> (driver: 'e1000e')
> Jan 31 20:40:13 localhost NetworkManager: <info>  (eth0): exported as
> /org/freedesktop/NetworkManager/Devices/0
> 
> Feb  1 13:44:06 localhost bluetoothd[1283]: Parsing /etc/bluetooth/audio.conf
> failed: No such file or directory
> Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-wlan0 ... 
> Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh:     error: Missing SSID
> Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
> Feb  1 13:44:06 localhost kernel: Bluetooth: SCO (Voice Link) ver 0.6
> Feb  1 13:44:06 localhost kernel: Bluetooth: SCO socket layer initialized
> Feb  1 13:44:06 localhost bluetoothd[1283]: HCI dev 0 registered
> Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh:     read connection
> 'System eth0'
> Feb  1 13:44:06 localhost NetworkManager:    ifcfg-rh: parsing
> /etc/sysconfig/network-scripts/ifcfg-lo ... 
> 
> Hope some of that helps. Thanks.

You are missing ESSID variable in ifcfg-wlan0. You can fix that via nm-connetion-editor.
Comment 13 Dan Williams 2011-04-26 18:53:56 UTC
Most certainly the missing SSID thing...