Merge "[OVN][FT] Check UNIX socket file before using it"

This commit is contained in:
Zuul 2021-09-24 09:31:32 +00:00 committed by Gerrit Code Review
commit e2c9ac1902

View File

@ -82,8 +82,9 @@ class OvnNorthd(DaemonProcessFixture):
def stop(self):
try:
stop_cmd = ['ovs-appctl', '-t', self.unixctl_path, 'exit']
utils.execute(stop_cmd)
if os.path.isfile(self.unixctl_path):
stop_cmd = ['ovs-appctl', '-t', self.unixctl_path, 'exit']
utils.execute(stop_cmd)
except Exception:
pass