When openvswitch stops before libvirt shuts down VMs, it makes it hard for
libvirt to remove virtual network interfaces (ovs-vsctl cannot access the
database socket, which has been removed).  This commit should ensure that
the VMs get shut down before openvswitch.

CC: [email protected]
Reported-by: Ernesto Domato <[email protected]>
Suggested-by: Lukasz Szotek <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
 AUTHORS                        | 2 ++
 debian/openvswitch-switch.init | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS
index b189957..4945e7d 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -164,6 +164,7 @@ Derek Cormier           [email protected]
 Dhaval Badiani          [email protected]
 DK Moon                 [email protected]
 Edwin Chiu              [email protected]
+Ernesto Domato          [email protected]
 Eivind Bulie Haanaes
 Eric Lopez              [email protected]
 Frido Roose             [email protected]
@@ -209,6 +210,7 @@ Len Gao                 [email protected]
 Logan Rosen             [email protected]
 Luca Falavigna          [email protected]
 Luiz Henrique Ozaki     [email protected]
+Lukasz Szotek           [email protected]
 Maxime Brun             [email protected]
 Michael A. Collins      [email protected]
 Michael Hu              [email protected]
diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init
index 481b29c..98a69f7 100755
--- a/debian/openvswitch-switch.init
+++ b/debian/openvswitch-switch.init
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2011, 2012 Nicira, Inc.
+# Copyright (C) 2011, 2012, 2014 Nicira, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
 # Provides:          openvswitch-switch
 # Required-Start:    $network $named $remote_fs $syslog
 # Required-Stop:     $remote_fs
+# X-Stop-After:      libvirt-guests
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Open vSwitch switch
-- 
1.8.5.3

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to