systemd-networkd needs to ensure DNS is up before network-online.target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Debian) |
Fix Released
|
Unknown
|
|||
resolvconf (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently resolvconf and systemd-networkd don't ensure DNS has been configured before allowing network-
This was discussed in https:/
[SRU]
Fix: switch resolvconf.service to run Before=
Regression potential: Low. networkd is not widely being used outside of netplan/snappy in xenial.
Test Case:
lxc launch ubuntu-daily:xenial x1
lxc exec x1 /bin/bash
# make sure you're on systemd-
apt update && apt install -y systemd
# enable networkd and netplan
apt install -y nplan
cat <<EOF > /etc/netplan/
network:
version: 2
ethernets:
all-en:
match:
dhcp4: true
all-eth:
match:
dhcp4: true
EOF
sed -i.orig -e 's/^source/# source/' /etc/network/
netplan generate
# make sure cloud-init.service uses networkd
sed -i.orig -e '/After=
reboot
# check that the order of execution with:
journalctl -o short-precise --unit resolvconf.service --unit network-
# the order should be:
1. resolvconf: systemd[1]: Started Nameserver information manager.
2. systemd-
3. systemd-
4. network-
=== BAD OUTPUT ===
On a failing system, Reached target Network is Online occurs before (1, 2, or 3) above, like this output:
Dec 15 19:18:15.233443 x4 systemd[1]: Started Nameserver information manager.
Dec 15 19:18:15.797857 x4 systemd[1]: Starting Wait for Network to be Configured...
Dec 15 19:18:15.799573 x4 systemd-
Dec 15 19:18:15.804949 x4 systemd-
Dec 15 19:18:15.805079 x4 systemd-
Dec 15 19:18:29.100305 x4 systemd[1]: Starting Update resolvconf for networkd DNS...
Dec 15 19:18:29.101870 x4 systemd[1]: Started Wait for Network to be Configured.
Dec 15 19:18:29.102144 x4 systemd[1]: Reached target Network is Online.
Dec 15 19:18:29.212842 x4 systemd[1]: Started Update resolvconf for networkd DNS.
=== GOOD OUTPUT ===
On a passing system, Reached target Network is Online occurs after 1, 2, and 3.
Dec 15 19:28:42.548545 x4 systemd[1]: Started Nameserver information manager.
Dec 15 19:28:43.144389 x4 systemd[1]: Starting Wait for Network to be Configured...
Dec 15 19:28:43.146155 x4 systemd-
Dec 15 19:28:56.081487 x4 systemd[1]: Started Wait for Network to be Configured.
Dec 15 19:28:56.100353 x4 systemd[1]: Starting Update resolvconf for networkd DNS...
Dec 15 19:28:56.124005 x4 systemd[1]: Started Update resolvconf for networkd DNS.
Dec 15 19:28:56.124555 x4 systemd[1]: Reached target Network is Online.
description: | updated |
Changed in systemd (Ubuntu): | |
status: | New → Fix Released |
Changed in resolvconf (Ubuntu Yakkety): | |
status: | New → Fix Committed |
Changed in resolvconf (Ubuntu): | |
importance: | Undecided → Medium |
Changed in resolvconf (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in resolvconf (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in resolvconf (Debian): | |
status: | Unknown → Fix Committed |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Fix Committed |
Changed in systemd (Ubuntu Xenial): | |
status: | Fix Committed → Confirmed |
description: | updated |
tags: |
added: verification-done-xenial removed: verification-done |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | Fix Committed → Incomplete |
Changed in systemd (Ubuntu Xenial): | |
status: | Incomplete → Fix Committed |
Changed in resolvconf (Debian): | |
status: | Fix Committed → Fix Released |
The attachment "xenial_ resolvconf- lp1649931. diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]