[ovs-git] [openvswitch/ovs] 9763d1: utilities: check datapath exists before conntrack ...

GitHub noreply at github.com
Tue Jul 31 20:55:03 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9763d17fbd05baed54e284664023cccc448e1f2c
      https://github.com/openvswitch/ovs/commit/9763d17fbd05baed54e284664023cccc448e1f2c
  Author: Martin Xu <martinxu9.ovs at gmail.com>
  Date:   2018-07-31 (Tue, 31 Jul 2018)

  Changed paths:
    M utilities/ovs-lib.in

  Log Message:
  -----------
  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 at gmail.com>
CC: Greg Rose <gvrose8192 at gmail.com>
CC: Aaron Conole <aconole at redhat.com>
CC: Justin Pettit <jpettit at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list