summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-09-05 08:38:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-09-05 08:38:36 +0000
commite91467023dcd3c5c6b088834a6234b5b56a01fe8 (patch)
tree17cc39ab4d28c9f354e28c3cce71a91a5b7bb332
parentd4afa2b7ec9fd173055a0e9cc21314174eeb8c1b (diff)
parentd430d086ca7594315d8d5cca5e57782fc67c5f13 (diff)
Merge "Enable yardstick k8s"
-rw-r--r--xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j213
1 files changed, 8 insertions, 5 deletions
diff --git a/xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j2 b/xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j2
index 82cf0eaf..dfdba15a 100644
--- a/xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j2
+++ b/xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j2
@@ -14,6 +14,14 @@ source /root/env
{% if 'os-' in deploy_scenario %}
{# stuff needed for OpenStack based scenarios #}
+rc_file_vol="-v /root/openrc:/etc/yardstick/openstack.creds"
+{% else %}
+{# k8 scenario name is hardcoded for the timebeing until we clarify #}
+{# which suite name we should use for the scenarios without yardstick suites #}
+DEPLOY_SCENARIO="k8-nosn-nofeature-noha"
+rc_file_vol="-v /root/admin.conf:/etc/yardstick/admin.conf"
+{% endif %}
+
OS_CACERT="/etc/ssl/certs/xci.crt"
DOCKER_IMAGE_NAME="opnfv/yardstick"
YARDSTICK_SCENARIO_SUITE_NAME="opnfv_${DEPLOY_SCENARIO}_daily.yaml"
@@ -26,7 +34,6 @@ envs="-e INSTALLER_TYPE=$INSTALLER_TYPE -e INSTALLER_IP=$INSTALLER_IP \
-e NODE_NAME=$NODE_NAME -e EXTERNAL_NETWORK=$EXTERNAL_NETWORK \
-e YARDSTICK_BRANCH=master -e BRANCH=master \
-e DEPLOY_SCENARIO=$DEPLOY_SCENARIO -e CI_DEBUG=true"
-rc_file_vol="-v /root/openrc:/etc/yardstick/openstack.creds"
cacert_file_vol="-v $OS_CACERT:/etc/yardstick/os_cacert"
map_log_dir="-v /root/yardstick-results:/tmp/yardstick"
sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
@@ -38,7 +45,3 @@ echo "------------------------------------------------------"
echo $cmd
echo "------------------------------------------------------"
$cmd
-{% else %}
-{# stuff needed for Kubernetes based scenarios #}
- echo "Kubernetes testing is not enabled"
-{% endif %}