WICD doesn't forward hostname in DHCP connexion

Bug #1671819 reported by Emile D
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned

Bug Description

Hi,

When connecting using wicd-client (auto mode or manual), my hostname is not send to the openWRT router. My lease is :
? 192.168.144.225 a4:34:d9:dc:ff:5f 11h 53m 23s

I could make it work by the following :

Connect via gui wicd-client
$ sudo ip a flush wlp2s0
$ sudo dhclient
Connect via wicd-client

Then i got in openWRT router web interface :
karma 192.168.144.225 a4:34:d9:dc:ff:5f 11h 56m 50s

I think it's due to wicd because of the workaround i found.

Thank you for your usefull soft,

émile
-------------------------------------------------
$ uname -a
Linux karma 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux

$ sudo wicd -h
wicd 1.7.4 (bzr-r961)

$ sudo cat /var/log/wicd/wicd.log
2017/03/10 12:20:34 :: ---------------------------
2017/03/10 12:20:34 :: wicd initializing...
2017/03/10 12:20:34 :: ---------------------------
2017/03/10 12:20:34 :: wicd is version 1.7.4 961
2017/03/10 12:20:34 :: setting backend to external
2017/03/10 12:20:34 :: trying to load backend external
2017/03/10 12:20:34 :: successfully loaded backend external
2017/03/10 12:20:34 :: trying to load backend external
2017/03/10 12:20:34 :: successfully loaded backend external
2017/03/10 12:20:34 :: Automatically detected wireless interface wlp2s0
2017/03/10 12:20:34 :: setting wireless interface wlp2s0
2017/03/10 12:20:34 :: automatically detected wired interface eth0
2017/03/10 12:20:34 :: setting wired interface eth0
2017/03/10 12:20:34 :: setting wpa driver wext
2017/03/10 12:20:34 :: setting use global dns to False
2017/03/10 12:20:34 :: setting global dns
2017/03/10 12:20:34 :: global dns servers are None None None
2017/03/10 12:20:34 :: domain is None
2017/03/10 12:20:34 :: search domain is None
2017/03/10 12:20:34 :: setting automatically reconnect when connection drops True
2017/03/10 12:20:34 :: Setting dhcp client to 0
2017/03/10 12:20:34 :: Wireless configuration file found...
2017/03/10 12:20:34 :: Wired configuration file found...
2017/03/10 12:20:34 :: chmoding configuration files 0600...
2017/03/10 12:20:34 :: chowning configuration files root:root...
2017/03/10 12:20:34 :: Using wireless interface...wlp2s0
2017/03/10 12:20:34 :: Using wired interface...eth0
2017/03/10 12:20:40 :: Autoconnecting...
2017/03/10 12:20:42 :: No wired connection present, attempting to autoconnect to wireless network
2017/03/10 12:20:43 :: sauveterre3 has no never connect value
2017/03/10 12:20:43 :: trying to automatically connect to...sauveterre3
2017/03/10 12:20:43 :: Connecting to wireless network sauveterre3
2017/03/10 12:20:44 :: Putting interface down
2017/03/10 12:20:44 :: Releasing DHCP leases...
2017/03/10 12:20:44 :: Setting false IP...
2017/03/10 12:20:45 :: Stopping wpa_supplicant
2017/03/10 12:20:45 :: Flushing the routing table...
2017/03/10 12:20:45 :: Putting interface up...
2017/03/10 12:20:47 :: Running DHCP with NO hostname
2017/03/10 12:20:47 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 12:20:47 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 12:20:47 :: All rights reserved.
2017/03/10 12:20:47 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 12:20:47 ::
2017/03/10 12:20:47 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 12:20:47 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 12:20:47 :: Sending on Socket/fallback
2017/03/10 12:20:47 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 5
2017/03/10 12:20:52 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 14
2017/03/10 12:21:05 :: Running command ['rfkill', 'list'] failed: [Errno 2] No such file or directory
2017/03/10 12:21:06 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 10
2017/03/10 12:21:08 :: canceling connection attempt
2017/03/10 12:21:08 :: running kill dhcp.
2017/03/10 12:21:08 :: DHCP connection failed
2017/03/10 12:21:08 :: Sending connection attempt result aborted
2017/03/10 12:21:08 :: Exception in thread Thread-2:
2017/03/10 12:21:08 :: Traceback (most recent call last):
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
2017/03/10 12:21:08 :: self.run()
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/networking.py", line 363, in run
2017/03/10 12:21:08 :: self._connect()
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/networking.py", line 1006, in _connect
2017/03/10 12:21:08 :: self.set_ip_address(wiface)
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/networking.py", line 73, in wrapper
2017/03/10 12:21:08 :: return func(self, *__args, **__kargs)
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/networking.py", line 493, in set_ip_address
2017/03/10 12:21:08 :: dhcp_status = iface.StartDHCP(hname, staticdns)
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/wnettools.py", line 226, in newfunc
2017/03/10 12:21:08 :: return func(self, *args, **kwargs)
2017/03/10 12:21:08 :: File "/usr/lib/python2.7/dist-packages/wicd/wnettools.py", line 695, in StartDHCP
2017/03/10 12:21:08 :: self.dhcp_object.wait()
2017/03/10 12:21:08 :: AttributeError: 'NoneType' object has no attribute 'wait'
2017/03/10 12:21:08 ::
2017/03/10 12:21:14 :: Connecting to wireless network sauveterre3
2017/03/10 12:21:15 :: Putting interface down
2017/03/10 12:21:15 :: Releasing DHCP leases...
2017/03/10 12:21:15 :: Setting false IP...
2017/03/10 12:21:16 :: Stopping wpa_supplicant
2017/03/10 12:21:16 :: Flushing the routing table...
2017/03/10 12:21:16 :: Putting interface up...
2017/03/10 12:21:18 :: Running DHCP with NO hostname
2017/03/10 12:21:18 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 12:21:18 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 12:21:18 :: All rights reserved.
2017/03/10 12:21:18 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 12:21:18 ::
2017/03/10 12:21:18 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 12:21:18 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 12:21:18 :: Sending on Socket/fallback
2017/03/10 12:21:18 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
2017/03/10 12:21:18 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 12:21:18 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 12:21:18 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 12:21:18 :: bound to 192.168.144.225 -- renewal in 16398 seconds.
2017/03/10 12:21:18 :: DHCP connection successful
2017/03/10 12:21:18 :: not verifying
2017/03/10 12:21:18 :: Connecting thread exiting.
2017/03/10 12:21:18 :: Sending connection attempt result success
2017/03/10 14:12:05 :: Autoconnecting...
2017/03/10 14:12:05 :: No wired connection present, attempting to autoconnect to wireless network
2017/03/10 14:12:09 :: sauveterre3 has no never connect value
2017/03/10 14:12:09 :: trying to automatically connect to...sauveterre3
2017/03/10 14:12:09 :: Connecting to wireless network sauveterre3
2017/03/10 14:12:10 :: Putting interface down
2017/03/10 14:12:10 :: Releasing DHCP leases...
2017/03/10 14:12:10 :: Setting false IP...
2017/03/10 14:12:10 :: Stopping wpa_supplicant
2017/03/10 14:12:10 :: Flushing the routing table...
2017/03/10 14:12:10 :: Putting interface up...
2017/03/10 14:12:12 :: Running DHCP with NO hostname
2017/03/10 14:12:12 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 14:12:12 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 14:12:12 :: All rights reserved.
2017/03/10 14:12:12 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 14:12:12 ::
2017/03/10 14:12:12 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:12:12 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:12:12 :: Sending on Socket/fallback
2017/03/10 14:12:12 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 7
2017/03/10 14:12:12 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 14:12:12 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 14:12:12 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 14:12:12 :: bound to 192.168.144.225 -- renewal in 17571 seconds.
2017/03/10 14:12:12 :: DHCP connection successful
2017/03/10 14:12:12 :: not verifying
2017/03/10 14:12:13 :: Connecting thread exiting.
2017/03/10 14:12:16 :: Sending connection attempt result success
2017/03/10 14:12:46 :: Autoconnecting...
2017/03/10 14:12:46 :: No wired connection present, attempting to autoconnect to wireless network
2017/03/10 14:12:50 :: sauveterre3 has no never connect value
2017/03/10 14:12:50 :: trying to automatically connect to...sauveterre3
2017/03/10 14:12:50 :: Connecting to wireless network sauveterre3
2017/03/10 14:12:51 :: Putting interface down
2017/03/10 14:12:51 :: Releasing DHCP leases...
2017/03/10 14:12:51 :: Setting false IP...
2017/03/10 14:12:51 :: Stopping wpa_supplicant
2017/03/10 14:12:51 :: Flushing the routing table...
2017/03/10 14:12:51 :: Putting interface up...
2017/03/10 14:12:53 :: Running DHCP with NO hostname
2017/03/10 14:12:53 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 14:12:53 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 14:12:53 :: All rights reserved.
2017/03/10 14:12:53 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 14:12:53 ::
2017/03/10 14:12:53 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:12:53 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:12:53 :: Sending on Socket/fallback
2017/03/10 14:12:53 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 7
2017/03/10 14:12:53 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 14:12:53 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 14:12:53 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 14:12:53 :: bound to 192.168.144.225 -- renewal in 20886 seconds.
2017/03/10 14:12:53 :: DHCP connection successful
2017/03/10 14:12:53 :: not verifying
2017/03/10 14:12:54 :: Connecting thread exiting.
2017/03/10 14:12:57 :: Sending connection attempt result success
2017/03/10 14:13:38 :: Connecting to wireless network sauveterre3
2017/03/10 14:13:39 :: Putting interface down
2017/03/10 14:13:39 :: Releasing DHCP leases...
2017/03/10 14:13:39 :: Setting false IP...
2017/03/10 14:13:40 :: Stopping wpa_supplicant
2017/03/10 14:13:40 :: Flushing the routing table...
2017/03/10 14:13:40 :: Putting interface up...
2017/03/10 14:13:42 :: Running DHCP with NO hostname
2017/03/10 14:13:42 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 14:13:42 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 14:13:42 :: All rights reserved.
2017/03/10 14:13:42 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 14:13:42 ::
2017/03/10 14:13:42 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:13:42 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:13:42 :: Sending on Socket/fallback
2017/03/10 14:13:42 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 6
2017/03/10 14:13:42 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 14:13:42 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 14:13:42 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 14:13:42 :: bound to 192.168.144.225 -- renewal in 19376 seconds.
2017/03/10 14:13:42 :: DHCP connection successful
2017/03/10 14:13:42 :: not verifying
2017/03/10 14:13:42 :: Connecting thread exiting.
2017/03/10 14:13:42 :: Sending connection attempt result success
2017/03/10 14:14:48 :: Connecting to wireless network sauveterre3
2017/03/10 14:14:49 :: Putting interface down
2017/03/10 14:14:49 :: Releasing DHCP leases...
2017/03/10 14:14:49 :: Setting false IP...
2017/03/10 14:14:50 :: Stopping wpa_supplicant
2017/03/10 14:14:50 :: Flushing the routing table...
2017/03/10 14:14:50 :: Putting interface up...
2017/03/10 14:14:52 :: Running DHCP with NO hostname
2017/03/10 14:14:52 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 14:14:52 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 14:14:52 :: All rights reserved.
2017/03/10 14:14:52 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 14:14:52 ::
2017/03/10 14:14:52 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:14:52 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:14:52 :: Sending on Socket/fallback
2017/03/10 14:14:52 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 5
2017/03/10 14:14:57 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 13
2017/03/10 14:14:57 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 14:14:57 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 14:14:57 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 14:14:57 :: RTNETLINK answers: File exists
2017/03/10 14:14:57 :: bound to 192.168.144.225 -- renewal in 21395 seconds.
2017/03/10 14:14:57 :: DHCP connection successful
2017/03/10 14:14:57 :: not verifying
2017/03/10 14:14:58 :: Connecting thread exiting.
2017/03/10 14:14:58 :: Sending connection attempt result success
2017/03/10 14:15:13 :: Connecting to wireless network sauveterre3
2017/03/10 14:15:14 :: Putting interface down
2017/03/10 14:15:14 :: Releasing DHCP leases...
2017/03/10 14:15:14 :: Setting false IP...
2017/03/10 14:15:14 :: Stopping wpa_supplicant
2017/03/10 14:15:15 :: Flushing the routing table...
2017/03/10 14:15:15 :: Putting interface up...
2017/03/10 14:15:17 :: Running DHCP with NO hostname
2017/03/10 14:15:17 :: Internet Systems Consortium DHCP Client 4.3.5
2017/03/10 14:15:17 :: Copyright 2004-2016 Internet Systems Consortium.
2017/03/10 14:15:17 :: All rights reserved.
2017/03/10 14:15:17 :: For info, please visit https://www.isc.org/software/dhcp/
2017/03/10 14:15:17 ::
2017/03/10 14:15:17 :: Listening on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:15:17 :: Sending on LPF/wlp2s0/a4:34:d9:dc:ff:5f
2017/03/10 14:15:17 :: Sending on Socket/fallback
2017/03/10 14:15:17 :: DHCPDISCOVER on wlp2s0 to 255.255.255.255 port 67 interval 8
2017/03/10 14:15:17 :: DHCPREQUEST of 192.168.144.225 on wlp2s0 to 255.255.255.255 port 67
2017/03/10 14:15:17 :: DHCPOFFER of 192.168.144.225 from 192.168.144.1
2017/03/10 14:15:17 :: DHCPACK of 192.168.144.225 from 192.168.144.1
2017/03/10 14:15:17 :: bound to 192.168.144.225 -- renewal in 21551 seconds.
2017/03/10 14:15:17 :: DHCP connection successful
2017/03/10 14:15:17 :: not verifying
2017/03/10 14:15:17 :: Connecting thread exiting.
2017/03/10 14:15:17 :: Sending connection attempt result success

Revision history for this message
Clinton E Troutman (skorpion757) wrote :

Same on Debian9 with Edgerouter X handling DHCP and DNS...

Cannot ping affected host by and hostname as router DNS has no hostname for affected host.

Revision history for this message
Guido Maria Serra (zeph1ro) wrote :

confirmed on https://packages.debian.org/sid/wicd-daemon

ii wicd-curses 1.7.4+tb2-6 all wired and wireless network manager - Curses client
ii wicd-daemon 1.7.4+tb2-6 all wired and wireless network manager - daemon

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.