This patch contains updated Dockerfile to modify SSH Timeout value 99/22799/5
authorkalyanreddy <reddyx.gundarapu@intel.com>
Thu, 29 Sep 2016 05:30:22 +0000 (11:00 +0530)
committerkalyanreddy <reddyx.gundarapu@intel.com>
Thu, 13 Oct 2016 09:03:52 +0000 (14:33 +0530)
for the execution of cyclictest through yardstick

Change-Id: I382408d0f462c05f3f9b6578b3e00d104d127ee7
Co-Authored-By: Shravani <shravani.p@tcs.com>
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
ci/envs/cyclictest.sh
docker_image_build/Dockerfile

index 4c5440d..2af22af 100755 (executable)
@@ -21,7 +21,8 @@ if [ ! -f ${cyclictest_context_file} ] ; then
 fi
 
 #setting up of image for launching guest vm.
-sudo ssh root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
+ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
+root@$HOST_IP "cp /root/images/guest1.qcow2 /root/"
 
 #Running cyclictest through yardstick
 yardstick -d task start ${cyclictest_context_file}
index fd1ea58..fa71954 100644 (file)
@@ -5,5 +5,7 @@
 #
 FROM kvmfornfv1:latest
 RUN cd /root && git clone https://gerrit.opnfv.org/gerrit/p/yardstick.git -b stable/colorado
+RUN var=`grep "loops" /root/yardstick/samples/cyclictest-node-context.yaml |awk '{ print $2/1000 }'`; \
+    sed -i -e "s/3600/$((var+1500))/g" /root/yardstick/yardstick/ssh.py
 RUN cd /root/yardstick && python setup.py install
 WORKDIR /root