yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50079
[Bug 1576273] Re: CloudStack datasource fails to find DHCP lease if IPv6 present
This bug was fixed in the package cloud-init - 0.7.7~bzr1215-0ubuntu1
---------------
cloud-init (0.7.7~bzr1215-0ubuntu1) yakkety; urgency=medium
* debian/new-upstream-snapshot: minor change supporting revision
passed in as an argument.
* New upstream snapshot.
- Paths: fix instance path if datasource's id has a '/'. (LP: #1575938)
- Config Drive: fix check_instance_id signature. (LP: #1575055)
- cloudstack: Only use DHCPv4 lease files as a datasource (LP: #1576273)
-- Scott Moser <smoser@xxxxxxxxxx> Fri, 29 Apr 2016 12:37:48 -0400
** Changed in: cloud-init (Ubuntu)
Status: New => Fix Released
--
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:
Fix Committed
Status in cloud-init package in Ubuntu:
Fix Released
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
References