From: gvrangan Date: Wed, 14 Jun 2017 20:58:02 +0000 (+0530) Subject: Execute Openstack Client from Robot VM X-Git-Tag: release/nitrogen~345^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=a02059fcf797ba112523fdadfc007feb827a6e9e;p=releng%2Fbuilder.git 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 --- 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 0d72322fe1..1a47f91d6a 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 ddef09f512..7c02fff950 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