CPERF: Upload cirros image for CSIT
[releng.git] / jjb / cperf / cperf-robot-netvirt-csit.sh
index 4c4f477..9abb4ad 100755 (executable)
@@ -66,6 +66,11 @@ else
                       -v NODE_FREEZE_COMMAND:\"sudo docker stop opendaylight_api\" "
 fi
 
+# FIXME(trozet) remove this once it is fixed in csit
+# Upload glance image into openstack
+wget -O ${WORKSPACE}/cirros-0.3.5-x86_64-disk.img http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
+ansible-playbook -i ${CONTROLLER_1_IP}, -u heat-admin --key-file ${WORKSPACE}/id_rsa ${REL_PATH}/cirros-upload.yaml.ansible -vvv
+
 LOGS_LOCATION=/tmp/robot_results
 
 robot_cmd="pybot \
@@ -121,4 +126,4 @@ docker run -i --net=host \
 
 UPLOAD_LOCATION=artifacts.opnfv.org/cperf/cperf-apex-csit-${ODL_BRANCH}/${BUILD_NUMBER}/
 echo "Uploading robot logs to ${UPLOAD_LOCATION}"
-gsutil -m cp -r -v ${LOGS_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log
\ No newline at end of file
+gsutil -m cp -r -v ${LOGS_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log