diff options
author | Navya <navyax.bathula@intel.com> | 2017-10-04 02:55:58 -0700 |
---|---|---|
committer | Navya Bathula <navyax.bathula@intel.com> | 2017-11-29 10:32:48 +0000 |
commit | 7ea7eea6dab8c1b40c2626eead4ced80e77f87b9 (patch) | |
tree | 9e914f0c3c68405d0cacc813613c7a11cfb798c2 /ci/envs/host-run-livemigration.sh | |
parent | c8298861407f3f33af25691ea60841c104938dac (diff) |
Execution of Livemigration through Yardstickopnfv-5.2.0
This Patch includes the scripts to execute the live migration test
using Yardstick and providing the information of VM downtime,
setuptime,totaltime
Change-Id: Ibe768adde1e5b2289a716524a274081cca97751d
Co-Authored by:RajithaY<rajithax.yerrumsetty@intel.com>
Signed-off-by: Navya <navyax.bathula@intel.com>
Diffstat (limited to 'ci/envs/host-run-livemigration.sh')
-rwxr-xr-x | ci/envs/host-run-livemigration.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ci/envs/host-run-livemigration.sh b/ci/envs/host-run-livemigration.sh index a089ad482..a5f285282 100755 --- a/ci/envs/host-run-livemigration.sh +++ b/ci/envs/host-run-livemigration.sh @@ -41,7 +41,7 @@ function run_qemusrc() { -device virtio-net-pci,netdev=net1,mac=$MACADDRESS1 \ -chardev socket,id=char2,path=$VHOSTPATH2 \ -netdev type=vhost-user,id=net2,chardev=char2,vhostforce \ - -device virtio-net-pci,netdev=net2,mac=$MACADDRESS2 -m 1024 -mem-path /dev/hugepages \ + -device virtio-net-pci,netdev=net2,mac=$MACADDRESS2 -m 2048 -mem-path /dev/hugepages \ -mem-prealloc -realtime mlock=on -monitor unix:${qmp_sock_src},server,nowait \ -balloon virtio -drive file=/root/guest1.qcow2 -vnc :1 & if [ ${?} -ne 0 ] ; then @@ -56,7 +56,7 @@ function run_qemulisten() { -device virtio-net-pci,netdev=net1,mac=$MACADDRESS1 \ -chardev socket,id=char2,path=$VHOSTPATH4 \ -netdev type=vhost-user,id=net2,chardev=char2,vhostforce \ - -device virtio-net-pci,netdev=net2,mac=$MACADDRESS2 -m 1024 -mem-path /dev/hugepages \ + -device virtio-net-pci,netdev=net2,mac=$MACADDRESS2 -m 2048 -mem-path /dev/hugepages \ -mem-prealloc -realtime mlock=on -monitor unix:${qmp_sock_dst},server,nowait \ -balloon virtio -drive file=/root/guest1.qcow2 -incoming tcp:${incoming_ip}:${migrate_port} -vnc :3 & if [ ${?} -ne 0 ] ; then @@ -101,8 +101,11 @@ sleep 60 echo "Running Qemu listen" run_qemulisten sleep 60 -do_migration $qmp_sock_src $qmp_sock_dst -if [ ${?} -ne 0 ] ; then - echo "Migration Failed" - exit 1 -fi +echo "To check qemu src and dst are created" +ls -la /tmp/ | grep qmp-sock-* +echo "End of host-run-livemigration" +#do_migration $qmp_sock_src $qmp_sock_dst +#if [ ${?} -ne 0 ] ; then + #echo "Migration Failed" + #exit 1 +#fi |