nm-online times out, failing autopkgtests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
The nm-online util does not return successfully as of 1.32.2-0ubuntu1 (currently in impish-proposed).
systemd VS network-manager autopkgtests (in LXD) fail, because the autopkgtest-
nm-online does not return successfully anymore as of 1.32.2-0ubuntu1, but it times out. That is a regression compared to v1.30.
Reproducer:
$ lxc launch ubuntu-daily:impish test
$ lxc exec test bash
# apt install network-manager #(version 1.30.0-1ubuntu4)
# time systemctl start network-
real 0m0.071s
user 0m0.021s
sys 0m0.023s
# time nm-online -s
Connecting.
real 0m0.043s
user 0m0.027s
sys 0m0.006s
root@test:~# echo $?
0
Everything is OK up to here.
# vim /etc/apt/
# apt update && apt install network-manager #(1.32.2-0ubuntu1)
# time nm-online -s
Connecting.
real 0m30.019s
user 0m0.021s
sys 0m0.014s
# time systemctl start network-
real 1m0.104s
user 0m0.013s
sys 0m0.023s
# journalctl -u NetworkManager | grep startup
Jul 15 09:05:06 test NetworkManager[
root@test:~# NetworkManager -V
1.32.2
root@test:~# nm-online -s
Connecting.
root@test:~# echo $?
1
root@test:~# nm-online
Connecting.
root@test:~# echo $?
1
The journal log contains the "startup completed" line, so 'nm-online -s' should return immediately. But as we can see, nm-online fails (after a timeout) and thus blocks network-
tags: | added: update-excuse |
Related to: LP: #1914062
Two patches exist, both were dropped from their corresponding packages:
https:/ /git.launchpad. net/network- manager/ commit/ ?id=4c4f7172
https:/ /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?h=ubuntu- impish& id=efebddfe37ef ff6a259ef7fd592 12d65ad1b848b