Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2056964

Summary: [RHEL-9]Rebase cloud-init from Fedora so it can configure networking using NM keyfiles
Product: Red Hat Enterprise Linux 9 Reporter: Neal Gompa <ngompa13>
Component: cloud-initAssignee: Emanuele Giuseppe Esposito <eesposit>
Status: CLOSED CURRENTRELEASE QA Contact: xiachen
Severity: low Docs Contact:
Priority: high    
Version: CentOS StreamCC: aadam, adimania, apevec, bstinson, carl, davdunc, davide, dustymabe, eesposit, eterrell, fge, gholms, huzhao, jgreguske, jwboyer, lars, lkundrak, ngompa13, shardy, s, thaller, till, tumeya, xiachen, xiliang, yacao, zbyszek
Target Milestone: rcKeywords: Rebase, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-22.1-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2014701
: 2059872 (view as bug list) Environment:
Last Closed: 2022-08-15 06:49:22 UTC Type: Component Upgrade
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2059872, 2098501    

Description Neal Gompa 2022-02-22 13:08:37 UTC
+++ This bug was initially created as a clone of Bug #2014701 +++

Description of problem:
As we're moving toward dropping legacy ifcfg support in RHEL, 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 RHEL 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.1-18.el9

Additional info:
This relates to the following Changes from Fedora:
* https://fedoraproject.org/wiki/Changes/NetworkManager_keyfile_instead_of_ifcfg_rh
* https://fedoraproject.org/wiki/Changes/NoIfcfgFiles

Lubomir Rintel has submitted a pull request to add support for NetworkManager in cloud-init: https://github.com/canonical/cloud-init/pull/1224

In Fedora, this is now implemented with cloud-init-22.1-1: https://src.fedoraproject.org/rpms/cloud-init/c/b954b98a1c25b8db753dcd4545e2a72bbd0a2790

Comment 1 Neal Gompa 2022-02-26 01:54:19 UTC
The pull request to add support for NetworkManager to cloud-init has been merged: https://github.com/canonical/cloud-init/pull/1224#event-6142274645