Skip to content

server: prevent adding vm compute details when not applicable#12637

Open
shwstppr wants to merge 6 commits intoapache:4.20from
shapeblue:fix-svcoff-speedcheck
Open

server: prevent adding vm compute details when not applicable#12637
shwstppr wants to merge 6 commits intoapache:4.20from
shapeblue:fix-svcoff-speedcheck

Conversation

@shwstppr
Copy link
Copy Markdown
Contributor

@shwstppr shwstppr commented Feb 12, 2026

Description

cpuNumber, memory and cpuSpeed shouldn't be added for VMs which use fixed offerings. It creates confusion and when adding cpuSpeed as zero for constrained offering which uses limit CPU flag, VM can failed to boot if speed specified is zero or very low.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

When adding for fixed offering,
image

When adding for constrained custom offering,
image

How Has This Been Tested?

How did you try to break this feature and the system with this change?

…ering

cpuNumber, memory and cpuSpeed shouldn't be added for VMs which use
fixed offerings. It creates confusion and when adding cpuSpeed as zero
for constrained offering which uses limit CPU flag, VM can failed to
boot if speed specified is zero or very low.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 4.15%. Comparing base (6f1aa96) to head (b1ac80a).

❗ There is a different number of reports uploaded between BASE (6f1aa96) and HEAD (b1ac80a). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (6f1aa96) HEAD (b1ac80a)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               4.20   #12637       +/-   ##
=============================================
- Coverage     16.26%    4.15%   -12.11%     
=============================================
  Files          5665      404     -5261     
  Lines        500530    32966   -467564     
  Branches      60787     5893    -54894     
=============================================
- Hits          81411     1370    -80041     
+ Misses       410028    31420   -378608     
+ Partials       9091      176     -8915     
Flag Coverage Δ
uitests 4.15% <ø> (ø)
unittests ?

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

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 16812

@abh1sar abh1sar modified the milestones: 4.20.3, 4.20.4 Feb 16, 2026
@shwstppr shwstppr changed the title server: prevent adding of compute details for vm when using fixed offering server: prevent adding of compute details for vm when not applicable Feb 17, 2026
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@apache apache deleted a comment from blueorangutan Feb 23, 2026
@apache apache deleted a comment from blueorangutan Feb 23, 2026
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@apache apache deleted a comment from blueorangutan Feb 23, 2026
@apache apache deleted a comment from blueorangutan Feb 23, 2026
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 16917

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@shwstppr shwstppr changed the title server: prevent adding of compute details for vm when not applicable server: prevent adding compute details for vm when not applicable Feb 24, 2026
@shwstppr shwstppr changed the title server: prevent adding compute details for vm when not applicable server: prevent adding vm compute details when not applicable Feb 24, 2026
@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16928

@shwstppr shwstppr marked this pull request as ready for review February 24, 2026 10:33
@blueorangutan
Copy link
Copy Markdown

[LL] Trillian Build Failed (tid-7172)

Copy link
Copy Markdown
Contributor

@rajujith rajujith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Documentation to follow. cc @shwstppr

@github-actions
Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

shwstppr added a commit to shapeblue/cloudstack-documentation that referenced this pull request Mar 27, 2026
Related apache/cloudstack#12637

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 17396

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants