yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60122
[Bug 1653115] [NEW] get_latest_lease() function in CloudStack datasource does not match with lease filenames on fedora 25
Public bug reported:
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-'.
** 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/1653115
Title:
get_latest_lease() function in CloudStack datasource does not match
with lease filenames on fedora 25
Status in cloud-init:
New
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
Follow ups