cloudstack and azure datasources broken when using netplan/systemd-networkd

Bug #1718029 reported by Scott Moser on 2017-09-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Scott Moser
nplan (Ubuntu)
systemd (Ubuntu)

Bug Description

In Ubuntu artful, cloud-init renders network configuration through netplan.
This means that there is no dhclient and thus no /var/lib/dhclient/*.leases.

Azure and CloudStack both are reading those leases file to get useful
information about the platform.

 * Azure reads option-245 from the dhclient response to find the IP address of the metadata service.
 * CloudStack reads the 'dhcp-server-identifier' option in the dhclient response to get the address of the virtual router (metadata service). [1]

In ubuntu this happens to be done with systemd-networkd, so cloud-init can possibly probably interact over the dbus with systemd-networkd to get information. However that is less than ideal, as ultimately cloud-init should not need to know that it systemd-networkd is involved. It should be hidden via netplan. So there should be an interface to get current networking configuratoin information from netplan including dhcp lease response info.


ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: cloud-init 0.7.9-280-ge626966e-0ubuntu1
ProcVersionSignature: Ubuntu 4.12.0-11.12-generic 4.12.5
Uname: Linux 4.12.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CloudName: Amazon - Ec2
Date: Mon Sep 18 19:56:40 2017
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Scott Moser (smoser) wrote :
Changed in cloud-init (Ubuntu):
importance: Undecided → Critical
status: New → Confirmed
Steve Langasek (vorlon) wrote :

I understand that systemd in artful is already exposing these options upstream, so marking this task fixed.

Changed in systemd (Ubuntu):
status: New → Fix Released
Steve Langasek (vorlon) wrote :

And I understand Dimitri has the necessary changes to systemd in progress.

Changed in cloud-init (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
Dimitri John Ledkov (xnox) wrote :

No changes in netplan required.

Changed in nplan (Ubuntu):
status: New → Invalid
Changed in netplan:
status: New → Invalid
Dimitri John Ledkov (xnox) wrote :

For CloudStack, I need a CloudStack instance =/ can I have a xenial instance please?

Changed in cloud-init (Ubuntu):
status: Confirmed → In Progress
Changed in cloud-init (Ubuntu):
assignee: Dimitri John Ledkov (xnox) → Scott Moser (smoser)
Scott Moser (smoser) on 2017-10-03
Changed in cloud-init:
status: New → Fix Committed
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 17.1-13-g7fd04255-0ubuntu1

cloud-init (17.1-13-g7fd04255-0ubuntu1) artful; urgency=medium

  * debian/copyright: dep5 updates, reorganize, add Apache 2.0 license.
    (LP: #1718681)
  * debian/control: drop dependency on python3-prettytable
  * New upstream snapshot.
    - systemd: remove limit on tasks created by cloud-init-final.service.
      [Robert Schweikert] (LP: #1717969)
    - suse: Support addition of zypper repos via cloud-config.
      [Robert Schweikert] (LP: #1718675)
    - tests: Combine integration configs and testcases [Joshua Powers]
    - Azure, CloudStack: Support reading dhcp options from systemd-networkd.
      [Dimitri John Ledkov] (LP: #1718029)
    - packages/debian/copyright: remove mention of boto and MIT license
    - systemd: only mention Before=apt-daily.service on debian based distros.
      [Robert Schweikert]
    - Add missing simpletable and simpletable tests for failed merge
      [Chad Smith]
    - Remove prettytable dependency, introduce simpletable [Andrew Jorgensen]
    - debian/copyright: dep5 updates, reorganize, add Apache 2.0 license.
      [Joshua Powers] (LP: #1718681)
    - tests: remove dependency on shlex [Joshua Powers]
    - AltCloud: Trust PATH for udevadm and modprobe.
    - DataSourceOVF: use util.find_devs_with(TYPE=iso9660)
      [Ryan Harper] (LP: #1718287)
    - tests: remove a temp file used in bootcmd tests.

 -- Ryan Harper <email address hidden> Tue, 03 Oct 2017 10:59:52 -0500

Changed in cloud-init (Ubuntu):
status: In Progress → Fix Released

This bug is believed to be fixed in cloud-init in 1705804. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers