Enable yardstick k8s 27/61827/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 4 Sep 2018 21:59:07 +0000 (23:59 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 4 Sep 2018 21:59:07 +0000 (23:59 +0200)
installer-type:kubespray
deploy-scenario:k8-nosdn-nofeature

Change-Id: If81aef632b064565fbf5c308909b44ff7409c33e
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
xci/playbooks/roles/prepare-tests/templates/run-yardstick.sh.j2

index 5eaf7bd..a38e44d 100644 (file)
@@ -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 %}