[Pkg-utopia-maintainers] Bug#951486: network-manager: network-online.target returns before network has IP address

Henrik Schmidt hbs at informatik.uni-kiel.de
Mon Feb 17 11:00:26 GMT 2020


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

Dear Maintainer,

I want to use autofs with LDAP. I'm using DHCP and network-manager.
 
network-online.target will return before a valid IP address is provided and therefore
autofs.service is invoked too early, failing to bind to the LDAP server.

network-online.target.wants is using NetworkManager-wait-online.service which is the source of the problem.
It is using 'ExecStart=/usr/bin/nm-online -s -q --timeout=30' and only if I remove the '-s' parameter,
it is properly waiting for DHCP to negotiate an IP address and autofs can bind afterwar7

systemd-analyze blame shows that NetworkManager-wait-online.service is taking 7 secs with '-s'
and 22 secs without '-s'. 

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

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages network-manager depends on:
ii  adduser                3.118
ii  dbus                   1.12.16-1
ii  init-system-helpers    1.56+nmu1
ii  libaudit1              1:2.8.4-3
ii  libbluetooth3          5.50-1
ii  libc6                  2.28-10
ii  libcurl3-gnutls        7.64.0-4
ii  libglib2.0-0           2.58.3-2+deb10u2
ii  libgnutls30            3.6.7-4+deb10u2
ii  libjansson4            2.12-1
ii  libmm-glib0            1.10.0-1
ii  libndp0                1.6-1+b1
ii  libnewt0.52            0.52.21-4
ii  libnm0                 1.22.6-1
ii  libpam-systemd         241-7~deb10u3
ii  libpolkit-agent-1-0    0.105-25
ii  libpolkit-gobject-1-0  0.105-25
ii  libpsl5                0.20.2-2
ii  libreadline8           8.0-3
ii  libselinux1            2.8-1+b1
ii  libsystemd0            241-7~deb10u3
ii  libteamdctl0           1.28-1
ii  libudev1               241-7~deb10u3
ii  libuuid1               2.33.1-0.1
ii  policykit-1            0.105-25
ii  udev                   241-7~deb10u3
ii  wpasupplicant          2:2.7+git20190128+0c1e29f-6+deb10u1

Versions of packages network-manager recommends:
ii  crda                         3.18-1
ii  dnsmasq-base [dnsmasq-base]  2.80-1
ii  iptables                     1.8.2-4
ii  modemmanager                 1.10.0-1
ii  ppp                          2.4.7-2+4.1

Versions of packages network-manager suggests:
ii  isc-dhcp-client  4.4.1-2
pn  libteam-utils    <none>

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list