Change fullstack dhclient lease file to tmp folder
Each cases are sharing the common lease path for dhclient,
for instance, in CentOS it is: /var/lib/dhclient/dhclient.leases.
That means all fullstack cases will use this file to store
fake VM's NIC DHCP lease information.
After run several times of fullstack cases, the dhclient will
get failed to set the test fake VM port's IP due to the mess
settings in this file.
This patch sets each fake VM's NIC lease file path to the
tmp folder with it's port id.
This may fix some cases that cannot set the IP addr to the test
device properly via DHCP.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/799438 /opendev. org/openstack/ neutron/ commit/ 3b46df48476fdfd 5a479ad537d1904 74f39e395b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 3b46df48476fdfd 5a479ad537d1904 74f39e395b
Author: LIU Yulong <email address hidden>
Date: Mon Jul 5 15:19:54 2021 +0800
Change fullstack dhclient lease file to tmp folder
Each cases are sharing the common lease path for dhclient, dhclient/ dhclient. leases.
for instance, in CentOS it is: /var/lib/
That means all fullstack cases will use this file to store
fake VM's NIC DHCP lease information.
After run several times of fullstack cases, the dhclient will
get failed to set the test fake VM port's IP due to the mess
settings in this file.
This patch sets each fake VM's NIC lease file path to the
tmp folder with it's port id.
This may fix some cases that cannot set the IP addr to the test
device properly via DHCP.
Closes-Bug: #1934646 acbcf1600035d99 a83ed4b4375
Change-Id: Ia87fa7c08df473