Browse Source

[Fullstack] Don't compile ovs kernel module on Ubuntu Bionic

In fullstack tests it was required to compile ovs kernel module
for specific version from sources because we needed fix [1] for vxlan
tunnels traffic.
Now, as in Ubuntu Bionic there is at least ovs 2.9 available,
this installation from sources shouldn't be necessary anymore.

[1] b1c74f3527

Closes-Bug: #1818632

Change-Id: I83df981a4446e8f52f6f623351d1b80c224a5aff
Slawek Kaplonski 1 month ago
parent
commit
c3ad500df0
1 changed files with 9 additions and 8 deletions
  1. 9
    8
      neutron/tests/contrib/gate_hook.sh

+ 9
- 8
neutron/tests/contrib/gate_hook.sh View File

@@ -73,14 +73,15 @@ case $VENV in
73 73
     # Because of bug present in current Ubuntu Xenial kernel version
74 74
     # we need a fix for VXLAN local tunneling.
75 75
     if [[ "$VENV" =~ "dsvm-fullstack" ]]; then
76
-
77
-        # The OVS_BRANCH variable is used by git checkout. In the case below,
78
-        # we use openvswitch release 2.9.3 that contains a fix for usage of
79
-        # VXLAN tunnels on a single node (ovs repository commit
80
-        # 741f47cf35df2bfc7811b2cff75c9bb8d05fd26f). This can be dropped once
81
-        # we switch to Ubuntu Bionic nodes, where kernel has the fix
82
-        OVS_BRANCH="v2.9.3"
83
-        compile_ovs_kernel_module
76
+        if is_ubuntu && [ ${DISTRO} == "xenial" ]; then
77
+            # The OVS_BRANCH variable is used by git checkout. In the case below,
78
+            # we use openvswitch release 2.9.3 that contains a fix for usage of
79
+            # VXLAN tunnels on a single node (ovs repository commit
80
+            # 741f47cf35df2bfc7811b2cff75c9bb8d05fd26f). This can be dropped once
81
+            # we switch to Ubuntu Bionic nodes, where kernel has the fix
82
+            OVS_BRANCH="v2.9.3"
83
+            compile_ovs_kernel_module
84
+        fi
84 85
     fi
85 86
 
86 87
     # prepare base environment for ./stack.sh

Loading…
Cancel
Save