NetworkManager/data
Mikhail Novosyolov acef72c0cb
systemd: increase default timeout of NetworkManager-wait-online
We encountered the following situation:
* nm-online (NetworkManager-wait-online.service) is started
* NetworkManager tries to configure network
* the first try of using dhclient fails with timeout for some reasons
* the second try of running dhclient completes successfully (NMs tries himself)
We get a working network, but it takes more that 30 seconds.

NetworkManager-wait-online.service fails, it may be a false negative
to checkers of network being online. It will also be a false positive signal
to start mounting network (CIFS, NFS etc.) shares, for example, because
they depend from network-online.target and network-online.target will become
reached right after NetworkManager-wait-online.service fails.

So, it makes sense to increase default timeout from 30 to 60 seconds.

@thaller wrote in https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/237
that there may be cases where, for example, incorrectly set up bridges
or just network may lead to delays when booting the system.

Yes, but:
* if there is no possibility to start trying to connect the network, e.g. if all network interfaces,
  managed by NetworkManager, are DOWN, NM will not try to connect network and "nm-online -s" will
  exit with 0 without waiting (so, this will not prolong start up of workstations or servers
  when ethernet cable is just not plugged in)
* an additional potential 30 seconds delay seems to be less harmful then a false positive to start
  mounting network shares or doing abything else too eraly, when an additional wait for a few seconds
  would have prevented those things from failing.

All things considered, it seems reasonable to increase this timeout from 30 seconds to 1 minute (60 seconds).

Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/675
2020-11-16 17:46:53 +01:00
..
84-nm-drivers.rules data: fix the ID_NET_DRIVER udev rule 2019-08-16 14:03:46 +02:00
85-nm-unmanaged.rules Revert "Do not manage Docker bridge interfaces" 2019-05-21 09:40:53 +02:00
90-nm-thunderbolt.rules all: add support for thunderbolt networking 2018-04-19 14:20:04 +02:00
meson.build build: install a firewalld zone for shared mode 2020-05-15 19:06:24 +02:00
NetworkManager-dispatcher.service.in Revert "dispatcher/systemd: order NetworkManager-dispatcher.service Before=NetworkManager.service" 2020-03-02 17:47:29 +01:00
NetworkManager-ovs.conf device: add support for OpenVSwitch devices 2017-10-30 21:46:55 +01:00
NetworkManager-wait-online-systemd-pre200.service.in systemd: add Documentation to service files 2016-06-02 21:27:14 +02:00
NetworkManager-wait-online.service.in systemd: increase default timeout of NetworkManager-wait-online 2020-11-16 17:46:53 +01:00
NetworkManager.service.in systemd: use busctl instead of dbus-send 2019-09-17 09:29:34 +02:00
nm-shared.xml firewalld: allow access to SSH in "nm-shared" firewalld zone 2020-06-15 16:49:14 +02:00
org.freedesktop.NetworkManager.policy.in.in Add polkit action for Wi-Fi scans 2019-02-21 13:49:17 +01:00
server.conf.in all: fix typos in documentation and comments 2017-03-17 15:11:20 +01:00