Custom IOPS not applied to root disk when deploying a VM from a template

Aperta
#14,103 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@xujiantop-crypto ci sta già lavorando.

Dal 10/9/2026.

  • #14114 di @xujiantop-crypto — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Inizia da CloudOrchestrator.createVirtualMachine() e segui come i valori di vm_instance_details vengono letti in DiskOfferingInfo. Confronta i nomi dei dettagli minIops/maxIops con le costanti API MIN_IOPS e MAX_IOPS, quindi verifica che il volume ROOT riceva entrambi i valori durante il deployment. Conferma il fix con la pull request collegata e un test di deployment usando IOPS personalizzati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
problem
Description

When a user deploys a VM from a template with a Custom IOPS offering for the ROOT disk, the min IOPS and max IOPS entered in Deploy Instance are stored in VM details but not copied to the ROOT volume.
volumes.min_iops and volumes.max_iops stay empty. Vendor storage that reads IOPS from the volumes gets null for min IOPS and max IOPS instead of the values entered at deploy.

Root Cause

The UI sends custom IOPS as details[0].minIops and details[0].maxIops. CloudStack stores them in vm_instance_details with those same names (minIops / maxIops).

When the ROOT volume is created, CloudOrchestrator.createVirtualMachine() reads IOPS using the API constants MIN_IOPS and MAX_IOPS. Those constants are miniops and maxiops.

The names do not match, so the lookup finds nothing. DiskOfferingInfo is left with no IOPS, and VolumeOrchestrator creates the ROOT volume with empty min_iops / max_iops.

It is a regression from Apache CloudStack PR: https://github.com/apache/cloudstack/pull/8800 (April 2024).

Image
Observations:

vm_instance_details has minIops / maxIops

Image

ROOT volume min_iops / max_iops are NULL

Image
versions

CloudStack: 4.20 and later, including 4.23.

The steps to reproduce the bug
  1. Go to Instances → Add Instance.
  2. Select a template (do not use ISO).
  3. In Compute offering, set Override root disk offering to true and select the Custom IOPS disk offering for the ROOT disk.
  4. Enter min IOPS and max IOPS (for example, 100 and 1000).
  5. Complete the wizard and deploy the VM.
  6. After the VM is created, check the ROOT volume and VM details
What to do about it?
Impact
  • The VM deploys with no error even though min and max IOPS are not applied on the ROOT volume.
  • Expected IOPS are not served because custom min/max IOPS are not set on the ROOT volume, so there is no IOPS guarantee.
Expected Behaviour

Custom IOPS from deploy-VM details must be applied to the root volume 

Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
7g 5h
PR unite (30g)
28

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/cloudstack

Tutte le issue di apache/cloudstack

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.