Bug#997006: systemd-networkd: broken/regression in unprivileged LXD container in v247

Linus Lüssing linus.luessing at c0d3.blue
Fri Oct 22 10:43:47 BST 2021


Package: systemd
Version: 247.3-6
Severity: normal
Tags: upstream
X-Debbugs-Cc: linus.luessing at c0d3.blue

Hi,

We found that using systemd-networkd in an unprivileged LXD container is
broken in systemd v247. A network or link file is not attached to an
interface and instead "networkctl -l status eth0" shows "n/a" for the
"Link File" and "Network File". Leading to the network interface not being
configured at all. systemd v246 and v248/v249 work fine, so it is a
regression specific to v247.

Bisect'ing shows that this commit introduced the bug for v247:

https://github.com/systemd/systemd/commit/88da55e28b467999da005591d3252a98f4436522

And the following commit fixed it again for v248:

https://github.com/systemd/systemd/commit/0e789e6d48046d43c50dd949a71ac56f1127bb96

Git cherry-picking 0e789e6d4 onto v247 fixes the issue (cherry-picking does
not apply cleanly but resolving this is straight forward).

Furthermore systemd-networkd does not work if the udev package is
missing (same symptoms, no link or network file gets attached to the
interface).


Suggestions to fix:

* Add a dependency to the systemd package for the udev package.
* Backport 0e789e6d4 to the systemd v247 package.

Alternatively (or additionally) systemd v249 could be added to
bullseye-backports, so people using Debian Bullseye could work around
the issue by installing systemd v249.

For more details see the following links:

https://discuss.linuxcontainers.org/t/systemd-networkd-not-working-in-debian-sid-or-bullseye-images/11503/17
https://github.com/systemd/systemd/pull/18559

Regards, Linus



-- Package-specific info:

-- System Information:
Debian Release: 11.1
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.9.2-v8+ (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser                          3.118
ii  libacl1                          2.2.53-10
ii  libapparmor1                     2.13.6-10
ii  libaudit1                        1:3.0-2
ii  libblkid1                        2.36.1-8
ii  libc6                            2.31-13+deb11u2
ii  libcap2                          1:2.44-1
ii  libcrypt1                        1:4.4.18-4
ii  libcryptsetup12                  2:2.3.5-1
ii  libgcrypt20                      1.8.7-6
ii  libgnutls30                      3.7.1-5
ii  libgpg-error0                    1.38-2
ii  libip4tc2                        1.8.7-1
ii  libkmod2                         28-1
ii  liblz4-1                         1.9.3-2
ii  liblzma5                         5.2.5-2
ii  libmount1                        2.36.1-8
ii  libpam0g                         1.4.0-9+deb11u1
ii  libseccomp2                      2.5.1-1
ii  libselinux1                      3.1-3
ii  libsystemd0                      247.3-6
ii  libzstd1                         1.4.8+dfsg-2.1
ii  mount                            2.36.1-8
ii  systemd-timesyncd [time-daemon]  247.3-6
ii  util-linux                       2.36.1-8

Versions of packages systemd recommends:
ii  dbus  1.12.20-2

Versions of packages systemd suggests:
pn  policykit-1        <none>
pn  systemd-container  <none>

Versions of packages systemd is related to:
pn  dracut           <none>
pn  initramfs-tools  <none>
ii  libnss-systemd   247.3-6
ii  libpam-systemd   247.3-6
pn  udev             <none>

-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]

/etc/systemd/logind.conf changed:
[Login]

/etc/systemd/resolved.conf changed:
[Resolve]


-- no debconf information



More information about the Pkg-systemd-maintainers mailing list