← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1576273] [NEW] CloudStack datasource fails to find DHCP lease if IPv6 present

 

Public bug reported:

The CloudStack data source looks in /var/lib/dhcp for DHCP lease files
and compares the timestamps.

If you have a dhclient.leases and dhclient6.leases file present it will
look in the dhclient6.leases file for a DHCP server to connect to.

The fix for this is rather simple, change a if-statement so that it
checks if the leases file starts with 'dhclient.'

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

** 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/1576273

Title:
  CloudStack datasource fails to find DHCP lease if IPv6 present

Status in cloud-init:
  New

Bug description:
  The CloudStack data source looks in /var/lib/dhcp for DHCP lease files
  and compares the timestamps.

  If you have a dhclient.leases and dhclient6.leases file present it
  will look in the dhclient6.leases file for a DHCP server to connect
  to.

  The fix for this is rather simple, change a if-statement so that it
  checks if the leases file starts with 'dhclient.'

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

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


Follow ups