Activity log for bug #1862232

Date Who What changed Old value New value Message
2020-02-06 20:13:07 Daniel bug added bug
2020-02-07 13:37:55 Launchpad Janitor systemd (Ubuntu): status New Confirmed
2020-02-07 13:38:05 Dan Streetman nominated for series Ubuntu Bionic
2020-02-07 13:38:05 Dan Streetman bug task added systemd (Ubuntu Bionic)
2020-02-07 13:38:18 Dan Streetman systemd (Ubuntu Bionic): status New Confirmed
2020-02-07 13:38:24 Dan Streetman systemd (Ubuntu Bionic): importance Undecided Medium
2020-02-07 13:38:27 Dan Streetman systemd (Ubuntu): importance Undecided Medium
2020-02-07 13:50:51 Dan Streetman description 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd: Installed: 237-3ubuntu10.31 Candidate: 237-3ubuntu10.31 Version table: *** 237-3ubuntu10.31 500 500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es 100 /var/lib/dpkg/status 237-3ubuntu10.29 500 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 237-3ubuntu10 500 500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo Link File: /lib/systemd/network/99-default.link Network File: n/a Type: loopback State: carrier (unmanaged) Address: 127.0.0.1 ::1 ● 2: eth0 Link File: /run/systemd/network/10-netplan-eth0.link Network File: /run/systemd/network/10-netplan-eth0.network Type: ether State: off (pending) Path: pci-0000:00:03.0 Driver: virtio_net Vendor: Red Hat, Inc. Model: Virtio network device HW Address: ae:4d:91:1c:e8:86 DNS: 67.207.67.3 67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo Link File: /lib/systemd/network/99-default.link Network File: n/a Type: loopback State: carrier (unmanaged) Address: 127.0.0.1 ::1 ● 2: eth0 Link File: /run/systemd/network/10-netplan-eth0.link Network File: /run/systemd/network/10-netplan-eth0.network Type: ether State: routable (configured) Path: pci-0000:00:03.0 Driver: virtio_net Vendor: Red Hat, Inc. Model: Virtio network device HW Address: ae:4d:91:1c:e8:86 Address: 10.17.0.5 157.245.210.250 fe80::ac4d:91ff:fe1c:e886 Gateway: 157.245.208.1 (ICANN, IANA Department) DNS: 67.207.67.3 67.207.67.2 [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] TBD [scope] This is reproducable only on Bionic. [other info] original description: --- 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2
2020-02-07 16:46:53 Dan Streetman bug added subscriber Dan Streetman
2020-03-31 12:48:26 Dan Streetman bug watch added https://github.com/systemd/systemd/issues/9759
2020-03-31 12:48:26 Dan Streetman bug task added systemd
2020-03-31 13:46:22 Bug Watch Updater systemd: status Unknown Fix Released
2020-03-31 18:40:32 Dan Streetman description [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] TBD [scope] This is reproducable only on Bionic. [other info] original description: --- 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2 [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] as this adjusts logging and certain error handling while performing dhcp, any regression would likely cause dhcp failure. [scope] this is fixed by upstream commit a8494759b4f14af5337391727ba295ab708b92f9 (along with some associated commits around it), which is included starting in v240, so this is included already in Eoan and later. This is needed in Bionic and Xenial. [original description] 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2
2020-03-31 18:40:42 Dan Streetman nominated for series Ubuntu Xenial
2020-03-31 18:40:42 Dan Streetman bug task added systemd (Ubuntu Xenial)
2020-03-31 18:40:54 Dan Streetman systemd (Ubuntu Bionic): assignee Dan Streetman (ddstreet)
2020-03-31 18:40:56 Dan Streetman systemd (Ubuntu Xenial): assignee Dan Streetman (ddstreet)
2020-03-31 18:40:58 Dan Streetman systemd (Ubuntu Xenial): importance Undecided Medium
2020-03-31 18:41:00 Dan Streetman systemd (Ubuntu Xenial): status New In Progress
2020-03-31 18:41:02 Dan Streetman systemd (Ubuntu Bionic): status Confirmed In Progress
2020-03-31 18:46:11 Dan Streetman description [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] as this adjusts logging and certain error handling while performing dhcp, any regression would likely cause dhcp failure. [scope] this is fixed by upstream commit a8494759b4f14af5337391727ba295ab708b92f9 (along with some associated commits around it), which is included starting in v240, so this is included already in Eoan and later. This is needed in Bionic and Xenial. [original description] 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2 [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] as this adjusts logging and certain error handling while performing dhcp, any regression would likely cause dhcp failure. [scope] this is fixed by upstream commit a8494759b4f14af5337391727ba295ab708b92f9 (along with some associated commits around it), which is included starting in v240, so this is included already in Eoan and later. This is needed in Bionic and Xenial. [other info] NOTE: the problem around this is that Linux sets HOST_NAME_MAX to 64, but RFC 1035 limits DNS labels to 63 characters, so any host with a max-length single-label hostname (i.e. a 64 character hostname with no dots) will be "valid" from Linux's perspective, but will violate RFC 1035 and thus systemd will consider it invalid and won't pass it to the dhcp server. Also note that a 64-character hostname that is *not* single-label (i.e. a hostname with at least 1 dot) will not cause this problem. The systemd patches continue to reject sending the invalid hostname to the dhcp server, but do not prevent networkd from finishing setting up networking. [original description] 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2
2020-03-31 18:46:35 Dan Streetman description [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] as this adjusts logging and certain error handling while performing dhcp, any regression would likely cause dhcp failure. [scope] this is fixed by upstream commit a8494759b4f14af5337391727ba295ab708b92f9 (along with some associated commits around it), which is included starting in v240, so this is included already in Eoan and later. This is needed in Bionic and Xenial. [other info] NOTE: the problem around this is that Linux sets HOST_NAME_MAX to 64, but RFC 1035 limits DNS labels to 63 characters, so any host with a max-length single-label hostname (i.e. a 64 character hostname with no dots) will be "valid" from Linux's perspective, but will violate RFC 1035 and thus systemd will consider it invalid and won't pass it to the dhcp server. Also note that a 64-character hostname that is *not* single-label (i.e. a hostname with at least 1 dot) will not cause this problem. The systemd patches continue to reject sending the invalid hostname to the dhcp server, but do not prevent networkd from finishing setting up networking. [original description] 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2 [impact] networkd fails to bring up networking on systems with long hostname [test case] setting the hostname: $ sudo hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf then reboot and check the networking. [regression potential] as this adjusts logging and certain error handling while performing dhcp, any regression would likely cause dhcp failure. [scope] this is fixed by upstream commit a8494759b4f14af5337391727ba295ab708b92f9 (along with some associated commits around it), which is included starting in v240, so this is included already in Eoan and later. This is needed in Bionic and Xenial. [other info] the problem around this is that Linux sets HOST_NAME_MAX to 64, but RFC 1035 limits DNS labels to 63 characters, so any host with a max-length single-label hostname (i.e. a 64 character hostname with no dots) will be "valid" from Linux's perspective, but will violate RFC 1035 and thus systemd will consider it invalid and won't pass it to the dhcp server. Also note that a 64-character hostname that is *not* single-label (i.e. a hostname with at least 1 dot) will not cause this problem. The systemd patches continue to reject sending the invalid hostname to the dhcp server, but do not prevent networkd from finishing setting up networking. [original description] 1) ubuntu version # lsb_release -rd Description: Ubuntu 18.04.3 LTS Release: 18.04 2) package version # apt-cache policy systemd systemd:   Installed: 237-3ubuntu10.31   Candidate: 237-3ubuntu10.31   Version table:  *** 237-3ubuntu10.31 500         500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packag es         100 /var/lib/dpkg/status      237-3ubuntu10.29 500         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages      237-3ubuntu10 500         500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages 3) I expect the network to come online correctly regardless of how long the hostname is. This is what happens with both 14.0 and 19.0 (I tested the same behavior with both of them). 4) the external network interface fails to be configured and is stuck in a (pending) state as reported by networkctl status -a setting the hostname: # hostnamectl set-hostname asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf after rebooting the machine, it no longer has network access. # journalctl Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd[1]: Starting Wait for Network to be Configured... Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: Link state is up-to-date Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network' Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: sd-netlink: callback failed: Invalid argument Feb 06 19:29:41 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf systemd-networkd[605]: lo: Link state is up-to-date # networkctl status -a: ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: off (pending)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86              DNS: 67.207.67.3                   67.207.67.2 and to bring up the network correctly, set the hostname to something shorter # hostnamectl set-hostname asdf # systemctl restart systemd-networkd # networkctl status -a ● 1: lo        Link File: /lib/systemd/network/99-default.link     Network File: n/a             Type: loopback            State: carrier (unmanaged)          Address: 127.0.0.1                   ::1 ● 2: eth0        Link File: /run/systemd/network/10-netplan-eth0.link     Network File: /run/systemd/network/10-netplan-eth0.network             Type: ether            State: routable (configured)             Path: pci-0000:00:03.0           Driver: virtio_net           Vendor: Red Hat, Inc.            Model: Virtio network device       HW Address: ae:4d:91:1c:e8:86          Address: 10.17.0.5                   157.245.210.250                   fe80::ac4d:91ff:fe1c:e886          Gateway: 157.245.208.1 (ICANN, IANA Department)              DNS: 67.207.67.3                   67.207.67.2
2020-03-31 19:01:38 Dan Streetman systemd (Ubuntu): status Confirmed Fix Released
2020-04-27 19:08:17 Łukasz Zemczak systemd (Ubuntu Bionic): status In Progress Fix Committed
2020-04-27 19:08:20 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2020-04-27 19:08:23 Łukasz Zemczak bug added subscriber SRU Verification
2020-04-27 19:08:26 Łukasz Zemczak tags verification-needed verification-needed-bionic
2020-04-28 12:50:37 Łukasz Zemczak systemd (Ubuntu Xenial): status In Progress Fix Committed
2020-04-28 12:50:42 Łukasz Zemczak tags verification-needed verification-needed-bionic verification-needed verification-needed-bionic verification-needed-xenial
2020-05-05 20:43:45 Dan Streetman tags verification-needed verification-needed-bionic verification-needed-xenial verification-done-bionic verification-needed verification-needed-xenial
2020-05-06 19:51:02 Dan Streetman tags verification-done-bionic verification-needed verification-needed-xenial verification-done verification-done-bionic verification-done-xenial
2020-05-11 15:18:51 Launchpad Janitor systemd (Ubuntu Bionic): status Fix Committed Fix Released
2020-05-11 15:19:22 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2020-05-11 15:26:08 Launchpad Janitor systemd (Ubuntu Xenial): status Fix Committed Fix Released