Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OracleLinux8 is not listed as a variant of RHEL8. Network renderer does not work #3947

Open
ubuntu-server-builder opened this issue May 12, 2023 · 1 comment
Labels
enhancement New feature or request launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1960845

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2022-02-14T17:04:04.440996+00:00
date_fix_committed = None
date_fix_released = None
id = 1960845
importance = wishlist
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1960845
milestone = None
owner = bcrowe306
owner_name = Brandon Crowe
private = False
status = confirmed
submitter = bcrowe306
submitter_name = Brandon Crowe
tags = []
duplicates = []

Launchpad user Brandon Crowe(bcrowe306) wrote on 2022-02-14T17:04:04.440996+00:00

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-TerraformTest-01
local-hostname: ITD-TerraformTest-01
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"
dns_nameservers:
- "192.168.20.104"
- "8.8.8.8"
dns_search:
- "fairwarning.com"

userdata:
system_info:
network:
renderers: ['sysconfig']
bootcmd:
- ifdown ens192
- sed -i 's/NM_CONTROLLED=no/NM_CONTROLLED=yes/g' /etc/sysconfig/network-scripts/ifcfg-ens192
- 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/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/cmd/main.py", line 689, in status_wrapper
ret = functor(name, args)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/cmd/main.py", line 398, in main_init
init.apply_network_config(bring_up=bring_up_interfaces)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/stages.py", line 836, in apply_network_config
netcfg, bring_up=bring_up)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/distros/init.py", line 222, in apply_netwo rk_config
self.write_network_state(network_state)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/distros/init.py", line 125, in write_netw ork_state
renderer.render_network_state(network_state)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/net/networkd.py", line 226, in render_network
state
self.create_network_file(k, v, fp_nwkd)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/net/networkd.py", line 215, in create_network
file
util.chownbyname(net_fn, net_fn_owner, net_fn_owner)
File "/usr/local/lib/python3.6/site-packages/cloud_init-21.4-py3.6.egg/cloudinit/util.py", line 1434, in chownbyname
raise OSError("Unknown user or group: %s" % (e)) from e
OSError: Unknown user or group: "getpwnam(): name not found: 'systemd-network'"

@ubuntu-server-builder ubuntu-server-builder added enhancement New feature or request launchpad Migrated from Launchpad labels May 12, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brett Holman(holmanb) wrote on 2022-02-16T16:00:56.174391+00:00

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
[2] #1247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant