Merge "Adding qemu as a submodule of KVMFORNFV"
authorJiang, Yunhong <yunhong.jiang@intel.com>
Tue, 23 May 2017 17:55:06 +0000 (17:55 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 23 May 2017 17:55:06 +0000 (17:55 +0000)
ci/cyclicTestTrigger.sh
ci/envs/host-config
ci/test_kvmfornfv.sh
tests/kvmfornfv_cyclictest_hostenv_guestenv.yaml

index 6765569..7f606b0 100755 (executable)
@@ -41,7 +41,6 @@ function verifyGuestImage {
 
 #disabling ftrace and collecting the logs to upload to artifact repository.
 function ftrace_disable {
-   sudo ssh root@${HOST_IP} "sh /root/workspace/scripts/disable_trace.sh"
    sudo ssh root@${HOST_IP} "cd /tmp ;  mv trace.txt cyclictest_${env}.txt"
    mkdir -p $WORKSPACE/build_output/log/kernel_trace
    scp root@${HOST_IP}:/tmp/cyclictest_${env}.txt $WORKSPACE/build_output/log/kernel_trace/
@@ -189,15 +188,16 @@ function runCyclicTest {
    sudo docker run -i -v ${volume}:/opt --net=host --name kvmfornfv_${testType}_${testName} \
    kvmfornfv:latest /bin/bash -c "cd /opt/scripts && ls; ./cyclictest.sh $testType $testName"
    cyclictest_output=$?
-   if [ "$testName" == "memorystress_idle" ];then
-      copyLogs
-   fi
 
    #Disabling ftrace after completion of executing test cases.
    if [ ${ftrace_enable} -eq '1' ]; then
       ftrace_disable
    fi
 
+   if [ "$testName" == "memorystress_idle" ];then
+      copyLogs
+   fi
+
    #Verifying the results of cyclictest
    if [ "$testType" == "verify" ];then
       result=`grep -o '"errors":[^,]*' ${volume}/yardstick.out | awk -F '"' '{print $4}'`
index 54d262a..c656f83 100755 (executable)
@@ -64,9 +64,16 @@ function setTestTime {
 #Tar the log files generated during testcase execution and exit.
 function test_exit {
    exitCode=$1
+   time_stamp=$(date -u +"%Y-%m-%d_%H-%M-%S")
    cd $WORKSPACE/build_output/
    if [ -d log ];then
-      tar -czvf log-$(date -u +"%Y-%m-%d_%H-%M-%S").tar.gz log
+      tar -czvf log-${time_stamp}.tar.gz log
+      echo "uploading debugging logs to artifacts"
+      gsutil cp -r log-*.tar.gz gs://artifacts.opnfv.org/kvmfornfv/\
+      kvmfornfv_verify_debug_logs_${time_stamp} > \
+      $WORKSPACE/build_output/gsutil.log 2>&1
+      echo -e "Download the logs from artifacts using below for debugging\n
+      http://artifacts.opnfv.org/kvmfornfv/kvmfornfv_verify_debug_logs_${time_stamp}"
    fi
    exit $exitCode
 }
index b1aa973..5d886de 100755 (executable)
@@ -165,8 +165,6 @@ elif [ ${test_type} == "daily" ];then
             sed -i '/host-setup1.sh/a\    \- \"enable-trace.sh\"' kvmfornfv_cyclictest_hostenv_guestenv.yaml
             #Executing cyclictest through yardstick.
             cyclictest ${env}
-            #disabling ftrace and collecting the logs to upload to artifact repository.
-            ftrace_disable
             sleep 5
          done
       else
index 99c474c..f716c8a 100644 (file)
@@ -5,7 +5,7 @@
 # For this sample just like running the command below on the test vm and
 # getting latencies info back to the yardstick.
 #
-# sudo bash cyclictest -a 1 -b 1200000 -i 1000 -p 99 -l 1000 -t 1 -h 90 -m -n -q
+# sudo bash cyclictest -a 1 -b 1000 -i 1000 -p 99 -l 1000 -t 1 -h 90 -m -n -q
 #
 
 schema: "yardstick:task:0.1"
@@ -15,7 +15,7 @@ scenarios:
   type: Cyclictest
   options:
     affinity: 1
-    breaktrace: 1200000
+    breaktrace: 1000
     interval: 1000
     priority: 99
     loops: 600000
@@ -28,9 +28,9 @@ scenarios:
     interval: 1
   tc: "kvmfornfv_cyclictest-node-context"
   sla:
-    max_min_latency: 100
-    max_avg_latency: 600000
-    max_max_latency: 1200000
+    max_min_latency: 50
+    max_avg_latency: 100
+    max_max_latency: 1000
     action: monitor
   setup_options:
     rpm_dir: "/opt/rpm"