From d430d086ca7594315d8d5cca5e57782fc67c5f13 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Tue, 4 Sep 2018 23:59:07 +0200 Subject: Enable yardstick k8s installer-type:kubespray deploy-scenario:k8-nosdn-nofeature Change-Id: If81aef632b064565fbf5c308909b44ff7409c33e Signed-off-by: Fatih Degirmenci --- .../roles/prepare-tests/templates/run-yardstick.sh.j2 | 13 ++++++++----- 1 file 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 5eaf7bdb..a38e44df 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 %} -- cgit 1.2.3-korg