]> git.proxmox.com Git - ovs.git/commit
utilities: check datapath exists before conntrack flush
authorMartin Xu <martinxu9.ovs@gmail.com>
Tue, 31 Jul 2018 05:47:18 +0000 (22:47 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 31 Jul 2018 20:54:50 +0000 (13:54 -0700)
commit9763d17fbd05baed54e284664023cccc448e1f2c
tree0ebfb428405d3adc9efe6ce65ed29523dc6c524f
parent7539bfafac64b99ac3ffed1c40a95b9e8b38cee0
utilities: check datapath exists before conntrack flush

As part of "force-reload-kmod," conntrack flush command is issued as
'action "ovs-appctl dpctl/flush-conntrack"'. In case no datapath exists
yet when issuing "force-reload-kmod," there is an error message
"ovs-vswitchd: no datapaths exist\ ovs-appctl: ovs-vswitchd: server
returned an error", which is harmless but potentially shows up as "FAILED."
Add an if condition to check whether datapath exists before running the
conntrack flush command.

VMware-BZ: #2170402
Fixes: 265d70310c69 ("utilities: Fix conntrack flush command")
Signed-off-by: Martin Xu <martinxu9.ovs@gmail.com>
CC: Greg Rose <gvrose8192@gmail.com>
CC: Aaron Conole <aconole@redhat.com>
CC: Justin Pettit <jpettit@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-lib.in