Skip to content

Commit 7fecba2

Browse files
committed
[OVN] Ensure socket files are absent in init_ovn
Just like we remove db files let's also remove socket files when initializing ovn. Those will reappear once service fully restarts along with db files. Without it we see random issue as described in the below bug. Closes-Bug: #2002629 Change-Id: I726a9cac9c805d017273aa79e844724f0d00cdf0
1 parent a52041c commit 7fecba2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/neutron_plugins/ovn_agent

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ function init_ovn {
587587
rm -f $OVS_DATADIR/.*.db.~lock~
588588
sudo rm -f $OVN_DATADIR/*.db
589589
sudo rm -f $OVN_DATADIR/.*.db.~lock~
590+
sudo rm -f $OVN_RUNDIR/*.sock
590591
}
591592

592593
function _start_ovs {

0 commit comments

Comments
 (0)