devstack doesn't clean the ovn database on restack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using devstack master (e102559f87b3b2
After a bunch of "./unstack.sh; ./clean.sh; ./stack.sh", I have a _lot_ of entries in the ovn db:
$ sudo ovn-nbctl show | grep router | wc -l
505
$ sudo ovn-nbctl show | grep port | wc -l
1352
It triggers some ARP collisions when allocating IP addresses on the public subnet (neutron allocates a unused IP address but it's already allocated in ovn because of a previous deployment)
When initializing OVN, devstack cleans up some files:
https:/
rm -f $OVN_DATADIR/*.db
with OVN_DATADIR=
but the ovn service from the packages doesn't use /opt/stack/data/ovn but /var/lib/ovn.
Note: when using OVN_BUILD_
What would be an appropriate fix? Cleaning /var/lib/ovn/*db (the path probably depends on the distrib)? Modifying ovn systemd files to use /opt/stack/
I suggest cleaning up the correct path.