sysconfig: NM_CONTROLLED=False should not be set on RHEL8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
Environment Details:
Management Control Plane : OpenStack (Ussuri Release)
cloud-init version : 19.1 (community)
Data Source : Config Drive
OS/platform of deployed VM : RHEL 8.2
I am using cloud-init v19.1 where the control plane (OpenStack nova service) passes information (data source) via configdrive during VM deployment.
On a RHEL8.2 VM deployed from the above environment, it is observed that IPv4 interfaces do not come up. This behavior is observed only when NM_CONTROLLED is set to no in the interface files. This value is set from cloud-init src code at the below lines :
https:/
we are setting NM_CONTROLLED = no using the code
iface_defaults = tuple([
('ONBOOT', True),
('USERCTL', False),
])
under the file [1] . Due to which the Network Manager is not able to handle the interfaces
[1] cloudinit/
When the above pieces of code is updated to set True to NM_CONTROLLED, the IPV4 interfaces come up fine.
Making ('NM_CONTROLLED', True) fixes the issue.
description: | updated |
summary: |
- RHEL8 ipv4 IPs not getting set + RHEL8 ipv4 IPs not coming up when NM_CONTROLLED=False |
Please add cloud-init logs to this bug so we can triage a bit more.
Logs can be obtained running `cloud-init collect-logs` on the vm and attaching the tar.gz to this bug.
Cloud-init specifically avoids trying to render network configuration for network-manager based interfaces as recommended in RHEL6 docs, but if RHEL8 needs to differ some documentation links around that would be helpful.