cloud-init runs before networking is up on OpenSUSE 15.1

Bug #1835304 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Undecided
Unassigned

Bug Description

I have created an OpenSUSE 15.1 image for MAAS[1] based on the OpenSUSE OpenStack image[2] from upstream. The changes I made to the image are as follows

1. I converted the image from a tar.xz to a tar.gz
2. I added /etc/resolv.conf to the image(LP:1834382). The Curtin hooks remove the file as OpenSUSE expects it to not be there.
3. Added Curtin hooks to allow for a flat storage layout and DHCP networking.

Curtin can successfully deploy the image however upon reboot it appears that cloud-init is running before networking is up. Because of this cloud-init cannot receive SSH keys or request user-data resulting in a deployment failure.

I modified my image[1] to set root's password to 'password' for debug purposes.

[1] https://private-fileshare.canonical.com/~ltrager/openSUSE-Leap-15.1-MAAS-rootfs.x86_64.tar.gz
[2] https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.1/images/openSUSE-Leap-15.1-OpenStack-rootfs.x86_64.tar.xz

Revision history for this message
Lee Trager (ltrager) wrote :
Revision history for this message
Lee Trager (ltrager) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

most interesting lines in your log are these:

2019-07-03 20:34:38,089 - stages.py[ERROR]: Unable to render networking. Network config is likely broken: No available network renderers found. Searched through list: ['eni', 'sysconfig', 'netplan']
2019-07-03 20:34:38,090 - main.py[DEBUG]: [local] Exiting without datasource

Revision history for this message
Chad Smith (chad.smith) wrote :

cloud-init not finding sysconfig on opensuse 15.1 is curious

the sysconfig renderer checks avilability for sysconfig renderer by seeing if

1. ifup & ifdown utils exist in '/sbin', '/usr/sbin'
AND

2. the following files exist:
     etc/sysconfig/network-scripts/network-functions
     etc/sysconfig/network-scripts/ifdown-eth

If both conditions exist, then cloud-init should have used the sysconfig renderer

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Chad Smith (chad.smith) wrote :

Marking needs info, please set back to new status Lee if you can confirm if those conditions above are not met for opensuse 15.1.

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
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.