[Bug 1950794] [NEW] DHCPv4 (IAID+DUID) networking broken in LXC containers
Lukas Märdian
1950794 at bugs.launchpad.net
Fri Nov 12 14:34:56 UTC 2021
Public bug reported:
DHCPv4 networking does not work in the default IAID+DUID
(ClientIdentifier=duid) mode in LXC containers, using systemd-networkd
v249.5-2ubuntu1. Static configuration and DHCPv6 work without problem.
Reproducer:
$ lxc launch ubuntu-daily:jammy jj
$ lxc exec jj bash
# add-apt-repository ppa:ci-train-ppa-service/4704
# apt install systemd # install systemd 249.5-2ubuntu1
# cat /etc/systemd/network/00-test.network
[Match]
Name=eth0
[Network]
DHCP=ipv4
# systemctl restart systemd-networkd.service
# networkctl
IDX LINK TYPE OPERATIONAL SETUP
[...]
611 eth0 ether carrier failed
A workaround is to avoid IAID+DUID mode via:
[DHCPv4]
#ClientIdentifier=mac
ClientIdentifier=duid-only
Interesting logs:
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: Requested to activate link
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: DHCPv4 client: Failed to set IAID: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: DHCP4 CLIENT: Failed to set IAID+DUID: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: Failed to check link is initialized: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: Failed
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "debug.log"
https://bugs.launchpad.net/bugs/1950794/+attachment/5540425/+files/debug.log
** Summary changed:
- DHCPv4 networking broken in LXC containers (IAID+DUID / ClientIdentifier=duid)
+ DHCPv4 (IAID+DUID) networking broken in LXC containers
** Also affects: lxd (Ubuntu)
Importance: Undecided
Status: New
--
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/1950794
Title:
DHCPv4 (IAID+DUID) networking broken in LXC containers
Status in lxd package in Ubuntu:
New
Status in systemd package in Ubuntu:
New
Bug description:
DHCPv4 networking does not work in the default IAID+DUID
(ClientIdentifier=duid) mode in LXC containers, using systemd-networkd
v249.5-2ubuntu1. Static configuration and DHCPv6 work without problem.
Reproducer:
$ lxc launch ubuntu-daily:jammy jj
$ lxc exec jj bash
# add-apt-repository ppa:ci-train-ppa-service/4704
# apt install systemd # install systemd 249.5-2ubuntu1
# cat /etc/systemd/network/00-test.network
[Match]
Name=eth0
[Network]
DHCP=ipv4
# systemctl restart systemd-networkd.service
# networkctl
IDX LINK TYPE OPERATIONAL SETUP
[...]
611 eth0 ether carrier failed
A workaround is to avoid IAID+DUID mode via:
[DHCPv4]
#ClientIdentifier=mac
ClientIdentifier=duid-only
Interesting logs:
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: Requested to activate link
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: DHCPv4 client: Failed to set IAID: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: DHCP4 CLIENT: Failed to set IAID+DUID: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: Failed to check link is initialized: Device or resource busy
Nov 12 14:10:48 jj systemd-networkd[174]: eth0: Failed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1950794/+subscriptions
More information about the foundations-bugs
mailing list