← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1719157] [NEW] DataSourceOpenNebula.py doesn't config network

 

Public bug reported:

I am using OpenNebula 5.4 cloud environment.
I tried to create Ubuntu 16.04 server instance from image that is installed cloud-init 0.7.9-233-ge586fe35-0ubuntu1~16.04.1.
The configuration of HOSTNAME and SSH_PUBLIC_KEY works fine, but network configration doesn't work and fallback to dhcp.

It seems that DataSourceOpenNebula.py creates the soruce of network
configrations from context.sh, but it has no appropriate network_config
property. So cloud-init doesn't get network configuration.

I wrote attached patch. It works fine on my environment.

my cloud provider:
   OpenNebula 5.4

instance's cloud-init:
   $ dpkg-query -W -f='${Version}' cloud-init
   0.7.9-233-ge586fe35-0ubuntu1~16.04.1

   This instance's image is downloaded from Ubuntu Cloud Images (https
://cloud-images.ubuntu.com/).

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

** Patch added: "DataSourceOpenNebula.network_config.patch"
   https://bugs.launchpad.net/bugs/1719157/+attachment/4955999/+files/DataSourceOpenNebula.network_config.patch

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

Title:
  DataSourceOpenNebula.py doesn't config network

Status in cloud-init:
  New

Bug description:
  I am using OpenNebula 5.4 cloud environment.
  I tried to create Ubuntu 16.04 server instance from image that is installed cloud-init 0.7.9-233-ge586fe35-0ubuntu1~16.04.1.
  The configuration of HOSTNAME and SSH_PUBLIC_KEY works fine, but network configration doesn't work and fallback to dhcp.

  It seems that DataSourceOpenNebula.py creates the soruce of network
  configrations from context.sh, but it has no appropriate
  network_config property. So cloud-init doesn't get network
  configuration.

  I wrote attached patch. It works fine on my environment.

  my cloud provider:
     OpenNebula 5.4

  instance's cloud-init:
     $ dpkg-query -W -f='${Version}' cloud-init
     0.7.9-233-ge586fe35-0ubuntu1~16.04.1

     This instance's image is downloaded from Ubuntu Cloud Images (https
  ://cloud-images.ubuntu.com/).

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


Follow ups