3 ###########################################################
4 ## Invoking this script from ubuntu docker container runs
5 ## cyclictest through yardstick
6 ###########################################################
10 pod_config='/opt/scripts/pod.yaml'
11 lmtest_context_file='/opt/migrate-node-context.yaml'
12 yardstick_prefix='/root/yardstick/yardstick/benchmark/scenarios/compute' # yardstick teardown path
14 if [ ! -f ${pod_config} ] ; then
15 echo "file ${pod_config} not found"
19 if [ ! -f ${lmtest_context_file} ] ; then
20 echo "file ${lmtest_context_file} not found"
24 #Execution of the post-execute script copied requires re-installation of yardstick
25 ( cd /root/yardstick ; python setup.py install )
27 #setting up of image for launching guest vm.
28 ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
29 root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
31 #Updating the yardstick.conf file for daily
32 function updateConfDaily() {
33 DISPATCHER_TYPE=influxdb
34 DISPATCHER_FILE_NAME="/tmp/yardstick.out"
35 # Use the influxDB on the jumping server
36 DISPATCHER_INFLUXDB_TARGET="http://104.197.68.199:8086"
37 mkdir -p /etc/yardstick
38 cat << EOF > /etc/yardstick/yardstick.conf
41 dispatcher = ${DISPATCHER_TYPE}
44 file_name = ${DISPATCHER_FILE_NAME}
51 target = ${DISPATCHER_INFLUXDB_TARGET}
55 #Function call to update yardstick conf file based on Job type
56 #if [ "$testType" == "daily" ];then
61 #Running livemigration through yardstick
62 echo "Executing livemigration through yardstick"
63 yardstick -d task start ${lmtest_context_file}
66 if [ "$testType" == "verify" ];then
67 chmod 777 /tmp/yardstick.out
68 cat /tmp/yardstick.out > /opt/yardstick.out
71 if [ $output != 0 ];then
72 echo "Yardstick Failed !!!"