FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix NPE when migrating a VM that had its template removed by Rubueno · Pull Request #8834 · apache/cloudstack · GitHub

Repository navigation

Fix NPE when migrating a VM that had its template removed - #8834

Closed
Rubueno wants to merge 1 commit into
apache:4.19from
CLDIN:NPE
Closed

Rubueno wants to merge 1 commit into
apache:4.19from
CLDIN:NPE

Conversation

Rubueno commented Mar 26, 2024 •
edited
Loading

Copy link
Copy Markdown
Contributor

Description

This PR fixes an NPE when a VM had its template removed while the template still has running VMs.

Possibly fixes #8827 but not sure as I've not worked with imported VMs.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

We have this currently running in our 4.16 environment and are bringing the change into a new release.

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

It does not break but instead resolves an issue.

Copy link
Copy Markdown
Collaborator

Hello! I think this hits the same roadblock as #7615, where it ends up migrating without copying the template and it corrupts the VM due to a missing backing file.

@JoaoJandre can you take a look?

Copy link
Copy Markdown
Contributor

Hello! I think this hits the same roadblock as #7615, where it ends up migrating without copying the template and it corrupts the VM due to a missing backing file.

@JoaoJandre can you take a look?

@Rubueno @gpordeus yeah this solution has the same pitfall of #7615. I actually have another solution for this issue (and some others that we have noticed with the VM + volume migration), but I have my hands full this week and will only be able to open the PR(s) next week.

codecov Bot commented Mar 27, 2024 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 30.76%. Comparing base (08d9d06) to head (3c1d9a1).
Report is 200 commits behind head on 4.19.

Files Patch % Lines
...torage/motion/StorageSystemDataMotionStrategy.java 0.00% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19    #8834      +/-   ##
============================================
- Coverage     30.99%   30.76%   -0.24%     
+ Complexity    34375    34089     -286     
============================================
  Files          5355     5355              
  Lines        376686   376694       +8     
  Branches      54815    54816       +1     
============================================
- Hits         116749   115884     -865     
- Misses       244551   245532     +981     
+ Partials      15386    15278     -108     
Flag Coverage Δ
simulator-marvin-tests 24.47% <0.00%> (-0.39%) ⬇️
uitests 4.38% <ø> (ø)
unit-tests 16.57% <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.

Copy link
Copy Markdown
Contributor

@JoaoJandre how does your #8911 relate to this? are both sensible/needed or do they conflict?

Copy link
Copy Markdown
Contributor

@JoaoJandre how does your #8911 relate to this? are both sensible/needed or do they conflict?

They do conflict, this PR changes the template copy on live migration. #8911 removes the template copy from the live migration, since #8911 always consolidates the volume, no need to copy the template.

Furthermore, I believe that this PR will have the same issue as #7615 where the VM can be corrupted.

Copy link
Copy Markdown
Contributor

@blueorangutan package

Copy link
Copy Markdown

@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
Copy Markdown

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

Copy link
Copy Markdown

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

yadvr commented Jun 25, 2024

Copy link
Copy Markdown
Member

@Rubueno can you fix the conflict?

Rubueno commented Jun 25, 2024 via email

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@Rubueno #7615 is reported to be fixed in #9259. Should this still be merged/is it still relevant?

Rubueno commented Jul 10, 2024

Copy link
Copy Markdown
Contributor Author

I don't think so then. I'll close this.

Rubueno closed this Jul 10, 2024
DaanHoogland removed this from the 4.20.0.0 milestone Sep 6, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL