yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92235
[Bug 1894837] Re: sysconfig: NM_CONTROLLED=False should not be set on RHEL8
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3781
** Bug watch added: github.com/canonical/cloud-init/issues #3781
https://github.com/canonical/cloud-init/issues/3781
** Changed in: cloud-init
Status: Triaged => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1894837
Title:
sysconfig: NM_CONTROLLED=False should not be set on RHEL8
Status in cloud-init:
Expired
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://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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1894837/+subscriptions
References