[Bug 1635256] Re: [xenial] search domains in networkd do not get propagated to resolvconf
Martin Pitt
martin.pitt at ubuntu.com
Thu Oct 20 13:52:50 UTC 2016
** Description changed:
Search domains specified in networkd do not get propagated to
/etc/resolv.conf via resolved in xenial, as systemd-networkd-resolvconf-
update.service only tells resolvconf about DNS servers. This is not an
issue any more in yakkety and zesty as that uses resolved and that unit
is gone.
This was uncovered while working on adding nameserver support to
netplan, in bug 1626617. To fully support netplan/networkd in xenial we
should fix this.
+
+ SRU TEST CASE:
+ * Start a xenial VM or container, and create a networkd interface with a DNS server and search domain:
+
+ $ cat /etc/systemd/network/foo.netdev
+ [NetDev]
+ Name=foo
+ Kind=dummy
+
+ $ cat /etc/systemd/network/foo.network
+ [Match]
+ Name=foo
+
+ [Network]
+ DNS=1.2.3.4
+ Domains=kitchen cellar
+
+ * sudo systemctl restart systemd-networkd
+
+ * cat /etc/resolv.conf
+
+ resolv.conf should have "nameserver 1.2.3.4" (unless there already are
+ three nameservers), but with the current xenial version it lacks "search
+ kitchen cellar". With the -proposed version, both entries should be
+ there.
+
+ REGRESSION POTENTIAL: This makes the shell hack of systemd-networkd-
+ resolvconf-update.service even worse, so errors in it could break the
+ existing "nameserver" integration of networkd with resolved. On xenial
+ this is only really relevant with netplan and snappy (see bug 1626617),
+ so the number of installations that actually use this in the field
+ should be low. But this is simple enough to test in isolation, systemd's
+ autopkgtest already cover the "nameserver" resolvconf integration, and
+ netplan's autopkgtest now cover both "nameserver" and "search". So
+ overall the regression potential is very limited.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1635256
Title:
[xenial] search domains in networkd do not get propagated to
resolvconf
Status in systemd package in Ubuntu:
Invalid
Status in systemd source package in Xenial:
In Progress
Bug description:
Search domains specified in networkd do not get propagated to
/etc/resolv.conf via resolved in xenial, as systemd-networkd-
resolvconf-update.service only tells resolvconf about DNS servers.
This is not an issue any more in yakkety and zesty as that uses
resolved and that unit is gone.
This was uncovered while working on adding nameserver support to
netplan, in bug 1626617. To fully support netplan/networkd in xenial
we should fix this.
SRU TEST CASE:
* Start a xenial VM or container, and create a networkd interface with a DNS server and search domain:
$ cat /etc/systemd/network/foo.netdev
[NetDev]
Name=foo
Kind=dummy
$ cat /etc/systemd/network/foo.network
[Match]
Name=foo
[Network]
DNS=1.2.3.4
Domains=kitchen cellar
* sudo systemctl restart systemd-networkd
* cat /etc/resolv.conf
resolv.conf should have "nameserver 1.2.3.4" (unless there already are
three nameservers), but with the current xenial version it lacks
"search kitchen cellar". With the -proposed version, both entries
should be there.
REGRESSION POTENTIAL: This makes the shell hack of systemd-networkd-
resolvconf-update.service even worse, so errors in it could break the
existing "nameserver" integration of networkd with resolved. On xenial
this is only really relevant with netplan and snappy (see bug
1626617), so the number of installations that actually use this in the
field should be low. But this is simple enough to test in isolation,
systemd's autopkgtest already cover the "nameserver" resolvconf
integration, and netplan's autopkgtest now cover both "nameserver" and
"search". So overall the regression potential is very limited.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1635256/+subscriptions
More information about the foundations-bugs
mailing list