3 ###########################################################
4 ## Invoking this script from ubuntu docker container runs
5 ## cyclictest through yardstick
6 ###########################################################
10 pod_config='/opt/scripts/pod.yaml'
11 cyclictest_context_file='/opt/cyclictest-node-context.yaml'
13 if [ ! -f ${pod_config} ] ; then
14 echo "file ${pod_config} not found"
18 if [ ! -f ${cyclictest_context_file} ] ; then
19 echo "file ${cyclictest_context_file} not found"
23 #setting up of image for launching guest vm.
24 ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
25 root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
27 #Running cyclictest through yardstick
28 yardstick -d task start ${cyclictest_context_file}
30 chmod 777 /tmp/yardstick.out
31 cat /tmp/yardstick.out > /opt/yardstick.out
32 if [ $output != 0 ];then
33 echo "Someproblem with execution of Yardstick"