-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Block volume shrink on Xen #11004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.20
Are you sure you want to change the base?
Block volume shrink on Xen #11004
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11004 +/- ##
============================================
- Coverage 16.14% 16.14% -0.01%
Complexity 13255 13255
============================================
Files 5657 5657
Lines 497903 497908 +5
Branches 60375 60377 +2
============================================
- Hits 80395 80389 -6
- Misses 408549 408558 +9
- Partials 8959 8961 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@blueorangutan package |
@JoaoJandre 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. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 13716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13736 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed LGTM
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13520)
|
@blueorangutan test ol8 xcpng82 |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests |
[SF] Trillian Build Failed (tid-13526) |
[SF] Trillian test result (tid-13530)
|
looks good, not sure if it needs further testing. let’s run tests again to satisfy my insanity: |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests |
[SF] Trillian Build Failed (tid-13542) |
[SF] Trillian test result (tid-13547)
|
Description
On version
4.16.1.0
PR #5829 blocked volume shrinking via UI when using XenServer. However, this change was not sufficient, as the user may still use the APIs directly to try to shrink their volume. Furthermore, via UI, it is still possible to inform the shrink option when changing disk offerings. This PR removes that option from the UI; also, theresizeVolume
andchangeOfferingForVolume
APIs were changed to block this type of operation when using XenServer, similar to what is done when using QCOW2.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Here’s the English translation of your Markdown content:
Test Description
Via UI, I validated that the shrink option no longer appears for XenServer volumes:
Before:

After:

Via CMK, I validated that both APIs block the use of the parameter for XenServer:
I also verified that the APIs still work correctly without using shrink: