get_latest_lease() function in CloudStack datasource does not match with lease filenames on fedora 25
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Scott Moser |
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/
for file_name in lease_files:
if file_name.
The file cloudinit/
for file_name in lease_files:
if file_name.
Lease file names as specified in /etc/sysconfig/
generate_
local ver=$1
LEASEFILE=
if [ -f $LEASEFILE ]; then
return
fi
LEASEFILE=
}
Cloud-init matches filenames starting with 'dhclient.' but the actual filename starts with 'dhclient-'.
Fixed per this bug https:/ /bugs.launchpad .net/cloud- init/+bug/ 1717147