← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1835304] [NEW] cloud-init runs before networking is up on OpenSUSE 15.1

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Attachment added: "cloud-init.log"
   https://bugs.launchpad.net/bugs/1835304/+attachment/5274945/+files/cloud-init.log

-- 
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/1835304

Title:
  cloud-init runs before networking is up on OpenSUSE 15.1

Status in cloud-init:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1835304/+subscriptions


Follow ups