← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1653115] Re: get_latest_lease() function in CloudStack datasource does not match with lease filenames on fedora 25

 

*** This bug is a duplicate of bug 1717147 ***
    https://bugs.launchpad.net/bugs/1717147

Fixed per this bug https://bugs.launchpad.net/cloud-init/+bug/1717147

** Changed in: cloud-init
       Status: New => Fix Released

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init
     Assignee: (unassigned) => Scott Moser (smoser)

** This bug has been marked a duplicate of bug 1717147
   cloud-init 0.7.9 fails for CentOS 7.4 in Cloudstack

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

Title:
  get_latest_lease() function in CloudStack datasource does not match
  with lease filenames on fedora 25

Status in cloud-init:
  Fix Released

Bug description:
  The get_latest_lease() in cloud-init's CloudStack datasource does not
  match fedora 25's dhcp lease file names;

  The file cloudinit/sources/DataSourceCloudStack.py in Fedora 25;

      for file_name in lease_files:
          if file_name.startswith("dhclient.") and \
             (file_name.endswith(".lease") or file_name.endswith(".leases")):

  The file cloudinit/sources/DataSourceCloudStack.py in Fedora 24;

      for file_name in lease_files:
          if file_name.endswith(".lease") or file_name.endswith(".leases"):

  Lease file names as specified in /etc/sysconfig/network-scripts
  /network-functions on Fedora 25;

  generate_lease_file_name () {
      local ver=$1
      LEASEFILE="/var/lib/dhclient/dhclient$ver-${DEVICE}.leases"
      if [ -f $LEASEFILE ]; then
           return
      fi
      LEASEFILE="/var/lib/dhclient/dhclient$ver-${UUID}-${DEVICE}.lease"
  }

  Cloud-init matches filenames starting with 'dhclient.' but the actual
  filename starts with 'dhclient-'.

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


References