Bug#951486: network-manager: network-online.target returns before network has IP address

2020-05-27 Thread Harald Dunkel

metoo



Bug#951486: network-manager: network-online.target returns before network has IP address

2020-02-17 Thread Henrik Schmidt
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  adduser3.118
ii  dbus   1.12.16-1
ii  init-system-helpers1.56+nmu1
ii  libaudit1  1:2.8.4-3
ii  libbluetooth3  5.50-1
ii  libc6  2.28-10
ii  libcurl3-gnutls7.64.0-4
ii  libglib2.0-0   2.58.3-2+deb10u2
ii  libgnutls303.6.7-4+deb10u2
ii  libjansson42.12-1
ii  libmm-glib01.10.0-1
ii  libndp01.6-1+b1
ii  libnewt0.520.52.21-4
ii  libnm0 1.22.6-1
ii  libpam-systemd 241-7~deb10u3
ii  libpolkit-agent-1-00.105-25
ii  libpolkit-gobject-1-0  0.105-25
ii  libpsl50.20.2-2
ii  libreadline8   8.0-3
ii  libselinux12.8-1+b1
ii  libsystemd0241-7~deb10u3
ii  libteamdctl0   1.28-1
ii  libudev1   241-7~deb10u3
ii  libuuid1   2.33.1-0.1
ii  policykit-10.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

-- no debconf information