Public bug reported:

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.

Specifically:
 * 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.


--
[1] 
http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.8/virtual_machines/user-data.html

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
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
user_data.txt:
 #cloud-config
 {}

** Affects: netplan
     Importance: Undecided
         Status: New

** Affects: cloud-init (Ubuntu)
     Importance: Critical
         Status: Confirmed

** Affects: nplan (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful uec-images

** Also affects: nplan (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: netplan
   Importance: Undecided
       Status: New

** Also affects: systemd (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Critical

** Changed in: cloud-init (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1718029

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1718029/+subscriptions

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to