Activity log for bug #1894837

Date Who What changed Old value New value Message
2020-09-08 12:21:36 Aman Kumar Sinha bug added bug
2020-09-08 16:42:50 Chad Smith cloud-init: status New Incomplete
2020-09-08 17:12:14 Aman Kumar Sinha attachment added clod-init logs https://bugs.launchpad.net/cloud-init/+bug/1894837/+attachment/5408727/+files/cloud-init-logs-2020-09-08.zip
2020-09-08 17:12:33 Aman Kumar Sinha cloud-init: status Incomplete New
2020-09-09 16:01:10 Divya K Konoor description I am using cloud-init v19.1 where I am passing config drive from nova layer while VM deployment. On a RHEL8 environment, I am observing IPv4 interfaces not coming up. We are setting NM_CONTROLLED = no in the interface files and since RHEL8 recommends to use NetworkManager to configure network and create connectivity it is failing. we are setting NM_CONTROLLED = no using the code iface_defaults = tuple([ ('ONBOOT', True), ('USERCTL', False), ('NM_CONTROLLED', False), ('BOOTPROTO', 'none'), ('STARTMODE', 'auto'), ]) under the file [1] . Due to which the Network Manager is not able to handle the interfaces [1] cloudinit/net/sysconfig.py Making ('NM_CONTROLLED', True) fixes the issue. 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://github.com/canonical/cloud-init/blob/stable-19.4/cloudinit/net/sysconfig.py#L275 we are setting NM_CONTROLLED = no using the code     iface_defaults = tuple([         ('ONBOOT', True),         ('USERCTL', False),         ('NM_CONTROLLED', False),         ('BOOTPROTO', 'none'),         ('STARTMODE', 'auto'),     ]) under the file [1] . Due to which the Network Manager is not able to handle the interfaces [1] cloudinit/net/sysconfig.py 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.
2020-09-09 16:01:38 Divya K Konoor bug added subscriber Divya K Konoor
2020-09-09 16:02:04 Divya K Konoor summary RHEL8 ipv4 IPs not getting set RHEL8 ipv4 IPs not coming up when NM_CONTROLLED=False
2020-09-10 08:15:57 Aman Kumar Sinha attachment added RHEL8.2 provided cloud-init v19.4 https://bugs.launchpad.net/cloud-init/+bug/1894837/+attachment/5409305/+files/cloud-init.tar.gz
2020-09-23 16:31:23 Paride Legovini summary RHEL8 ipv4 IPs not coming up when NM_CONTROLLED=False sysconfig: NM_CONTROLLED=False should not be set on RHEL8
2020-09-23 16:31:41 Paride Legovini cloud-init: status New Triaged
2020-09-23 16:32:19 Paride Legovini cloud-init: importance Undecided Medium
2021-11-16 07:01:06 Jessvin Thomas bug added subscriber Jessvin Thomas
2023-05-12 09:40:22 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3781
2023-05-12 09:40:24 James Falcon cloud-init: status Triaged Expired