Instance does not scale #9989
-
ISSUE TYPE
CLOUDSTACK VERSIONcloudstack version 4.19.1.1 on ubuntu SUMMARYI use the KVM hypervisor and I want to scale up my instance to a higher compute offering while it is in the powered-on state. Currently, I have the following three compute offerings: I create an instance with the first compute offering and then upgrade it to the second compute offering using the CMK . This process works correctly even though I'm using KVM and my instance is powered on. However, when I try to further upgrade the same instance to the third compute offering, I encounter an error code 530 and the message "Unhandled exception". STEPS TO REPRODUCEhttps://gist.github.com/ahmadamirahmadi007/140fd64feaab16d442ee0d36b67334ca EXPECTED RESULTSI want to upgrade to any higher offering service ACTUAL RESULTSCMK returned me: In the UI, after clicking on the scale option, it gives me the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
@ahmadamirahmadi007 there is a fix PR 4894. It'll be included in CloudStack 4.19.2.0 and 4.20. I cannot recall correctly but as an alternative, the scale VM API call has to work using the CLI |
Beta Was this translation helpful? Give feedback.
-
this is my third offering and Dynamic scaling is enabled |
Beta Was this translation helpful? Give feedback.
-
@ahmadamirahmadi007, have you enabled the debug level in the logs? If it's enabled can you look for this job ID |
Beta Was this translation helpful? Give feedback.
-
https://gist.github.com/ahmadamirahmadi/b3856d5d0483561595d7822e615e946e |
Beta Was this translation helpful? Give feedback.
-
@ahmadamirahmadi007, the message "Attaching memory device with size '525312' would exceed domain's maxMemory config size '524288'" comes from libvirt not a CloudStack's domain. From what I found you cannot exceed the memory from the max memory with hot plugged. |
Beta Was this translation helpful? Give feedback.
tnx. i found When we used Dynamic Service Offering after the creation of vm, KVM set maxMemory as size as the Maximum threshold of its Dynamic Service Offering and this limitation stayed with vm. For this reason, promotion to a higher service offering is possible when we have a value of memory less than the maximum value of the first Service Offering. This method is also true for subsequent upgrades when the vm is Running.