[ovs-git] [openvswitch/ovs] de37da: ovs-vswitchd: Preserve datapath ports across grace...
GitHub
noreply at github.com
Fri Feb 5 19:43:57 UTC 2016
Branch: refs/heads/branch-2.5
Home: https://github.com/openvswitch/ovs
Commit: de37dacd7825d345c1cc8579a4c0ac3f26bbff42
https://github.com/openvswitch/ovs/commit/de37dacd7825d345c1cc8579a4c0ac3f26bbff42
Author: Ben Pfaff <blp at ovn.org>
Date: 2016-02-05 (Fri, 05 Feb 2016)
Changed paths:
M ofproto/ofproto-dpif.c
M ofproto/ofproto-provider.h
M ofproto/ofproto.c
M ofproto/ofproto.h
M vswitchd/bridge.c
Log Message:
-----------
ovs-vswitchd: Preserve datapath ports across graceful shutdown.
Until now, asking ovs-vswitchd to shut down gracefully, e.g. with
"ovs-appctl exit", would cause it to first remove all the ports from
kernel-based datapaths. This has the unfortunate side effect that IP
addresses on any removed "internal" ports are lost, even if the ports are
added again when ovs-vswitchd is restarted. This is long-standing
behavior, but it only became important when the OVS control scripts were
changed to try to do graceful shutdown first instead of using a signal.
This commit changes graceful shutdown so that it leaves ports in the
datapath, fixing the problem.
Fixes: 9b5422a98f8 (ovs-lib: Try to call exit before killing.)
Reported-by: Edgar Cantu <eocantu at us.ibm.com>
Reported-at: http://openvswitch.org/pipermail/discuss/2016-January/020024.html
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Gurucharan Shetty <guru at ovn.org>
More information about the git
mailing list