CLOUDSTACK-8161: disabled vm migrate related test cases for LXC.

This commit is contained in:
SrikanteswaraRao Talluri 2015-02-08 00:52:05 +05:30
parent b3cebdbbf4
commit cf82af9567
10 changed files with 50 additions and 1 deletions

View File

@ -390,6 +390,10 @@ class TestHostHighAvailability(cloudstackTestCase):
# create and verify the virtual machine with HA enabled service
# offering
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
virtual_machine_with_ha = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
@ -501,6 +505,9 @@ class TestHostHighAvailability(cloudstackTestCase):
#By design, The Guest VM can STILL can be migrated to host3 if the admin chooses to do so.
#create and verify virtual machine with HA enabled service offering
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
virtual_machine_with_ha = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
@ -611,6 +618,9 @@ class TestHostHighAvailability(cloudstackTestCase):
#2. Putting host1 into maintenance mode should trigger a live migration. Make sure the VMs are not migrated to HA enabled host3.
# create and verify virtual machine with HA disabled service offering
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
virtual_machine_with_ha = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
@ -739,6 +749,9 @@ class TestHostHighAvailability(cloudstackTestCase):
#2. Putting host1 into maintenance mode should trigger a live migration. Make sure the VMs are not migrated to HA enabled host3.
# create and verify virtual machine with HA disabled service offering
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
virtual_machine_without_ha = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],

View File

@ -2084,7 +2084,7 @@ class TestNetworksInAdvancedSG_VmOperations(cloudstackTestCase):
#Create admin account
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in LXC")
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
hosts = Host.list(self.api_client, zoneid=self.zone.id)
self.assertEqual(validateList(hosts)[0], PASS, "hosts list validation failed, list is %s" % hosts)

View File

@ -301,6 +301,9 @@ class TestDomainCPULimitsUpdateResources(cloudstackTestCase):
# 3. Update Resource count for the domains
# 4. Migrate instance to new host and check resource count
# 5. Resource count should list properly.
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Setting up account and domain hierarchy")
self.setupAccounts()

View File

@ -240,6 +240,9 @@ class TestCPULimits(cloudstackTestCase):
# 1. Deploy VM with multiple core CPU & verify the usage
# 2. Migrate VM & verify updated resource count of Root Admin Account
# 3. Resource count should list properly.
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
account_list = Account.list(self.apiclient, id=self.account.id)
self.assertIsInstance(account_list,
@ -546,6 +549,9 @@ class TestDomainCPULimitsConfiguration(cloudstackTestCase):
# 2. List Resource count
# 3. Migrate instance to another host
# 4. Resource count should list properly.
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Setting up account and domain hierarchy")
self.setupAccounts()

View File

@ -359,6 +359,9 @@ class TestDomainMemoryLimits(cloudstackTestCase):
# 3. Migrate vm to another host, resource count should list properly.
#Resetting memory count in service offering
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.services["service_offering"]["memory"] = 2048
self.debug("Setting up account and domain hierarchy")

View File

@ -2478,6 +2478,9 @@ class TestVmWithLb(cloudstackTestCase):
# 2. migrate one Vm to another host.
# 3. Test whether the request are sent to stopped user VM after migrate
# 4. In netscaler, the LB rules are still configured.
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
hosts = Host.list(
self.apiclient,

View File

@ -557,6 +557,9 @@ class TestCreateSnapshot(cloudstackTestCase):
# Validate the following
# a. Check all snapshots jobs are running concurrently on backgrounds
# b. listSnapshots should list this newly created snapshot.
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Create virtual machine and snapshot on ROOT disk volume")
self.create_Snapshot_VM()

View File

@ -626,6 +626,9 @@ class TestDeployVM(cloudstackTestCase):
# 4. Stop the vm
# 5.list primary storages in the cluster , should be more than one
# 6.Migrate voluem to another available primary storage
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
clusters = Cluster.list(
self.apiclient,
zoneid = self.zone.id

View File

@ -472,6 +472,9 @@ class TestVPCRoutersBasic(cloudstackTestCase):
@attr(tags=["advanced", "intervlan"], required_hardware="true")
def test_03_migrate_router_after_creating_vpc(self):
""" Test migration of router to another host after creating VPC """
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.validate_vpc_offering(self.vpc_off)
self.validate_vpc_network(self.vpc)
@ -1157,6 +1160,9 @@ class TestVPCRouterOneNetwork(cloudstackTestCase):
#10. Make sure that we are able to access google.com from all the user Vms.
#11. Make sure that the newly added private gateway's and VPN gateway's static routes work as expected
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.validate_vpc_offering(self.vpc_off)
self.validate_vpc_network(self.vpc)
self.assertEqual(

View File

@ -798,6 +798,9 @@ class TestVMLifeCycleVPC(cloudstackTestCase):
# 3. Make sure that all the PF,LB and Static NAT rules on this VM
# works as expected.
# 3. Make sure that we are able to access google.com from this user Vm
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Validating if the network rules work properly or not?")
self.validate_network_rules()
@ -1548,6 +1551,9 @@ class TestVMLifeCycleSharedNwVPC(cloudstackTestCase):
# 3. Make sure that all the PF,LB and Static NAT rules on this VM
# works as expected.
# 3. Make sure that we are able to access google.com from this user Vm
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Validating if network rules are coonfigured properly?")
self.validate_network_rules()
@ -3388,6 +3394,9 @@ class TestVMLifeCycleDiffHosts(cloudstackTestCase):
# 3. Make sure that all the PF,LB and Static NAT rules on this VM
# works as expected.
# 3. Make sure that we are able to access google.com from this user Vm
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("vm migrate is not supported in %s" % self.hypervisor)
self.debug("Validating if the network rules work properly or not?")
self.validate_network_rules()