SUSE sysconfig renderer enablement incomplete

Bug #1799301 reported by Robert Schweikert
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

With db50bc0d9 the sysconfig renderer was enabled for openSUSE and SUSE Linux Enterprise. This implementation is incomplete and network rendering for openSUSE and SLES is now completely broken.

Message in cloud-init.log:

stages.py[ERROR]: Unable to render networking. Network config is likely broken: No available network renderers found. Searched through list: ['eni', 'sysconfig', 'netplan']

The issue is that the available() method in sysconfig.py looks for

    expected_paths = [
        'etc/sysconfig/network-scripts/network-functions',
        'etc/sysconfig/network-scripts/ifdown-eth']

in addition to ifup and ifdown. While ifup and ifdown are found the above scripts do not exists on openSUSE and SLES.

The equivalent to 'etc/sysconfig/network-scripts/network-functions' would be 'etc/sysconfig/network/functions.netconfig', there is no default ifdown-eth, any ifdown scripts would exist in
'etc/sysconfig/network/if-down.d' but this is empty by default.

One option is of course to not look for such specific location and "trust" that the necessary script for the given distro are installed. We would only check for ifup and ifdown commands as those are necessary. The underying distro implementation for script handling may not be as important here.

Revision history for this message
Alejandro (alebeta) wrote :

Fedora 29 is presenting the same problem today with last release.

Error message:

2018-11-01 11:19:30,680 - stages.py[ERROR]: Unable to render networking. Network config is likely broken: No available network renderers found. Searched through list: ['eni', 'sysconfig', 'netplan']

Also cloud-init is not running at new boot.

Revision history for this message
Ryan Harper (raharper) wrote :

Thanks for filing the issue.

Changed in cloud-init:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
yct (juraj-vitko) wrote :

I would like to stress that this is still blocking the latest Fedora Rawhide (Fedora-Cloud-Rawhide-x86_64-20190812.n.0) as well as other cloud-init distros like Fedora-Cloud-30-1.2 or openSUSE-MicroOS.x86_64-16.0.0-Kubic.

Basically in all these distros this makes it impossible to initialize an instance using cloud-init (which is the main point of "cloud" distros).

Cloud CentOS 7 19.07 is still fine but I guess this is only because they update really slow.

Also, paradoxically, cloud Ubuntu Bionic/Disco are not affected by this.

I think the severity of this should be bumped up.

Revision history for this message
Ryan Harper (raharper) wrote :

@yct,

Do you know what network configuration system is present in Fedora if it isn't sysconfig?

Do you have a URL to those cloud distro images?

Changed in cloud-init:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
Revision history for this message
Robert Schweikert (rjschwei) wrote :

Switching to a different way to detect the distro as was done with https://github.com/cloud-init/cloud-init/commit/0948cdfbef2052cdf839f24d6a17d457aa9fd4d3#diff-b3309b48873bd17b3fc8f29bd84c50fa is part of the solution. However, for SUSE there is also lp#1849378 that needs addressing.

I had forgotten about this when I filed lp#1849378

Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.