Bug 2014701

Summary: cloud-init cannot configure networking using NM keyfiles
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: cloud-initAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: adimania, apevec, davdunc, davide, dustymabe, eterrell, fge, gholms, lars, lkundrak, ngompa13, shardy, s, thaller, till, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-22.1-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2056964 (view as bug list) Environment:
Last Closed: 2022-02-22 13:02:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neal Gompa 2021-10-15 21:56:46 UTC
Description of problem:
As we're moving toward dropping legacy ifcfg support in Fedora, one major sticking point is that cloud-init does not support configuring NetworkManager directly using NM keyfiles. This omission means that cloud-init requires the ifcfg-rh plugin to remain enabled to correctly configure the network.

In order for Fedora Cloud Edition to be able to turn off the ifcfg-rh functionality, we need for cloud-init to work without relying on that.

Version-Release number of selected component (if applicable):
21.3-2.fc36

Additional info:
This somewhat relates to https://fedoraproject.org/wiki/Changes/NetworkManager_keyfile_instead_of_ifcfg_rh

Comment 1 Neal Gompa 2021-10-15 21:58:41 UTC
Note that it's *sort of* technically possible for cloud-init currently to configure NetworkManager through the Netplan backend, but we do not currently have Netplan packaged. I would prefer that cloud-init could configure NetworkManager directly with keyfiles rather than using Netplan, though.

Comment 2 Neal Gompa 2022-01-31 10:29:21 UTC
Lubomir Rintel has submitted a pull request to add support for NetworkManager in cloud-init: https://github.com/canonical/cloud-init/pull/1224

Comment 3 Ben Cotton 2022-02-08 20:24:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 4 Neal Gompa 2022-02-22 13:02:54 UTC
This is now implemented with cloud-init-22.1-1: https://src.fedoraproject.org/rpms/cloud-init/c/b954b98a1c25b8db753dcd4545e2a72bbd0a2790