Uh oh!
There was an error while loading. Please reload this page.
Resize volume: add pool capacity disablethreshold for resize and allow volume auto migration - #9761
Conversation
…e/ResizeVolumeCmd.java Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
weizhouapache
commented
Oct 3, 2024
@blueorangutan package |
blueorangutan
commented
Oct 3, 2024
@weizhouapache 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## 4.20 #9761 +/- ##
============================================
+ Coverage 15.78% 15.91% +0.12% - Complexity 12552 12722 +170
============================================
Files 5625 5627 +2 Lines 491972 499027 +7055 Branches 63764 63574 -190 ============================================
+ Hits 77664 79425 +1761 - Misses 405849 410931 +5082 - Partials 8459 8671 +212
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
blueorangutan
commented
Oct 3, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11261 |
weizhouapache
commented
Oct 3, 2024
@blueorangutan test |
blueorangutan
commented
Oct 3, 2024
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
weizhouapache
commented
Oct 3, 2024
@blueorangutan package |
blueorangutan
commented
Oct 3, 2024
@weizhouapache 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
commented
Oct 3, 2024
[SF] Trillian test result (tid-11602)
|
blueorangutan
commented
Oct 3, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11264 |
sureshanaparti
commented
Oct 3, 2024
@blueorangutan test |
blueorangutan
commented
Oct 3, 2024
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
weizhouapache
commented
Oct 3, 2024
@blueorangutan test |
blueorangutan
commented
Oct 3, 2024
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Oct 4, 2024
[SF] Trillian test result (tid-11607)
|
blueorangutan
commented
Oct 4, 2024
[SF] Trillian test result (tid-11603)
|
blueorangutan
commented
Nov 27, 2024
@weizhouapache 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
commented
Nov 27, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 11617 |
weizhouapache
commented
Nov 28, 2024
@blueorangutan package |
blueorangutan
commented
Nov 28, 2024
@weizhouapache 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
commented
Nov 28, 2024
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11625 |
blueorangutan
commented
Nov 28, 2024
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11630 |
blueorangutan
commented
Nov 28, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11635 |
weizhouapache
commented
Nov 28, 2024
@blueorangutan test |
blueorangutan
commented
Nov 28, 2024
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Nov 28, 2024
[SF] Trillian Build Failed (tid-11811) |
JoaoJandre
commented
Nov 28, 2024
@weizhouapache does the migration take flexible tags into account (not only normal tags)? |
weizhouapache
commented
Nov 28, 2024
To be frank, I have not tested flexible tags. If there are some issues with the method, we can fix it in a separated PR. |
yadvr
commented
Nov 29, 2024
@blueorangutan package |
blueorangutan
commented
Nov 29, 2024
@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. |
weizhouapache
commented
Nov 29, 2024
@blueorangutan package |
blueorangutan
commented
Nov 29, 2024
@weizhouapache 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
commented
Nov 29, 2024
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11647 |
blueorangutan
commented
Nov 29, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11650 |
weizhouapache
commented
Nov 29, 2024
@blueorangutan test |
blueorangutan
commented
Nov 29, 2024
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
JoaoJandre
commented
Nov 29, 2024
@weizhouapache from what I have gathered reviewing the code. If the volume is attached to a running VM, flexible tags will be considered. Otherwise not... This should be fixed. |
weizhouapache
commented
Nov 29, 2024
@JoaoJandre since you are the author of flexible tags (PR #7489), could you please have a look ? |
blueorangutan
commented
Nov 30, 2024
[SF] Trillian test result (tid-11823)
|
…w volume auto migration (apache#9761) * server: add global settings for volume resize * resizeVolume: support automigrate * Address Suresh's comments * Update api/src/main/java/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com> * address Suresh's comments * UI: add autoMigrate to resizeVolume * resizevolume: add unit tests * resizevolume: add unit test for Allocated volume --------- Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
Description
Currently, when resize a volume, ACS checks if the current storage pool can accommodate the new size, and simply return true if pool has enough capacity, or false if there are not enough capacity.
This PR
when resize a volume
pool.storage.allocated.capacity.disablethresholdvolume.resize.allowed.beyond.allocationisfalse, go to migration stepvolume.resize.allowed.beyond.allocationistrue, it will check pool capacity for resize thresholdpool.storage.allocated.resize.capacity.disablethreshold.prior to this change

With this change

Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?