summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2019-08-27 11:09:13 -0700
committerGurucharan Shetty <guru@ovn.org>2019-08-26 23:56:31 -0700
commit4d4dba718a5d5286622f8b4faadce33b4cf6f26f (patch)
tree960320971a50f8b3cd349180acf5b812cac9e009
parent014fa7558c33d2a72ae7094ac410490afd17d427 (diff)
downloadopenvswitch-4d4dba718a5d5286622f8b4faadce33b4cf6f26f.tar.gz
ovs-lib: Add timeout at ovs-check-dead-ifs.
At SUSE12 SP3, we hit a case where ovs-check-dead-ifs tries to read an entry in /proc/<pid>/fd/<some fd> but hangs forever. The pid is a qemu-system-x86_64 process and we suspect it's an issue related to qemu, not ovs. As a result, force-reload-kmod hangs and OVS bridge never gets restarted. This patch adds a timeout of 5-seconds to ovs-check-dead-ifs. VMware-BZ: #2408059 Signed-off-by: William Tu <u9012063@gmail.com> Cc: Ashish Varma <ashishvarma.ovs@gmail.com> Cc: Gurucharan Shetty <guru@ovn.org> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
-rw-r--r--utilities/ovs-lib.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
index 768781099..58d6988a2 100644
--- a/utilities/ovs-lib.in
+++ b/utilities/ovs-lib.in
@@ -650,7 +650,8 @@ force_reload_kmod () {
restore_interfaces
- "$datadir/scripts/ovs-check-dead-ifs"
+ action "Finding processes on dead interfaces" timeout 5 \
+ "$datadir/scripts/ovs-check-dead-ifs" || true
}
## ------- ##