Skip to content
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

Fix: Update rootdisksize detail on restore VM #8981

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

vishesh92
Copy link
Member

Description

This PR fixes the below issue:

  1. Register two VM templates, small and large.
  2. Deploy VM using smaller template while overriding the rootdisksize
  3. Start VM if not started
  4. Stop VM
  5. Reinstall VM to larger VM template
  6. Observe new root is the size of old volume. This is happening because the rootdisksize detail for VM overrides the template's size.

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

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

codecov-commenter commented Apr 25, 2024

Codecov Report

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

Project coverage is 14.96%. Comparing base (e409c6d) to head (948508e).

Files Patch % Lines
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 0.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               4.19    #8981    +/-   ##
==========================================
  Coverage     14.96%   14.96%            
- Complexity    10995    10996     +1     
==========================================
  Files          5373     5373            
  Lines        468989   469000    +11     
  Branches      61009    60655   -354     
==========================================
+ Hits          70191    70205    +14     
+ Misses       391019   391011     -8     
- Partials       7779     7784     +5     
Flag Coverage Δ
uitests 4.31% <ø> (ø)
unittests 15.67% <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.

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

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

@blueorangutan
Copy link

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

@borisstoyanov
Copy link
Contributor

@blueorangutan test keepEnv

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-10049)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44709 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8981-t10049-kvm-centos7.zip
Smoke tests completed. 129 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_events_resource Error 411.42 test_events_resource.py

@rohityadavcloud rohityadavcloud added this to the 4.19.1.0 milestone Apr 29, 2024
@rohityadavcloud rohityadavcloud marked this pull request as ready for review April 29, 2024 06:44
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

@rohityadavcloud rohityadavcloud merged commit 0271494 into apache:4.19 Apr 29, 2024
23 of 24 checks passed
@rohityadavcloud rohityadavcloud deleted the fixup-restore-vm branch April 29, 2024 16:45
DaanHoogland added a commit that referenced this pull request Apr 30, 2024
* 4.19:
  Fix: Update rootdisksize detail on restore VM (#8981)
  UI: hide Cleanup/Expunge when delete a CloudManaged CKS cluster (#8593)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* Fix: Update rootdisksize detail on restore VM

* minor fixup
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
* 4.19:
  Fix: Update rootdisksize detail on restore VM (apache#8981)
  UI: hide Cleanup/Expunge when delete a CloudManaged CKS cluster (apache#8593)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants