Skip to content

orchestration: apply custom IOPS to root volumes - #14114

Open
xujiantop-crypto wants to merge 1 commit into
apache:4.20from
xujiantop-crypto:fix/root-volume-custom-iops
Open

orchestration: apply custom IOPS to root volumes#14114
xujiantop-crypto wants to merge 1 commit into
apache:4.20from
xujiantop-crypto:fix/root-volume-custom-iops

Conversation

@xujiantop-crypto

Copy link
Copy Markdown

Summary

Custom root disk IOPS are stored in VM details as minIops and maxIops. CloudOrchestrator was reading the API parameter names miniops and maxiops, so the values were not propagated to the root DiskOfferingInfo during VM deployment from a template.

This change:

  • adds canonical VM-detail constants for minIops and maxIops
  • uses those constants when building the root disk offering
  • adds a regression test that verifies custom root IOPS reach the VM allocation call

Fixes #14103

Testing

mvn -pl engine/orchestration -am -Dtest=CloudOrchestratorTest -DfailIfNoTests=false test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
33/33 reactor modules SUCCESS
Checkstyle: 0 violations

Signed-off-by: xujiantop-crypto <265865031+xujiantop-crypto@users.noreply.github.com>
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.37%. Comparing base (6e4413d) to head (41acb91).
⚠️ Report is 1 commits behind head on 4.20.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #14114      +/-   ##
============================================
+ Coverage     16.36%   16.37%   +0.01%     
- Complexity    13592    13599       +7     
============================================
  Files          5669     5669              
  Lines        501475   501475              
  Branches      60913    60913              
============================================
+ Hits          82067    82128      +61     
+ Misses       410209   410137      -72     
- Partials       9199     9210      +11     
Flag Coverage Δ
uitests 4.14% <ø> (ø)
unittests 17.24% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

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

2 participants