cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Root volume resize performed on scaling service offering

Open yadvr opened this issue 7 years ago • 22 comments

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

yadvr avatar Dec 24 '18 13:12 yadvr

@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.

GabrielBrascher avatar Mar 21 '22 15:03 GabrielBrascher

Thanks @GabrielBrascher @DaanHoogland and all, I have created a new issue #6150 for cleaning up the redundant API and will close this one

nvazquez avatar Mar 21 '22 17:03 nvazquez