/srv/irclogs.ubuntu.com/2023/05/17/#cloud-init.txt

Number8Hi every one, I'm having trouble using cloud-init to configure network interface on RHEL9 plateform14:33
Number8cloud-init seems to configure files in /etc/sysconfig/network-script/14:33
Number8but in RHEL9 the files to configure are under /etc/NetworkManager14:34
Number8is it a DataSource problem? or a cloud-init version problem?14:34
meenaI dunno, but someone Ani is working on patches14:44
meenaNumber8: https://github.com/canonical/cloud-init/pulls/ani-sinha14:45
minimalNumber8: have you checked the /etc/cloud/cloud.cfg file to see which renderers are specified?14:54
Number8meena yes it could be related. Thanks14:54
minimalfor RHEL the current c-i (23.1.2) should define a list of netplan, network-manager, networkd, sysconfig, eni and those would be considered in order14:55
minimalyou didn't indicate which cloud-init version you're using however14:55
blackboxswNumber8: right per above comments. You can check what cloud-init  detected with `grep renderer /var/log/cloud-init.log`.      When renderers are unspecified in /etc/cloud/cloud.cfg:system_info:network:renderers. You can double check what cloud-init's default priority order of detectin is https://github.com/canonical/cloud-init/blob/main/cloudinit/net/renderers.py#L29.  Each renderer tries to detect if it is 'available'.17:44
blackboxswIf not 'available' per then that renderer is disregarded and the first `available` renderer is used.17:46
blackboxswavailability check https://github.com/canonical/cloud-init/blob/main/cloudinit/net/sysconfig.py#L1050  .. So if your rhel images want NetworkManager instead of sysconfig, I'd expect we'd want to see an override demoting sysconfig priority below network-manager in /etc/cloud/cloud.cfg:system_info:\n  network:\n    renderers = [network-manager, sysconfig]17:48
blackboxswnote as well our cloud.cfg.tmpl already has that priority ordering changed for typical packaging builds which should place sysconfig behind network-manager anyway  https://github.com/canonical/cloud-init/blob/main/config/cloud.cfg.tmpl#L386. I wonder if there is a bug here in the is_rhel check17:51
blackboxswas minimal said, it'd be nice to confirm cloud-init version as a start17:51
meenai love doing stuff that should just work, but like, 1% different, and it just fails20:28
meenahttps://gist.github.com/igalic/88d89af6106807515b438d712b17217420:29
meenai think I'll just open a bug for that for now20:37
meenahttps://github.com/canonical/cloud-init/pull/411920:52
-ubottu:#cloud-init- Pull 4119 in canonical/cloud-init "cc_rsyslog: Refactor for better multi-platform support" [Open]20:52
meenai think this is ready for testing21:25
meenaright, i forgot this thing is still open: https://github.com/canonical/cloud-init/pull/2146#issuecomment-1534622118 i need to figure out what I'm doing wrong in my code22:38
-ubottu:#cloud-init- Pull 2146 in canonical/cloud-init "FreeBSD fix parsing of mount and mount options" [Open]22:38
meenafixed the two failing tests23:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!