cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Compute offering is not listed for vm when using disk offering strictness parameter

Open lsgalves opened this issue 1 year ago • 4 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.19.1.2
CONFIGURATION

n/a

OS / ENVIRONMENT

n/a

SUMMARY

When scaling a VM created with a compute offer created with the disk offering strictness parameter, other offers are not listed (even though there are others in the same zone with the same access options and also with the disk offering strictness parameter):

Scale Instance

According to the option description, it should not be allowed to change the disk offering for the ROOT disk after the VM is deployed:

Disk offering strictness

I don't know if there could be a connection, but the current behavior is to not allow changing the disk provision even during VM deployment:

Deployment VM

I believe this was not the expected behavior.

STEPS TO REPRODUCE
  1. Create two compute offerings with the disk offering strictness parameter
  2. Create a virtual machine with 1 first compute offer created
  3. Change the offer to the second one created
EXPECTED RESULTS

That it is possible to change the disk offering only during the deployment of the VM even if an offering with the disk offering strictness option has been chosen. And that it lists and allows scaling the machine to other computing offerings that also have the disk offering strictness option.

ACTUAL RESULTS

Compute offers are not listed when trying to scale the instance.

lsgalves avatar Oct 07 '24 13:10 lsgalves

Able to reproduce the issue

The disk strictness related service offerings are not listed when scaling of a virtual machine is performed

kiranchavala avatar Oct 08 '24 08:10 kiranchavala

@kiranchavala @lsgalves is this a UI only issue?

DaanHoogland avatar Oct 08 '24 14:10 DaanHoogland

@kiranchavala @lsgalves is this a UI only issue?

No. It can be reproduced by api/cloudmonkey

matheusfontes avatar Oct 08 '24 18:10 matheusfontes

Sorry, please ignore this issue. The problem was occurring because the "Compute only disk offering" option was also enabled, so in this case there is no other offering with the same disk offering and therefore nothing is listed.

However, when scaling the offering the problem was different. When scaling I receive the error: "Unable to Scale VM, since disk offering id associated with the old service offering is not same for new service offering": Current offerings

Scale Virtual Machine

I noticed that both offers point to the same diskofferingid, this error should not occur.

lsgalves avatar Oct 11 '24 17:10 lsgalves

@lsgalves , you say ignore this issue but then continue to describe another problem. Will you create a new issue for this one? (or maybe edit the title and description of this one?)

DaanHoogland avatar Oct 23 '24 12:10 DaanHoogland

fixed in #10235

DaanHoogland avatar Feb 09 '25 08:02 DaanHoogland