[Pkg-utopia-maintainers] Bug#855833: network-manager: wired connection in DHCP require a restart of networking.service

Giuseppe Sacco eppesuig at debian.org
Wed Feb 22 08:59:19 UTC 2017


Package: network-manager
Version: 1.6.0-1
Severity: important

Dear Maintainer,
since about 3 weeks, network-manager does not correctly manage a wired
interface via DHCP. This is a Debian testing machine updated every morning,
so something changed about that date. Now, the wireless connection works
perfectly, but wired connection keep disconnecting even before obtaining an
address from DHCP server. This is an excerpt of what is shown in syslog:

Feb 22 09:21:06 uefi NetworkManager[3982]: <info>  [1487751666.5288] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
Feb 22 09:21:06 uefi NetworkManager[3982]: <info>  [1487751666.5302] device (eth0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 22 09:21:06 uefi kernel: [   86.351530] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0652] device (eth0): link connected
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0658] device (eth0): state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Feb 22 09:21:08 uefi kernel: [   87.885772] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Feb 22 09:21:08 uefi kernel: [   87.885808] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0667] policy: auto-activating connection 'DHCP'
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0675] device (eth0): Activation: starting connection 'DHCP' (431bd46c-b763-42b8-8b57-2106b1453ebd)
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0678] device (eth0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0679] manager: NetworkManager state is now CONNECTING
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0683] device (eth0): state change: prepare -> config (reason 'none') [40 50 0]
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0686] device (eth0): state change: config -> ip-config (reason 'none') [50 70 0]
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0691] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds)
Feb 22 09:21:08 uefi NetworkManager[3982]: <info>  [1487751668.0701] dhcp4 (eth0): dhclient started with pid 3998
Feb 22 09:21:08 uefi kernel: [   87.891242] e1000e 0000:00:19.0 eth0: changing MTU from 1500 to 1400
Feb 22 09:21:08 uefi dhclient[3998]: DHCPREQUEST of 192.168.245.3 on eth0 to 255.255.255.255 port 67
Feb 22 09:21:09 uefi avahi-daemon[703]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::baca:3aff:febe:c618.
Feb 22 09:21:09 uefi avahi-daemon[703]: New relevant interface eth0.IPv6 for mDNS.
Feb 22 09:21:09 uefi avahi-daemon[703]: Registering new address record for fe80::baca:3aff:febe:c618 on eth0.*.
Feb 22 09:21:12 uefi dhclient[3998]: DHCPREQUEST of 192.168.245.3 on eth0 to 255.255.255.255 port 67
Feb 22 09:21:12 uefi NetworkManager[3982]: <info>  [1487751672.0658] device (eth0): state change: ip-config -> unavailable (reason 'carrier-changed') [70 20 40]
Feb 22 09:21:12 uefi NetworkManager[3982]: <info>  [1487751672.0981] dhcp4 (eth0): canceled DHCP transaction, DHCP client pid 3998
Feb 22 09:21:12 uefi NetworkManager[3982]: <info>  [1487751672.0982] dhcp4 (eth0): state changed unknown -> done
Feb 22 09:21:12 uefi avahi-daemon[703]: Withdrawing address record for fe80::baca:3aff:febe:c618 on eth0.
Feb 22 09:21:12 uefi avahi-daemon[703]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::baca:3aff:febe:c618.
Feb 22 09:21:12 uefi avahi-daemon[703]: Interface eth0.IPv6 no longer relevant for mDNS.

Then, network manager start again, in a loop, without obtaining the address.

Ths only solution I found is to execute thwse two commands (in this order):
# systemctl restart NetworkManager.service
# systemctl restart networking.service

then, eth0 get the address via DHCP and everything works.

So, maybe, the solution is to added a dependency on networking.service in
systemd unit file /lib/systemd/system/NetworkManager.service. Currently it
contains this contraints:

Wants=network.target
After=network-pre.target dbus.service
Before=network.target 

maybe, it should be changed in

Wants=network.target
After=network-pre.target dbus.service networking.service
Before=network.target 

Bye,
Giuseppe

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser                3.115
ii  dbus                   1.10.16-1
ii  init-system-helpers    1.47
ii  libaudit1              1:2.6.7-1
ii  libbluetooth3          5.43-1
ii  libc6                  2.24-9
ii  libglib2.0-0           2.50.2-2
ii  libgnutls30            3.5.8-3
ii  libgudev-1.0-0         230-3
ii  libjansson4            2.9-1
ii  libmm-glib0            1.6.4-1
ii  libndp0                1.6-1
ii  libnewt0.52            0.52.19-1
ii  libnl-3-200            3.2.27-1
ii  libnm0                 1.6.0-1
ii  libpam-systemd         232-15
ii  libpolkit-agent-1-0    0.105-17
ii  libpolkit-gobject-1-0  0.105-17
ii  libreadline7           7.0-2
ii  libselinux1            2.6-3
ii  libsoup2.4-1           2.56.0-2
ii  libsystemd0            232-15
ii  libteamdctl0           1.26-1
ii  libuuid1               2.29.1-1
ii  lsb-base               9.20161125
ii  policykit-1            0.105-17
ii  udev                   232-15
ii  wpasupplicant          2.5-2+v2.4-3+b1

Versions of packages network-manager recommends:
ii  crda             3.18-1
ii  dnsmasq-base     2.76-5
ii  iptables         1.6.0+snapshot20161117-5
ii  iputils-arping   3:20161105-1
ii  isc-dhcp-client  4.3.5-3
ii  modemmanager     1.6.4-1
ii  ppp              2.4.7-1+4

Versions of packages network-manager suggests:
pn  libteam-utils  <none>

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list