Activity log for bug #1840965

Date Who What changed Old value New value Message
2019-08-21 18:32:27 Alkis Georgopoulos bug added bug
2019-08-21 18:34:11 Alkis Georgopoulos bug task added initramfs-tools (Ubuntu)
2019-08-21 18:36:18 Alkis Georgopoulos description While netbooting, in initramfs-tools/scripts/functions, netplan for some reason tries to overwrite /run/net-enp0s3.conf that is initially and correctly generated by ipconfig. There, it writes unquoted values like the following, which are a shell syntax error: IPV4DNS0=1.2.3.1 1.2.3.2 1.2.3.3 Then, initramfs-tools/init tries to source that in various places, and produces the following message a lot of times: /init: /run/net-enp0s3.conf: line 8: 1.2.32: not found I.e. values should be quoted, and 2 DNS entries should go in IPV4DNS0/IPV4DNS1, not multiple unquoted ones in IPV4DNS0. Here is the erroneous file that netplan produces: DEVICE=enp0s3 PROTO=dhcp IPV4PROTO=dhcp IPV4ADDR=10.161.254.38 IPV4NETMASK=255.255.255.0 IPV4BROADCAST=10.161.254.255 IPV4GATEWAY=10.161.254.1 IPV4DNS0=194.63.237.4 194.63.239.164 194.63.238.4 ROOTSERVER=10.161.254.1 HOSTNAME= DNSDOMAIN= Here is the correct one that ipconfig initially produces, before getting overwritten: DEVICE='enp0s3' PROTO='dhcp' IPV4ADDR='10.161.254.38' IPV4BROADCAST='10.161.254.255' IPV4NETMASK='255.255.255.0' IPV4GATEWAY='10.161.254.1' IPV4DNS0='194.63.237.4' IPV4DNS1='194.63.239.164' HOSTNAME='' DNSDOMAIN='' NISDOMAIN='' ROOTSERVER='10.161.254.1' ROOTPATH='' filename='' UPTIME='594' DHCPLEASETIME='25200' DOMAINSEARCH='' Thank you. While netbooting, in initramfs-tools/scripts/functions, netplan for some reason tries to overwrite /run/net-enp0s3.conf that is initially and correctly generated by ipconfig. There, it writes unquoted values like the following, which are a shell syntax error: IPV4DNS0=1.2.3.1 1.2.3.2 1.2.3.3 Then, initramfs-tools/init tries to source that in various places, and produces the following message a lot of times: /init: /run/net-enp0s3.conf: line 8: 1.2.3.2: not found I.e. values should be quoted, and 2 DNS entries should go in IPV4DNS0/IPV4DNS1, not multiple unquoted ones in IPV4DNS0. Here is the erroneous file that netplan produces: DEVICE=enp0s3 PROTO=dhcp IPV4PROTO=dhcp IPV4ADDR=10.161.254.38 IPV4NETMASK=255.255.255.0 IPV4BROADCAST=10.161.254.255 IPV4GATEWAY=10.161.254.1 IPV4DNS0=194.63.237.4 194.63.239.164 194.63.238.4 ROOTSERVER=10.161.254.1 HOSTNAME= DNSDOMAIN= Here is the correct one that ipconfig initially produces, before getting overwritten: DEVICE='enp0s3' PROTO='dhcp' IPV4ADDR='10.161.254.38' IPV4BROADCAST='10.161.254.255' IPV4NETMASK='255.255.255.0' IPV4GATEWAY='10.161.254.1' IPV4DNS0='194.63.237.4' IPV4DNS1='194.63.239.164' HOSTNAME='' DNSDOMAIN='' NISDOMAIN='' ROOTSERVER='10.161.254.1' ROOTPATH='' filename='' UPTIME='594' DHCPLEASETIME='25200' DOMAINSEARCH='' Thank you.
2019-08-26 16:45:58 Alkis Georgopoulos bug task added isc-dhcp (Ubuntu)
2019-08-26 16:50:23 Alkis Georgopoulos description While netbooting, in initramfs-tools/scripts/functions, netplan for some reason tries to overwrite /run/net-enp0s3.conf that is initially and correctly generated by ipconfig. There, it writes unquoted values like the following, which are a shell syntax error: IPV4DNS0=1.2.3.1 1.2.3.2 1.2.3.3 Then, initramfs-tools/init tries to source that in various places, and produces the following message a lot of times: /init: /run/net-enp0s3.conf: line 8: 1.2.3.2: not found I.e. values should be quoted, and 2 DNS entries should go in IPV4DNS0/IPV4DNS1, not multiple unquoted ones in IPV4DNS0. Here is the erroneous file that netplan produces: DEVICE=enp0s3 PROTO=dhcp IPV4PROTO=dhcp IPV4ADDR=10.161.254.38 IPV4NETMASK=255.255.255.0 IPV4BROADCAST=10.161.254.255 IPV4GATEWAY=10.161.254.1 IPV4DNS0=194.63.237.4 194.63.239.164 194.63.238.4 ROOTSERVER=10.161.254.1 HOSTNAME= DNSDOMAIN= Here is the correct one that ipconfig initially produces, before getting overwritten: DEVICE='enp0s3' PROTO='dhcp' IPV4ADDR='10.161.254.38' IPV4BROADCAST='10.161.254.255' IPV4NETMASK='255.255.255.0' IPV4GATEWAY='10.161.254.1' IPV4DNS0='194.63.237.4' IPV4DNS1='194.63.239.164' HOSTNAME='' DNSDOMAIN='' NISDOMAIN='' ROOTSERVER='10.161.254.1' ROOTPATH='' filename='' UPTIME='594' DHCPLEASETIME='25200' DOMAINSEARCH='' Thank you. Since 18.10, Ubuntu switched to using dhclient instead of ipconfig in initramfs configure_networking(). And now a malformed /run/net-enp0s3.conf is generated, with unquoted values like the following, which are a shell syntax error: IPV4DNS0=1.2.3.1 1.2.3.2 1.2.3.3 This file is sourced by initramfs-tools/init in various places, and produces the following message a lot of times: /init: /run/net-enp0s3.conf: line 8: 1.2.3.2: not found I.e. values should be quoted, and 2 DNS entries should go in IPV4DNS0/IPV4DNS1, not multiple unquoted ones in IPV4DNS0. Here is the erroneous file that dhclient-enter-hooks.d/config produces: DEVICE=enp0s3 PROTO=dhcp IPV4PROTO=dhcp IPV4ADDR=10.161.254.38 IPV4NETMASK=255.255.255.0 IPV4BROADCAST=10.161.254.255 IPV4GATEWAY=10.161.254.1 IPV4DNS0=194.63.237.4 194.63.239.164 194.63.238.4 ROOTSERVER=10.161.254.1 HOSTNAME= DNSDOMAIN= Here is the correct one that ipconfig produces: DEVICE='enp0s3' PROTO='dhcp' IPV4ADDR='10.161.254.38' IPV4BROADCAST='10.161.254.255' IPV4NETMASK='255.255.255.0' IPV4GATEWAY='10.161.254.1' IPV4DNS0='194.63.237.4' IPV4DNS1='194.63.239.164' HOSTNAME='' DNSDOMAIN='' NISDOMAIN='' ROOTSERVER='10.161.254.1' ROOTPATH='' filename='' UPTIME='594' DHCPLEASETIME='25200' DOMAINSEARCH='' I.e. please either fix dhclient-enter-hooks.d/config, or revert the ipconfig => dhclient change.
2019-08-26 16:54:19 Alkis Georgopoulos summary netplan initramfs code writes invalid net-eth0.conf dhclient initramfs code writes invalid net-eth0.conf
2019-08-26 22:10:01 Steve Langasek isc-dhcp (Ubuntu): status New Triaged
2019-08-26 22:10:03 Steve Langasek isc-dhcp (Ubuntu): importance Undecided High
2019-08-26 22:10:26 Steve Langasek nominated for series Ubuntu Eoan
2019-08-26 22:10:26 Steve Langasek bug task added initramfs-tools (Ubuntu Eoan)
2019-08-26 22:10:26 Steve Langasek bug task added isc-dhcp (Ubuntu Eoan)
2019-08-27 05:04:24 Alkis Georgopoulos attachment added isc-dhcp.diff https://bugs.launchpad.net/netplan/+bug/1840965/+attachment/5284861/+files/isc-dhcp.diff
2019-08-27 05:04:38 Alkis Georgopoulos bug task deleted netplan
2019-08-27 05:51:39 Alkis Georgopoulos attachment removed isc-dhcp.diff https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1840965/+attachment/5284861/+files/isc-dhcp.diff
2019-08-27 05:52:16 Alkis Georgopoulos attachment added isc-dhcp.diff https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1840965/+attachment/5284863/+files/isc-dhcp.diff
2019-08-27 05:53:49 Alkis Georgopoulos tags patch
2019-08-27 08:39:40 Launchpad Janitor merge proposal linked https://code.launchpad.net/~alkisg/ubuntu/+source/isc-dhcp/+git/isc-dhcp/+merge/371861
2019-08-27 08:41:56 Michael Hudson-Doyle bug added subscriber Michael Hudson-Doyle
2019-08-27 12:27:17 Francis Ginther tags patch id-5d6458d075c1a113cb9c2e57 patch
2019-08-27 15:45:19 Steve Langasek bug added subscriber Steve Langasek
2019-09-06 07:16:26 Launchpad Janitor isc-dhcp (Ubuntu Eoan): status Triaged Fix Released
2019-09-07 13:44:53 Launchpad Janitor initramfs-tools (Ubuntu): status New Confirmed
2019-09-07 13:52:20 Alkis Georgopoulos bug task deleted initramfs-tools (Ubuntu)
2019-09-07 13:52:29 Alkis Georgopoulos bug task deleted initramfs-tools (Ubuntu Eoan)