From d1d940d22b06c169841ca4725037e14f74c66cab21d2de1f10a6596aa7d6faad Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sat, 29 Jul 2017 02:26:08 +0000 Subject: [PATCH] Accepting request 512793 from home:markoschandras:network - Do not restart the ovs-vswitchd and ovsdb-server services on package updates (bsc#1002734) - Do not restart the ovs-vswitchd, ovsdb-server and openvswitch services on package removals. This facilitates potential future package moves but also preserves connectivity when the package is removed (bsc#1050896) OBS-URL: https://build.opensuse.org/request/show/512793 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=121 --- openvswitch.changes | 10 ++++++++++ openvswitch.spec | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/openvswitch.changes b/openvswitch.changes index 8f33c7f..5105e81 100644 --- a/openvswitch.changes +++ b/openvswitch.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Jul 27 13:05:42 UTC 2017 - mchandras@suse.de + +- Do not restart the ovs-vswitchd and ovsdb-server services + on package updates (bsc#1002734) +- Do not restart the ovs-vswitchd, ovsdb-server and openvswitch + services on package removals. This facilitates potential future + package moves but also preserves connectivity when the package is + removed (bsc#1050896) + ------------------------------------------------------------------- Wed Jul 19 07:32:59 UTC 2017 - mchandras@suse.de diff --git a/openvswitch.spec b/openvswitch.spec index 040fc5a..7bc2f51 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -428,8 +428,6 @@ fi %postun /sbin/ldconfig -%service_del_postun ovsdb-server.service -%service_del_postun ovs-vswitchd.service # Do not restart the openvswitch service on package updates. # Restarting the service may break the existing network state. # For example, openflow rules are not automatically re-installed @@ -438,9 +436,13 @@ fi # admin decide when it's the best time for an OvS restart. # 5771f476573445710834234a6a9f7bd999a027e7 ("fedora: do not restart the service on a pkg upgrade") export DISABLE_RESTART_ON_UPDATE=yes +%service_del_postun ovsdb-server.service +%service_del_postun ovs-vswitchd.service %service_del_postun openvswitch.service %pre +# This prevents networking breakages on package removals +export DISABLE_STOP_ON_REMOVAL=yes %service_add_pre ovsdb-server.service %service_add_pre ovs-vswitchd.service %service_add_pre openvswitch.service