mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7354: Set isdynamicallyscalable before attempting to scale the VM
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
parent
4e115c28a6
commit
2995c7f34b
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user