Skip to content

Conversation

sudo87
Copy link
Collaborator

@sudo87 sudo87 commented Apr 11, 2025

Description

This PR introduces separate global configuration for Volume allocation algorithm.

Volume allocation has been using vm.allocation.algorithm config value. It can be confusing and limitting user to use same allocation algorithm for both VM and Volume.
This new configuration will allow vm and volume allocators to use different algoritms independently without being tied together.

Doc PR apache/cloudstack-documentation#499

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?

Local dev testing is done by deployment of instances against simulator after setting different values for "volume.allocation.algorithm".

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

Volume allocation has been using vm.allocation.algorithm config value. This change will allow them to be configured in isolation.
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 3.99%. Comparing base (6fdaf51) to head (f396fa9).
Report is 62 commits behind head on main.

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

HEAD has 1 upload less than BASE
Flag BASE (6fdaf51) HEAD (f396fa9)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               main   #10696       +/-   ##
=============================================
- Coverage     16.41%    3.99%   -12.42%     
=============================================
  Files          5702      401     -5301     
  Lines        503405    32654   -470751     
  Branches      60976     5791    -55185     
=============================================
- Hits          82626     1306    -81320     
+ Misses       411594    31198   -380396     
+ Partials       9185      150     -9035     
Flag Coverage Δ
uitests 3.99% <ø> (ø)
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.

@rajujith rajujith self-requested a review April 11, 2025 05:32
@rajujith
Copy link

@blueorangutan package

@blueorangutan
Copy link

@rajujith 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 13019

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

@blueorangutan package

@blueorangutan
Copy link

@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

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

@Pearl1594 Pearl1594 added this to the 4.21.0 milestone Apr 11, 2025
@sudo87
Copy link
Collaborator Author

sudo87 commented Apr 14, 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 13046

@sudo87
Copy link
Collaborator Author

sudo87 commented Apr 15, 2025

@blueorangutan test

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

code lgtm

However, I think we need to think of the upgrade
for example, now the vm/volume allocation algorithm is set to firstfit, when uprgade to a new version with this PR, the vm allocation algorithm is still firstfit, but volume allocation algorithm will be the default value random.

@sudo87

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@blueorangutan
Copy link

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

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

LGTM, testing has passed.

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File

Copy link

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

@rohityadavcloud
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@rohityadavcloud 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 13377

@sudo87
Copy link
Collaborator Author

sudo87 commented May 15, 2025

@blueorangutan test

@blueorangutan
Copy link

@sudo87 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-13314)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 56564 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10696-t13314-kvm-ol8.zip
Smoke tests completed. 140 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_deployVMInSharedNetwork Failure 72.14 test_network.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:teardown Error 73.23 test_network.py

@DaanHoogland DaanHoogland merged commit d5ba23c into apache:main May 16, 2025
21 of 26 checks passed
@DaanHoogland DaanHoogland deleted the volumeAllocator branch May 16, 2025 12:06
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

10 participants