Root volume resize performed on scaling service offering
When service offering of a (stopped) VM is changed using the scaleVirtualMachine API, its root disk get resized. In case the primary storage pool don't have enough capacity, the operation will fail. However, changeServiceForVirtualMachine API can allow changing offering for a stopped VM and won't try to resize the root disks.
The issue was introduced recently, and exists in 4.11 but not in 4.9: https://github.com/apache/cloudstack/commit/a30a31c9b7f9b5fe246a02285bf820e7fe9ce16e#diff-0a1cd9df984252594918eec5acfed08cR1121 /cc @mike-tutkowski
ISSUE TYPE
- Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.11.2.0
@nvazquez I believe we should remove indeed, I don't see reasons to keep changeServiceForVirtualMachinein.
As far as I know, in the UI we are no longer using changeServiceForVirtualMachine and scaleVirtualMachine does all the job we need.
Such a process (which I would be +1) would just require a major release as this could eventually break compatibility with those who might still be using changeServiceForVirtualMachinein.
Thanks @GabrielBrascher @DaanHoogland and all, I have created a new issue #6150 for cleaning up the redundant API and will close this one