-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix ScaleVM to consider resize volume in any type of service offering #7359
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
Conversation
|
@blueorangutan package |
|
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5764 |
Codecov Report
@@ Coverage Diff @@
## 4.17 #7359 +/- ##
============================================
- Coverage 10.38% 10.38% -0.01%
+ Complexity 6651 6646 -5
============================================
Files 2453 2453
Lines 242444 242438 -6
Branches 37941 37938 -3
============================================
- Hits 25168 25166 -2
+ Misses 214159 214154 -5
- Partials 3117 3118 +1
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@harikrishna-patnala should this be based of the 4.17 branch? |
140914e to
7b5cafa
Compare
|
@blueorangutan package |
|
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5767 |
|
SonarCloud Quality Gate failed. |
|
You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab. |
|
@blueorangutan package |
|
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5773 |
|
@blueorangutan test |
|
@harikrishna-patnala a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-6313)
|
|
@kiranchavala can you please test/review this ? |
|
@harikrishna-patnala Tested the PR, and the resize of root disk is working fine Change the Global setting "allow.diskoffering.change.during.scale.vm " to true Create a custom compute offering with a custom disk offering Scenarios
|
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-6324)
|
|
all these failed tests, report "errorText:Service offering is inactive: " but this seems unrelated to my changes. Anyone else see these failures elsewhere ? |
|
@harikrishna-patnala this seems an issue with 4.17 branch itself. I was seeing same failures here, #7313 (comment) |
@harikrishna-patnala @shwstppr I think you can ignore the test failures with 4.17 |
|
thanks @shwstppr and @weizhouapache |
|
When a scale vm operation is performed in vmware 7. Resize of the root disk is failing on Vmare due to the following exception
I have set vmware.create.full.clone to true Could be related to #5992 Ignore the above exceptions This issue is occurring without the PR changes The PR LGTM |
kiranchavala
left a comment
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.
Tested the feature and its working fine, LGTM
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
Outdated
Show resolved
Hide resolved
DaanHoogland
left a comment
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
weizhouapache
left a comment
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.
code lgtm
it fixes a valid bug
|
@blueorangutan package |
|
@shwstppr a 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: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5848 |
shwstppr
left a comment
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.
LGTM
|
@harikrishna-patnala this gives conflicts on merging forward. Can you have a look please? |
* 4.18: Fix ScaleVM to consider resize volume in any type of service offering (#7359)









Description
This PR fixes the issue #7325 where root disk is not getting considered for resize in some cases of ScaleVM operation.
While Scaling VM if the compute offering has the root disk size change (for any type of compute offering whether it is normal/constrained/unconstrained) CS should do the resize operation.
We already have a check here (
cloudstack/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
Lines 2102 to 2108 in 2149e82
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?