deployVirtualMachine deploy First VM test case diskofferingid globaldiskofferingid serviceofferingid globalserviceofferingid templateid globaltemplateid zoneid globalzoneid displayname FirstVM account admin domainid 1 group group1 networkids globalnetworkid id vmid_1st name vmname_1st hostid hostid_1st deployVirtualMachine deploy Second VM test case diskofferingid globaldiskofferingid serviceofferingid globalserviceofferingid templateid globaltemplateid zoneid globalzoneid displayname SecondVM account admin domainid 1 group group1 networkids globalnetworkid id vmid_2nd name vmname_2nd hostid hostid_2nd updateVirtualMachine HA disable first virtual machine id vmid_1st displayname HAdisabledFirstVirtualMachine haenable false updateVirtualMachine HA disable second virtual machine id vmid_2nd displayname HAdisabledSecondVirtualMachine haenable false listHosts Obtain IP address of ha disabled VM's Host Test Case id hostid_1st ipaddress ipaddress_1st listHosts Obtain IP address of ha enabled VM's Host Test Case id hostid_2nd ipaddress ipaddress_2nd select instance_name from vm_instance true Obtaining the internal instance name for the ha disabled VM Test Case id vmid_1st instance_name instance_name_1st select instance_name from vm_instance true Obtaining the internal instance name for the ha enabled VM Test Case id vmid_2nd instance_name instance_name_2nd ms.sh Stopping management server h ms1 o stop killvm.sh Kill the First HA disabled VM n instance_name_1st h ipaddress_1st killvm.sh Kill the Second HA disabled VM n instance_name_2nd h ipaddress_2nd sleep.sh Sleep for some time s 100 ms.sh Starting management server h ms1 o start sleep.sh Sleep for some time s 100 listVirtualMachines Check the stopped status of First virtual machine with ha disabled id vmid_1st state Stopped listVirtualMachines Check the stopped status of Second virtual machine with ha disabled id vmid_2nd state Stopped destroyVirtualMachine Destroy the First vm as a part of cleanup id vmid_1st destroyVirtualMachine Destroy the Second vm as a part of cleanup id vmid_2nd deployVirtualMachine deploy VM test case diskofferingid globaldiskofferingid serviceofferingid globalserviceofferingid templateid globaltemplateid zoneid globalzoneid displayname FirstVM account admin domainid 1 group group1 networkids globalnetworkid id vmid_1st name vmname_1st hostid hostid_1st listHosts Obtain IP address of the VM's Host Test Case id hostid_1st ipaddress ipaddress_1st select instance_name from vm_instance true Obtaining the internal instance name for the VM Test Case id vmid_1st instance_name instance_name_1st ms.sh Stopping management server h ms1 o stop shutdown.sh Shut down the VM Test Case n instance_name_1st h ipaddress_1st sleep.sh Sleep for some time s 60 ms.sh Starting management server h ms1 o start sleep.sh Sleep for some time s 60 listVirtualMachines Check the stopped status of virtual machine id vmid_1st state Stopped listHosts List host that is presumed to have the VM Test Case id hostid_1st ipaddress ipaddress_1st listvm.sh VM Not Found on the host Test Case true h ipaddress_1st n instance_name_1st