crash in cloud-init when using set-name on networkd renderer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When using set-name with a networkd renderer, we are hitting the following crash:
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
netcfg, bring_up=bring_up)
File "/usr/lib/
self.
File "/usr/lib/
renderer.
File "/usr/lib/
ret_dict = self._render_
File "/usr/lib/
self.
KeyError: 'eth0'
1. Tell us your cloud provider
DataSourceVMware
2. Any appropriate cloud-init configuration you can provide us
instance-id: "management-
local-hostname: "management-
wait-on-network:
ipv4: false
ipv6: false
network:
version: 2
ethernets:
id0:
match:
macaddress: "00:50:56:9d:14:42"
set-name: "eth0"
wakeonlan: true
addresses:
- "192.168.20.30/24"
gateway4: "192.168.20.1"
nameservers:
addresses:
- "127.0.0.53"
- ""
- ""
3. Perform the following on the system and attach it to this bug:
Attached is the output of cloud-init collect-logs
The proposed fix in netword.py is at: /github. com/pradipd/ cloud-init/ commit/ 756742a05dacbd8 12da5c10c0f3ae5 92156679ca
https:/