← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1368747] [NEW] CloudStack datasource does not work with NetworkManager

 

Public bug reported:

The CloudStack metadata can normally be found be asking the DHCP lease
server. The datasource plugin parses the lease file in order to figure
out the DHCP servers IP address.

To find the lease file, first /var/lib/dhclient is searched and if no
lease is found, /var/lib/dhcp is checked. If no lease file is found and
the DHCP server is not the same as default router, no metadata can be
found so cloud-init will fail.

When using NetworkManager the lease file is actually placed in
/var/lib/NetworkManager.

Patching line 141 in DataSourceCloudStack.py and add
"/var/lib/NetworkManager" so it looks like this will solve the problem:

    supported_dirs = ["/var/lib/NetworkManager", "/var/lib/dhclient",
"/var/lib/dhcp"]

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

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

Title:
  CloudStack datasource does not work with NetworkManager

Status in Init scripts for use on cloud images:
  New

Bug description:
  The CloudStack metadata can normally be found be asking the DHCP lease
  server. The datasource plugin parses the lease file in order to figure
  out the DHCP servers IP address.

  To find the lease file, first /var/lib/dhclient is searched and if no
  lease is found, /var/lib/dhcp is checked. If no lease file is found
  and the DHCP server is not the same as default router, no metadata can
  be found so cloud-init will fail.

  When using NetworkManager the lease file is actually placed in
  /var/lib/NetworkManager.

  Patching line 141 in DataSourceCloudStack.py and add
  "/var/lib/NetworkManager" so it looks like this will solve the
  problem:

      supported_dirs = ["/var/lib/NetworkManager", "/var/lib/dhclient",
  "/var/lib/dhcp"]

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


Follow ups

References