From 286b55f3bfdeb28d5cf436f2f3672b2e99ee2656 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka <ihrachys@redhat.com> Date: Thu, 8 Sep 2016 20:18:27 +0000 Subject: [PATCH] devstack: fix kernel version matching to detect ovs compilation support The previous check was mistakenly not matching for 3.4+ kernels that support compilation. The ovs 2.5 version delivers stability fixes, apart from features. That's why the fix is expected to fix recent gate failures we started to see. Change-Id: I21749a59a040abc8b9f6a6a6c69f3fa96515962f Closes-Bug: #1621789 --- devstack/lib/ovs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ovs b/devstack/lib/ovs index 6112a71661d..2f089ea443e 100644 --- a/devstack/lib/ovs +++ b/devstack/lib/ovs @@ -38,7 +38,7 @@ function load_module { function is_kernel_supported_for_ovs25 { major=$(uname -r | cut -d\. -f 1) minor=$(uname -r | cut -d\. -f 2) - if [ $major -le 4 -a $minor -le 3 ]; then + if [ $major -le 4 -o $minor -le 3 ]; then return 0 fi