← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1571629] Re: Azure data source contains hardcoded distribution-specific paths

 

Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/2655

** Bug watch added: github.com/canonical/cloud-init/issues #2655
   https://github.com/canonical/cloud-init/issues/2655

** Changed in: cloud-init
       Status: In Progress => Expired

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

Title:
  Azure data source contains hardcoded distribution-specific paths

Status in cloud-init:
  Expired

Bug description:
  The Azure data source (in sources/helpers/azure.py) attempts to read
  the current DHCP lease from /var/lib/dhcp/dhclient.eth0.leases, but
  that path does not exist on, for example, RHEL/Fedora/CentOS
  environments (which appear to use /var/lib/dhclient/dhclient--
  eth0.lease).

  The location of the lease file should probably be part of the Distro
  object.

  A secondary problem is that the WALinuxAgentShim class does not have
  any access to the Distro object, so that code needs some fiddling to
  implement this fix.

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



References