From 2995c7f34ba982f6ee5afaae0b7b5ca6e2a61619 Mon Sep 17 00:00:00 2001 From: John Dilley Date: Fri, 15 Aug 2014 15:20:04 +0000 Subject: [PATCH] CLOUDSTACK-7354: Set isdynamicallyscalable before attempting to scale the VM Signed-off-by: Santhosh Edukulla --- test/integration/smoke/test_scale_vm.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/smoke/test_scale_vm.py b/test/integration/smoke/test_scale_vm.py index b3804dcddac..0b770c43996 100644 --- a/test/integration/smoke/test_scale_vm.py +++ b/test/integration/smoke/test_scale_vm.py @@ -110,6 +110,12 @@ class TestScaleVm(cloudstackTestCase): # Validate the following # Scale up the vm and see if it scales to the new svc offering and is finally in running state + # VirtualMachine should be updated to tell cloudstack it has PV tools + # available and successfully scaled. We will only mock that behaviour + # here but it is not expected in production since the VM scaling is not + # guaranteed until tools are installed, vm rebooted + self.virtual_machine.update(self.apiclient, isdynamicallyscalable='true') + self.debug("Scaling VM-ID: %s to service offering: %s and state %s" % ( self.virtual_machine.id, self.big_offering.id, @@ -144,12 +150,6 @@ class TestScaleVm(cloudstackTestCase): "Check virtual machine ID of scaled VM" ) - # VirtualMachine should be updated to tell cloudstack it has PV tools - # available and successfully scaled. We will only mock that behaviour - # here but it is not expected in production since the VM scaling is not - # guaranteed until tools are installed, vm rebooted - self.virtual_machine.update(self.apiclient, isdynamicallyscalable='true') - self.debug("Scaling VM-ID: %s from service offering: %s to new service offering %s and the response says %s" % ( self.virtual_machine.id, self.virtual_machine.serviceofferingid,