OracleLinux8 is not listed as a variant of RHEL8. Network renderer does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Wishlist
|
Unassigned |
Bug Description
When trying to render network config for Oracle Linux 8, cloud-init fails because the distro is not listed as a variant, and because of this, it selects the wrong renderer.
Cloud-init V 21.4
OS: Oracle Linux 8.5
Cloud: VSphere
Datasource: VMware
Metadata:
# cloud-init
instance-id: ITD-TerraformTe
local-hostname: ITD-TerraformTe
network:
renderers: ['sysconfig'] # attempt to force renderer
version: 1
config:
- type: physical
name: ens192
subnets:
- type: static
address: "192.168.20.57/24"
gateway: "192.168.20.254"
- "192.168.20.104"
- "8.8.8.8"
- "fairwarning.com"
userdata:
system_info:
network:
renderers: ['sysconfig']
bootcmd:
- ifdown ens192
- sed -i 's/NM_CONTROLLE
- nmcli connection reload
- ifup ens192
CLoud-init log failure:
KeyError: "getpwnam(): name not found: 'systemd-network'"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/
ret = functor(name, args)
File "/usr/local/
init.
File "/usr/local/
netcfg, bring_up=bring_up)
File "/usr/local/
self.
File "/usr/local/
renderer.
File "/usr/local/
self.
File "/usr/local/
util.
File "/usr/local/
raise OSError("Unknown user or group: %s" % (e)) from e
OSError: Unknown user or group: "getpwnam(): name not found: 'systemd-network'"
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Oracle Linux is not yet supported[1]. There is an open PR[2] to add support for OL8, but some changes are required before it can be merged. If/when that gets merged it should be supported.
[1] https:/ /cloudinit. readthedocs. io/en/latest/ topics/ availability. html /github. com/canonical/ cloud-init/ pull/1247
[2] https:/