cloud-init fails on valid netplan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Ryan Harper | ||
Focal |
Fix Released
|
Medium
|
Ryan Harper |
Bug Description
http://
2020-04-02 20:27:47,323 - stages.py[INFO]: Applying network configuration from system_cfg bringup=False: {'version': 2, 'renderer': 'networkd', 'ethernets': {'ens3': {'match': {'macaddress': '52:54:
2020-04-02 20:27:47,327 - __init__.py[DEBUG]: Selected renderer 'netplan' from priority list: None
2020-04-02 20:27:47,328 - util.py[WARNING]: failed stage init-local
2020-04-02 20:27:47,328 - util.py[DEBUG]: failed stage init-local
Traceback (most recent call last):
File "/usr/lib/
handler = self.command_
KeyError: 'renderer'
During handling of the above exception, another exception occurred:
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/
dev_names = self._write_
File "/usr/lib/
return self._supported
File "/usr/lib/
renderer.
File "/usr/lib/
network_
File "/usr/lib/
nsi.
File "/usr/lib/
self.
File "/usr/lib/
raise RuntimeError("No handler found for"
RuntimeError: No handler found for command 'renderer'
renderer is a valid netplan key. https:/
tags: | removed: req4focal |
Changed in cloud-init (Ubuntu): | |
importance: | Critical → Medium |
Changed in cloud-init (Ubuntu): | |
status: | New → Triaged |
assignee: | nobody → Ryan Harper (raharper) |
With attached foo.yaml, I can reproduce this with:
$ cloud-init devel net-convert -p ./foo.yaml --kind yaml -O eni -d . -D ubuntu
Traceback (most recent call last): python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 318, in parse_config_v2 handlers[ command_ type]
File "/usr/lib/
handler = self.command_
KeyError: 'renderer'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): cloud-init" , line 11, in <module> entry_point( 'cloud- init==20. 1', 'console_scripts', 'cloud-init')() python3/ dist-packages/ cloudinit/ cmd/main. py", line 891, in main python3/ dist-packages/ cloudinit/ util.py" , line 2556, in log_time python3/ dist-packages/ cloudinit/ cmd/devel/ net_convert. py", line 95, in handle_args state.parse_ net_config_ data(pre_ ns) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 76, in parse_net_ config_ data parse_config( skip_broken= skip_broken) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 292, in parse_config parse_config_ v2(skip_ broken= skip_broken) python3/ dist-packages/ cloudinit/ net/network_ state.py" , line 320, in parse_config_v2
File "/usr/bin/
load_
File "/usr/lib/
retval = util.log_time(
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
ns = network_
File "/usr/lib/
nsi.
File "/usr/lib/
self.
File "/usr/lib/
raise RuntimeError("No handler found for"
RuntimeError: No handler found for command 'renderer'