From a02059fcf797ba112523fdadfc007feb827a6e9e Mon Sep 17 00:00:00 2001 From: gvrangan Date: Thu, 15 Jun 2017 02:28:02 +0530 Subject: [PATCH] Execute Openstack Client from Robot VM - Install Openstack client - Create the environment variables required to execute the Openstack client. Change-Id: Iddf35141f80a9488540eb6a1875eb312cecc1932 Signed-off-by: gvrangan --- ...-raw-integration-deploy-openstack-run-test.sh | 16 ++++++++++++++++ ...ude-raw-integration-install-robotframework.sh | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh b/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh index 0d72322fe..1a47f91d6 100644 --- a/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh +++ b/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh @@ -785,6 +785,22 @@ cat testplan.txt SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '` +#Environment Variables Needed to execute Openstack Client for NEtvirt Jobs +cat > /tmp/os_netvirt_client_rc << EOF +export OS_USERNAME=admin +export OS_PASSWORD=admin +export OS_PROJECT_NAME=admin +export OS_USER_DOMAIN_NAME=default +export OS_PROJECT_DOMAIN_NAME=default +export OS_AUTH_URL="http://${!CONTROLIP}:35357/v3" +export OS_IDENTITY_API_VERSION=3 +export OS_IMAGE_API_VERSION=2 +export OS_TENANT_NAME=admin +unset OS_CLOUD +EOF + +source /tmp/os_netvirt_client_rc + #FIXME currently support only 1 site echo "Starting Robot test suites ${SUITES} ..." # please add pybot -v arguments on a single line and alphabetized diff --git a/jjb/integration/include-raw-integration-install-robotframework.sh b/jjb/integration/include-raw-integration-install-robotframework.sh index ddef09f51..7c02fff95 100644 --- a/jjb/integration/include-raw-integration-install-robotframework.sh +++ b/jjb/integration/include-raw-integration-install-robotframework.sh @@ -56,6 +56,10 @@ pip install --upgrade jmespath # Module for backup-restore support library pip install --upgrade jsonpatch +#Module OpenstackClient is needed for NEtvirt CSIT jobs +pip install python-openstackclient +pip install python-neutronclient + # Print installed versions. pip freeze -- 2.36.6