Address default is not a valid ip network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm setting up a Raspberry Pi 4B with the newest Ubuntu 22.04.1 LTS Server image for arm64, as delivered by the rpi-imager v1.7.2, via cloud-init facilities.
On first and all subsequent system startups, configuring the network fails with the following error message in "/var/log/
---
Cloud-init v. 22.2-0ubuntu1~
2022-09-11 17:44:58,854 - network_
2022-09-11 17:44:58,854 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
network_state = parse_net_
File "/usr/lib/
nsi.
File "/usr/lib/
self.
File "/usr/lib/
handler(self, command)
File "/usr/lib/
subnets = self._v2_
File "/usr/lib/
_normalize_
File "/usr/lib/
_normalize_
File "/usr/lib/
raise ValueError(
ValueError: Address default is not a valid ip address
-------
Cloud-init v. 22.2-0ubuntu1~
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | eth0 | False | . | . | . | <lan-mac-address> |
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: | wlan0 | False | . | . | . | <wifi-mac-addrss> |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Interface | Flags |
ci-info: +------
ci-info: +------
---
The contents of "/boot/
---
version: 2
"ethernets":
"eth0":
"addresses":
- "<ipv4-
- "<ipv6ll-
"dhcp4": false
"dhcp6": false
"match":
"driver":
- "bcmgenet"
- "smsc95xx"
- "lan78xx"
"nameservers":
"addresses":
- "<ipv4-gw-address>"
"search":
- "<some.domain>"
"routes":
- "to": "default"
"via": "<ipv4-gw-address>"
"set-name": "eth0"
---
Changed in netplan: | |
status: | New → Invalid |
Interestingly, when the string "default" is changed to "0/0", the message becomes
--- 22.04.3 running 'init-local' at Tue, 09 Aug 2022 12:05:25 +0000. Up 12.50 seconds. state.py[ ERROR]: Address 0/0 is not a valid ip network ------- ------- ------- ------- ------- ------- ------- ---- python3/ dist-packages/ cloudinit/ cmd/main. py", line 740, in status_wrapper python3/ dist-packages/ cloudinit/ cmd/main. py", line 410, in main_init apply_network_ config( bring_up= bring_up_ interfaces) python3/ dist-packages/ cloudinit/ stages. py", line 937, in apply_network_ config apply_network_ config( python3/ dist-packages/ cloudinit/ distros/ __init_ _.py", line 231, in apply_network_ config config_ data(netconfig) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 1056, in parse_net_ config_ data parse_config( skip_broken= skip_broken) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 278, in parse_config parse_config_ v2(skip_ broken= skip_broken) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 327, in parse_config_v2 python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 720, in handle_ethernets to_v1_ipcfg( cfg) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 880, in _v2_to_v1_ipcfg route( python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 1019, in _normalize_route net_keys( python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 953, in _normalize_net_keys f"Address {addr} is not a valid ip address") ------- ------- ------- ------- ------- ------- ------- ----
Cloud-init v. 22.2-0ubuntu1~
2022-08-09 12:05:26,677 - network_
2022-08-09 12:05:26,679 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
network_state = parse_net_
File "/usr/lib/
nsi.
File "/usr/lib/
self.
File "/usr/lib/
handler(self, command)
File "/usr/lib/
subnets = self._v2_
File "/usr/lib/
_normalize_
File "/usr/lib/
_normalize_
File "/usr/lib/
raise ValueError(
ValueError: Address 0/0 is not a valid ip address
-------
---