Modify MTU in the openstack nodes to ssh to the created VM instance
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-openstack-run-test.sh
index 96271a80147ab6fa551eb9f24c82fc5bcd2bfcc2..fdabc85b5a9f61d259f5fb0b76c28b8296d7d170 100644 (file)
@@ -287,7 +287,6 @@ done
 }
 
 cat > ${WORKSPACE}/get_devstack.sh << EOF
-sudo yum update -y
 sudo systemctl stop firewalld
 sudo yum install bridge-utils -y
 sudo systemctl stop  NetworkManager
@@ -300,6 +299,7 @@ echo "127.0.0.1    localhost \${HOSTNAME}" > /tmp/hosts
 echo "::1   localhost  \${HOSTNAME}" >> /tmp/hosts
 sudo mv /tmp/hosts /etc/hosts
 sudo /usr/sbin/brctl addbr br100
+sudo ifconfig eth0 mtu 2000
 sudo mkdir /opt/stack
 sudo chmod 777 /opt/stack
 cd /opt/stack
@@ -402,6 +402,13 @@ do
     ssh "${!OSIP}" "sudo systemctl stop firewalld; sudo systemctl stop iptables"
 done
 
+# upgrading pip, urllib3 and httplib2 so that tempest tests can be run on ${OPENSTACK_CONTROL_NODE_IP}
+# this needs to happen after devstack runs because it seems devstack is pulling in specific versions
+# of these libs that are not working for tempest.
+ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install --upgrade pip"
+ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install urllib3 --upgrade"
+ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install httplib2 --upgrade"
+
 echo "Locating test plan to use..."
 testplan_filepath="${WORKSPACE}/test/csit/testplans/${STREAMTESTPLAN}"
 if [ ! -f "${testplan_filepath}" ]; then