Hi there,
I installed a few minor updates on two (so far) Proxmox hypervisors and suddenly all RHEL-related templates used seemed to have stopped working. The templates get cloned, boot up and they learn username+password from cloud-init, but then they don't learn any of the provided static IPv4 and IPv6 addresses. The exact same templates still work as before on the nodes that haven't yet been updated. On the non-updated nodes, you would just see the IPs in those ASCII-tables. On the updated nodes you see the below error output getting written to `/var/log/cloud-init-output.log` and just localhost IPs in the table. Seems somehow as if cloudinit doesn't know anymore how to handle static IPv6 addresses? The Debian/Ubuntu templates on the updated nodes however still work without any issues.
Did anybody else see such an issue and maybe has a fix/workaround for it?
Thanks,
Michael
EDIT: Looking at the source of `cloudinit/net/sysconfig.py`, `static6` seems to be a legit config value for cloudinit. Still have no clue whats going on here, so if there is anybody with an idea; I would really appreciate it.
I installed a few minor updates on two (so far) Proxmox hypervisors and suddenly all RHEL-related templates used seemed to have stopped working. The templates get cloned, boot up and they learn username+password from cloud-init, but then they don't learn any of the provided static IPv4 and IPv6 addresses. The exact same templates still work as before on the nodes that haven't yet been updated. On the non-updated nodes, you would just see the IPs in those ASCII-tables. On the updated nodes you see the below error output getting written to `/var/log/cloud-init-output.log` and just localhost IPs in the table. Seems somehow as if cloudinit doesn't know anymore how to handle static IPv6 addresses? The Debian/Ubuntu templates on the updated nodes however still work without any issues.
Code:
Cloud-init v. 19.4 running 'init-local' at Sat, 10 Apr 2021 16:17:44 +0000. Up 11.89 seconds.
2021-04-10 16:17:44,742 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 653, in status_wrapper
ret = functor(name, args)
File "/usr/lib/python3.6/site-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.6/site-packages/cloudinit/stages.py", line 711, in apply_network_config
return self.distro.apply_network_config(netcfg, bring_up=bring_up)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 178, in apply_network_config
dev_names = self._write_network_config(netconfig)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/rhel.py", line 65, in _write_network_config
return self._supported_write_network_config(netconfig)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 93, in _supported_write_network_config
renderer.render_network_config(network_config)
File "/usr/lib/python3.6/site-packages/cloudinit/net/renderer.py", line 56, in render_network_config
templates=templates, target=target)
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 731, in render_network_state
templates=templates).items():
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 704, in _render_sysconfig
cls._render_physical_interfaces(network_state, iface_contents)
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 549, in _render_physical_interfaces
iface_cfg, iface_subnets, network_state.has_default_route
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 399, in _render_subnets
iface_cfg.name))
ValueError: Unknown subnet type 'static6' found for interface 'eth0'
------------------------------------------------------------
Cloud-init v. 19.4 running 'init' at Sat, 10 Apr 2021 16:18:15 +0000. Up 43.73 seconds.
ci-info: ++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++
ci-info: +--------+------+-----------------------------+-----------+-------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+-----------------------------+-----------+-------+-------------------+
ci-info: | eth0 | True | fe80::81c:8dff:fefc:335c/64 | . | link | 0a:1c:8d:fc:33:5c |
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: +--------+------+-----------------------------+-----------+-------+-------------------+
ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
Did anybody else see such an issue and maybe has a fix/workaround for it?
Thanks,
Michael
EDIT: Looking at the source of `cloudinit/net/sysconfig.py`, `static6` seems to be a legit config value for cloudinit. Still have no clue whats going on here, so if there is anybody with an idea; I would really appreciate it.
Last edited: