subiquity should verify netplan config better
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
The new autoinstaller is bugged when using mac addresses only having digits..
user-data:
#user-data
autoinstall:
version: 1
...
network:
network:
version: 2
renderer: networkd
ethernets:
ens3:
match:
dhcp4: yes
dhcp6: no
mtu: 1300
fails with:
2021-06-10 18:48:13,503 ERROR root:39 finish: subiquity/
2021-06-10 18:48:13,503 ERROR root:39 finish: subiquity/
2021-06-10 18:48:13,503 ERROR root:39 finish: subiquity/
2021-06-10 18:48:13,503 ERROR subiquity.
Traceback (most recent call last):
File "/snap/
await arun_command(
File "/snap/
raise subprocess.
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/
await self.apply_
File "/snap/
return await meth(self, **kw)
File "/snap/
await controller.
File "/snap/
return await meth(self, **kw)
File "/snap/
await self.apply_
File "/snap/
return await self.task
File "/snap/
self.
File "/snap/
fut.result()
File "/snap/
await super()
File "/snap/
return await meth(self, **kw)
File "/snap/
error("apply")
File "/snap/
self.
File "/snap/
super(
TypeError: apply_error() missing 1 required positional argument: 'stage'
2021-06-10 18:48:13,503 INFO root:39 finish: subiquity/
2021-06-10 18:48:13,504 INFO aiohttp.access:206 [10/Jun/
here some infos from the resulting subquity system:
root@ubuntu-
# This is the network config written by 'subiquity'
network:
ethernets:
ens3:
dhcp4: true
dhcp6: false
match:
macaddress: 41135231109
mtu: 1300
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
renderer: networkd
version: 2
matching this mac here: "match macaddress: 41135231109" is wrong and results in failing "netplan apply" within the installer.
Tested and verified in a daily ubuntu live focal image (https:/
Also it seems apply_error is called wrong?!
summary: |
- autoinstall mac match fail + subiquity should verify netplan config better |
I'm 90% sure this is yaml being insane. Try quoting the mac address? (We
should probably beef up the validation if network config). The failure to
report the error correctly is fixed in git and will be in the next release.