← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Also tested and got this on CentOS 6.8.

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

** No longer affects: centos

-- 
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:
  New

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