File 0001-ovs-ctl-let-openvswitch-startup-to-NOT-hold-up-syste.patch of Package openvswitch.3895
From 9fc789b9062818161890d165e0bc71621209404a Mon Sep 17 00:00:00 2001
From: Sabyasachi Sengupta <Sabyasachi.Sengupta@alcatel-lucent.com>
Date: Mon, 15 Jun 2015 14:57:53 -0700
Subject: [PATCH] ovs-ctl: let openvswitch startup to NOT hold up system boot
upon error
Abort openvswitch startup script if ovsdb startup fails for
some reason. This helps in getting the system startup to NOT hang
indefinitely, as was seen in a recent report when ovsdb failed with
"I/O error: /etc/openvswitch/conf.db: failed to lock lockfile
(Resource temporarily unavailable)" and system remained in hung state
forever, unless manually rebooted from console.
Signed-off-by: Sabyasachi Sengupta <sabyasachi.sengupta@alcatel-lucent.com>
[blp@nicira.com changed an 'if' statement to '||']
Signed-off-by: Ben Pfaff <blp@nicira.com>
---
utilities/ovs-ctl.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 97716e9..99d789c 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -717,7 +717,7 @@ do
done
case $command in
start)
- start_ovsdb
+ start_ovsdb || exit 1
start_forwarding
add_managers
;;
--
2.10.0