Skip to content

Conversation

@sudo87
Copy link
Collaborator

@sudo87 sudo87 commented Jun 25, 2025

Description

This PR fixes #10835 issue.

  1. New capability param is included in listCapabilities response:
"dynamicscalingenabled": true
  1. Using above to toggle Dynamic scaling for Deploy, Edit instance

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):

How Has This Been Tested?

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

@codecov
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 15.17%. Comparing base (06c80cd) to head (9f31ba3).
Report is 5 commits behind head on 4.19.

Files with missing lines Patch % Lines
.../cloudstack/api/response/CapabilitiesResponse.java 0.00% 3 Missing ⚠️
...k/api/command/user/config/ListCapabilitiesCmd.java 0.00% 1 Missing ⚠️
...in/java/com/cloud/server/ManagementServerImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19   #11086      +/-   ##
============================================
- Coverage     15.18%   15.17%   -0.01%     
+ Complexity    11364    11358       -6     
============================================
  Files          5415     5415              
  Lines        475888   475907      +19     
  Branches      58094    58096       +2     
============================================
- Hits          72256    72242      -14     
- Misses       395546   395582      +36     
+ Partials       8086     8083       -3     
Flag Coverage Δ
uitests 4.28% <ø> (+<0.01%) ⬆️
unittests 15.90% <0.00%> (-0.01%) ⬇️

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.

@sudo87
Copy link
Collaborator Author

sudo87 commented Jun 25, 2025

@blueorangutan package

@blueorangutan
Copy link

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

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

Copy link
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

Code LGTM. Minor nits

Copy link
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
Contributor

@sudo87 , can you add some testing advice?

@sudo87
Copy link
Collaborator Author

sudo87 commented Jul 1, 2025

@sudo87 , can you add some testing advice?

Apologies, missed to add dev testing scenario.

I have followed the steps mentioned in the issue by @shwstppr, to confirm if Dynamic scaling option gets enabled.

  1. Enable config - enable.dynamic.scale.vm if not true already
  2. Create a compute offering with Dynamic Scaling enabled if not present already
  3. Register a template with Dynamic Scaling enabled if not present already
  4. Log in into UI as a normal user and go to deploy VM wizard
  5. Dynamic scaling option under Advanced mode gets Enabled

#10835 (comment)

@sudo87 sudo87 requested a review from borisstoyanov July 2, 2025 11:48
@github-actions
Copy link

github-actions bot commented Jul 5, 2025

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

@shwstppr
Copy link
Contributor

shwstppr commented Jul 8, 2025

@blueorangutan package

@blueorangutan
Copy link

@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

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

@sudo87
Copy link
Collaborator Author

sudo87 commented Jul 8, 2025

@blueorangutan package

@blueorangutan
Copy link

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

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

@sudo87 sudo87 force-pushed the fixDynamicScale branch from e579369 to c2d7f8f Compare July 16, 2025 10:07
@sudo87 sudo87 changed the base branch from main to 4.19 July 16, 2025 10:08
Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

@sudo87
Copy link
Collaborator Author

sudo87 commented Jul 16, 2025

@blueorangutan package

@blueorangutan
Copy link

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

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

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-13847)

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@apache apache deleted a comment from blueorangutan Jul 23, 2025
@blueorangutan
Copy link

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

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-13852)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 48388 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11086-t13852-kvm-ol8.zip
Smoke tests completed. 132 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_redundant_vpc_site2site_vpn Failure 440.27 test_vpc_vpn.py
test_01_vpc_site2site_vpn_multiple_options Failure 578.54 test_vpc_vpn.py

@sureshanaparti
Copy link
Contributor

Verified the dynamic scaling toggle during VM deployment with user login (after admin enabled config 'enable.dynamic.scale.vm', user selected compute offering and template with dynamic scaling enabled).

@sureshanaparti sureshanaparti merged commit 264e404 into apache:4.19 Jul 24, 2025
24 checks passed
@sureshanaparti sureshanaparti deleted the fixDynamicScale branch July 24, 2025 04:00
harikrishna-patnala pushed a commit to shapeblue/cloudstack that referenced this pull request Jul 24, 2025
* Fix for dynamic scaling toggle for instance

* Update api/src/main/java/org/apache/cloudstack/api/response/CapabilitiesResponse.java

---------

Co-authored-by: Suresh Kumar Anaparti <[email protected]>
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Aug 6, 2025
* Fix for dynamic scaling toggle for instance

* Update api/src/main/java/org/apache/cloudstack/api/response/CapabilitiesResponse.java

---------

Co-authored-by: Suresh Kumar Anaparti <[email protected]>
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.

ui: listConfigurations called for normal user in deploy vm wizard

5 participants