Activity log for bug #1906187

Date Who What changed Old value New value Message
2020-11-29 21:45:28 Christian Dohm bug added bug
2020-11-29 22:07:33 Christian Dohm bug task added ubuntu
2020-11-29 22:11:51 Christian Dohm bug task added cloud-init (Ubuntu)
2020-11-29 22:12:31 Christian Dohm affects ubuntu netplan.io (Ubuntu)
2020-11-29 22:39:50 Christian Dohm bug task deleted netplan
2020-12-01 22:33:02 Dan Watkins cloud-init (Ubuntu): status New Triaged
2020-12-01 22:33:04 Dan Watkins cloud-init (Ubuntu): importance Undecided High
2021-01-19 15:04:23 Scott Moser description I've created a 'network-config' file with Terraform's yamldecode() function that contains (btw. I've tried with the version being a Number w/o quotes and as well as a String as shown here): --- "network": "ethernets": "eth0": "gateway4": "192.168.1.1" "nameservers": "addresses": - "192.168.1.74" - "192.168.1.104" "search": - "fritz.box" "set-name": "eth0" "version": "2" --- After running on Raspberry Pi 4B with 4 GB, created with ubuntu-20.04.1-preinstalled-server-arm64+raspi.img.xz, the machine's setup fails and /var/log/cloud-init.log reveals that: --- 2020-04-01 17:23:48,649 - util.py[DEBUG]: Reading from /boot/firmware//network-config (quiet=False) 2020-04-01 17:23:48,649 - util.py[DEBUG]: Read 245 bytes from /boot/firmware//network-config 2020-04-01 17:23:48,650 - util.py[DEBUG]: Attempting to load yaml from string of length 240 with allowed root types (<class 'dict'>,) 2020-04-01 17:23:48,652 - util.py[DEBUG]: Attempting to load yaml from string of length 245 with allowed root types (<class 'dict'>,) 2020-04-01 17:23:48,656 - DataSourceNoCloud.py[DEBUG]: Top level network key in network-config but missing 'config' or 'version': {'network': {'ethernets': {'eth0': {'gateway4': '192.168.1.1', 'nameservers': {'addresses': ['192.168.1.74', '192.168.1.104'], 'search': ['fritz.box']}, 'set-name': 'eth0'}}, 'version': '2'}} --- The corresponding /var/log/clout-init-output.log reveals the trace and that Network won't come up. --- Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'init-local' at Wed, 01 Apr 2020 17:23:48 +0000. Up 21.71 seconds. 2020-04-01 17:23:48,796 - util.py[WARNING]: failed stage init-local failed run of stage init-local ------------------------------------------------------------ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 653, in status_wrapper ret = functor(name, args) File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 362, in main_init init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL)) File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 699, in apply_network_config net.wait_for_physdevs(netcfg) File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 523, in wait_for_physdevs physdevs = extract_physdevs(netcfg) File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 519, in extract_physdevs raise RuntimeError('Unknown network config version: %s' % version) RuntimeError: Unknown network config version: None ------------------------------------------------------------ Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'init' at Wed, 01 Apr 2020 17:23:50 +0000. Up 23.69 seconds. ci-info: +++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++ ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: | eth0 | False | . | . | . | dc:a6:32:b1:78:8e | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: | wlan0 | False | . | . | . | dc:a6:32:b1:78:8f | ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------+---------+-----------+-------+ ci-info: +-------+-------------+---------+-----------+-------+ 2020-04-01 17:23:50,653 - stages.py[WARNING]: Failed to rename devices: Failed to apply network config names: Unknown network config version: None I've created a 'network-config' file with Terraform's yamldecode() function that contains (btw. I've tried with the version being a Number w/o quotes and as well as a String as shown here): --- "network":   "ethernets":     "eth0":       "gateway4": "192.168.1.1"       "nameservers":         "addresses":         - "192.168.1.74"         - "192.168.1.104"         "search":         - "fritz.box"       "set-name": "eth0"   "version": "2" --- After running on Raspberry Pi 4B with 4 GB, created with ubuntu-20.04.1-preinstalled-server-arm64+raspi.img.xz, the machine's setup fails and /var/log/cloud-init.log reveals that: --- 2020-04-01 17:23:48,649 - util.py[DEBUG]: Reading from /boot/firmware//network-config (quiet=False) 2020-04-01 17:23:48,649 - util.py[DEBUG]: Read 245 bytes from /boot/firmware//network-config 2020-04-01 17:23:48,650 - util.py[DEBUG]: Attempting to load yaml from string of length 240 with allowed root types (<class 'dict'>,) 2020-04-01 17:23:48,652 - util.py[DEBUG]: Attempting to load yaml from string of length 245 with allowed root types (<class 'dict'>,) 2020-04-01 17:23:48,656 - DataSourceNoCloud.py[DEBUG]: Top level network key in network-config but missing 'config' or 'version': {'network': {'ethernets': {'eth0': {'gateway4': '192.168.1.1', 'nameservers': {'addresses': ['192.168.1.74', '192.168.1.104'], 'search': ['fritz.box']}, 'set-name': 'eth0'}}, 'version': '2'}} --- The corresponding /var/log/clout-init-output.log reveals the trace and that Network won't come up. --- Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'init-local' at Wed, 01 Apr 2020 17:23:48 +0000. Up 21.71 seconds. 2020-04-01 17:23:48,796 - util.py[WARNING]: failed stage init-local failed run of stage init-local ------------------------------------------------------------ Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 653, in status_wrapper     ret = functor(name, args)   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 362, in main_init     init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))   File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 699, in apply_network_config     net.wait_for_physdevs(netcfg)   File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 523, in wait_for_physdevs     physdevs = extract_physdevs(netcfg)   File "/usr/lib/python3/dist-packages/cloudinit/net/__init__.py", line 519, in extract_physdevs     raise RuntimeError('Unknown network config version: %s' % version) RuntimeError: Unknown network config version: None ------------------------------------------------------------ Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'init' at Wed, 01 Apr 2020 17:23:50 +0000. Up 23.69 seconds. ci-info: +++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++ ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: | eth0 | False | . | . | . | dc:a6:32:b1:78:8e | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: | wlan0 | False | . | . | . | dc:a6:32:b1:78:8f | ci-info: +--------+-------+-----------+-----------+-------+-------------------+ ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------+---------+-----------+-------+ ci-info: +-------+-------------+---------+-----------+-------+ 2020-04-01 17:23:50,653 - stages.py[WARNING]: Failed to rename devices: Failed to apply network config names: Unknown network config version: None Related bugs: * bug 1798117: juju sends "network" top level key to user.network-config in lxd containers
2021-04-19 23:03:48 Launchpad Janitor netplan.io (Ubuntu): status New Confirmed
2022-04-28 16:52:41 James Falcon bug task added netplan
2022-04-28 16:53:12 James Falcon bug task added cloud-init
2022-04-28 16:53:39 James Falcon bug task deleted netplan
2022-04-28 16:54:32 James Falcon cloud-init: status New Triaged
2022-04-28 16:54:37 James Falcon cloud-init: importance Undecided High
2022-04-28 19:34:18 James Falcon netplan.io (Ubuntu): status Confirmed Invalid
2022-04-28 19:36:40 James Falcon summary Version tag is not respected when put last Top-level 'network' key results in error using v2 config
2022-05-17 19:02:05 James Falcon cloud-init: status Triaged Fix Committed
2022-05-17 22:14:17 James Falcon cloud-init (Ubuntu): status Triaged Fix Committed
2022-05-18 16:51:35 Brett Holman cloud-init: status Fix Committed Fix Released
2022-05-19 06:25:47 Launchpad Janitor cloud-init (Ubuntu): status Fix Committed Fix Released
2023-05-12 11:14:57 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3815