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: 701...@bugs.debian.org
Reported-by: Ernesto Domato <edo...@gmail.com>
Suggested-by: Lukasz Szotek <szot...@gmail.com>
Signed-off-by: Ben Pfaff <b...@nicira.com>
---
 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           derek.corm...@lab.ntt.co.jp
 Dhaval Badiani          dbadi...@vmware.com
 DK Moon                 dkm...@nicira.com
 Edwin Chiu              ec...@nicira.com
+Ernesto Domato          edo...@gmail.com
 Eivind Bulie Haanaes
 Eric Lopez              elo...@nicira.com
 Frido Roose             fr.ro...@gmail.com
@@ -209,6 +210,7 @@ Len Gao                 l...@vmware.com
 Logan Rosen             logatron...@gmail.com
 Luca Falavigna          dktrkr...@debian.org
 Luiz Henrique Ozaki     luiz.oz...@gmail.com
+Lukasz Szotek           szot...@gmail.com
 Maxime Brun             m.b...@alphalink.fr
 Michael A. Collins      mike.a.coll...@ark-net.org
 Michael Hu              m...@nicira.com
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
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to