fullstack fails locally after several times run due to shared dhclient lease file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Each cases are sharing the common lease path for dhclient,
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. Errors are:
"""
# ip netns exec test-f00c713e-
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Can't allocate interface portd8lease {
interface .
This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the CentOS Bugs Database:
http://
exiting.
"""
The mess settings looks like this:
}
lease {
interface "portb88816 {
interface "port71fd02";
fixed-address 20.0.0.115;
...
There is a "{" after the port name.
Looks like there is a race condition among different cases, so this file is rendered with broken settings.
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Medium |
The fix: https:/ /review. opendev. org/c/openstack /neutron/ +/799438