Install openvswitch kernel module that is included
with the OS (CentOS) before running any netvirt IT tests.
This works, but I am also considering (testing) creating
a new vm, that will have centos7, docker, and ovs-2.5,
so that we don't have to modprobe from netvirt job.
VM name would be something like centos7-docker-ovs-2-5-xxx.
Change-Id: I3e7a83f2175322043ae95d3ea95f0ab13dece8c1
Signed-off-by: Victor Pickard <vpickard@redhat.com>
+++ /dev/null
-#!/bin/bash
-
-set -e
-
-echo "---> Setting up controller IP"
-CONTROLLER_IP=`facter ipaddress`
-echo "CONTROLLER_IP=${CONTROLLER_IP}" > env.properties
--- /dev/null
+#!/bin/bash
+
+set -e
+
+echo "---> Setting up controller IP"
+CONTROLLER_IP=`facter ipaddress`
+echo "CONTROLLER_IP=${CONTROLLER_IP}" > env.properties
+
+echo "---> Loading OVS kernel module"
+sudo /usr/sbin/modprobe openvswitch
+
+echo "---> Verifying OVS kernel module loaded"
+/usr/sbin/lsmod | /usr/bin/grep openvswitch
+
properties-content: OVS_VERSION={OVS_VERSION}
- shell:
!include-raw-escape:
- - include-setup-controllerIp.sh
+ - include-setup-misc.sh
- inject:
properties-file: env.properties
- install-docker-compose