Fix NPE on migrateVirtualMachineWithVolume#5758
Conversation
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, simplification of the code while preventing an NPE
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1878 |
|
@GutoVeronezi Is this PR good to go in 4.16.1? If so, rebase it with '4.16' branch. |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2646)
|
Hi @GutoVeronezi Can you confirm if this is good for 4.16.1. |
bde1cd8 to
39c0b94
Compare
|
@sureshanaparti done. As soon as it get merged, I'll create another PR to main branch. |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
thanks @GutoVeronezi, no need of another PR to main branch, we can forward merge this changes to main. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1902 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2659)
|
this is not needed @GutoVeronezi . part of the release managers task on dot releases is to forward merge any commits to newer release branches. |
|
Merging based on approvals and test results (test failure above is unrelated to this PR). |
…che#5758) Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
…che#5758) Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
Description
When a volume is copied to another storage pool, if the template does not exist in the destination storage pool yet, it should be copied. The API
migrateVirtualMachineWithVolumealready does it; however, when migrating the volume withmigrateVolume(VM stopped), the template is not copied, which causes inconsistencies in the database and primary storage systems. The not existence of the template in the storage pool causes an NPE when using the APImigrateVirtualMachineWithVolume.This PR intends to avoid this NPE.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
I tested it in a test lab.
migrateVolumeI migrated the volume to the new primary storage;