Uh oh!
There was an error while loading. Please reload this page.
Prevents null pointers when doing consecutive VM migrates - #4282
Prevents null pointers when doing consecutive VM migrates#4282RodrigoDLopez wants to merge 1 commit into
Conversation
RodrigoDLopez
commented
Aug 24, 2020
@blueorangutan package |
blueorangutan
commented
Aug 24, 2020
@RodrigoDLopez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 24, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-1813 |
shwstppr
commented
Aug 27, 2020
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Aug 27, 2020
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
blueorangutan
commented
Aug 27, 2020
Trillian test result (tid-2576)
|
yadvr
commented
Sep 5, 2020
@blueorangutan package |
blueorangutan
commented
Sep 5, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 5, 2020
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-1905 |
yadvr
commented
Sep 9, 2020
@blueorangutan package |
blueorangutan
commented
Sep 9, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 10, 2020
Packaging result: ✔centos7 ✖centos8 ✖debian. JID-1945 |
DaanHoogland
commented
Sep 18, 2020
@blueorangutan package |
blueorangutan
commented
Sep 18, 2020
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 18, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2045 |
DaanHoogland
commented
Sep 21, 2020
@blueorangutan test matrix |
DaanHoogland
left a comment
There was a problem hiding this comment.
changes look good, starting tests on assorted platforms as I'm not sure this matters
blueorangutan
commented
Sep 21, 2020
@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware67, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
blueorangutan
commented
Sep 22, 2020
Trillian test result (tid-2818)
|
Uh oh!
There was an error while loading. Please reload this page.
ravening
commented
Sep 23, 2020
@RodrigoDLopez I tried migrating same vm like 10 times between 5 hypervisors and never got any NPE. Also the |
RodrigoDLopez
commented
Sep 23, 2020
Hi, @ravening can you report the methodology you used?
If you take a look at the code, a null pointer will for sure happen. Just look at the lines I am changing. Before this PR, the first migration will have Furthermore, some of these parameters were never used for some hypervisors, seems like VMWare needs it, that is why I moved it where they will be used, and did the necessary validations providing information about the process with an appropriate log message |
@RodrigoDLopez im using ACS 4.14 I doing regular VM migration of running VM between multiple hosts. I didn't do migration with storage. Also I'm doing migration on KVM host and not VMware |
RodrigoDLopez
commented
Sep 29, 2020
Hi @ravening, that was my fault.
with these steps, after the first migrate |
ravening
commented
Oct 1, 2020
@RodrigoDLopez ah ok... So you are just doing volume migration of VM...I will try these steps and let you know the result |
RodrigoDLopez
commented
Jan 4, 2021
@rhtyd, @Ravenin, @DaanHoogland Hello guys, happy new year. Is there something missing here? Everything seems to be ok with the patch. It is a good bug fix, it has no errors, and tests are passing |
RodrigoDLopez
commented
Jan 18, 2021
@ravening @rhtyd @harikrishna-patnala@nvazquez Hello everyone, this PR fixes a bug and is a simple change. |
ravening
commented
Jan 18, 2021
Will review and test it this week |
nvazquez
left a comment
There was a problem hiding this comment.
Looks good, I've left a few comments
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DaanHoogland
commented
Jan 19, 2021
@RodrigoDLopez do you want this on latest or on one of the release branches (4.14 or 4.15)? |
RodrigoDLopez
commented
Jan 19, 2021
I will make this changes. Thanks for the hint |
RodrigoDLopez
commented
Feb 19, 2021
For me, it's fine to be merged just on the master, since it's a nonreported bug. But if you wanna I can do the necessary changes to merge this fix on 4.14 as well @nvazquez@ravening @rhtyd @harikrishna-patnala |
yadvr
commented
Mar 6, 2021
@RodrigoDLopez can you fix the conflict? |
GabrielBrascher
commented
Jun 8, 2021
I just reproduced this very issue, this PR would be nice to have (4.15.2+, I think hat for 4.15.1 it is not feasible). |
yadvr
commented
Jun 8, 2021
I'm okay to get it in 4.15.1 if it's fixing the NPE. cc @shwstppr@Pearl1594 |
shwstppr
commented
Jun 8, 2021
@GabrielBrascher were you able to reproduce this with 4.15.1 RC? |
GabrielBrascher
commented
Jun 8, 2021
@rhtyd we got it on a 4.15.0.0, but it seems that the codebase at 4.15.1.0 RC1 did not change at that point. Steps to reproduce: Stack trace: When checking the stack trace + DB it is possible to detect that the issue is indeed caused by the fact of last |
shwstppr
commented
Jun 8, 2021
@GabrielBrascher I've not tested yet and will try it tomorrow but I feel there has been a change in code that would prevent NPE that you shared, |
DaanHoogland
commented
Jun 10, 2021
@RodrigoDLopez can you address the conflict? |
GabrielBrascher
commented
Jun 10, 2021
@shwstppr thanks for bringing those changes, I might have tested with 4.15.0.0 then instead of RC1. I will take another look at it. |
GabrielBrascher
commented
Jun 17, 2021
@rhtyd @RodrigoDLopez@shwstppr@DaanHoogland I have been running some tests on RC2 and I was not able to reproduce this issue with 4.15.1.0 RC2. This one looks to be fixed. |
yadvr
commented
Jun 17, 2021
Thanks for testing @GabrielBrascher, @RodrigoDLopez can you test 4.15.1.0 RC2? |
RodrigoDLopez
commented
Jun 23, 2021
not needed anymore... |
rafaelweingartner
commented
Jun 23, 2021
@RodrigoDLopez why is this one not needed anymore? Was it addressed somewhere else? |
Description
If a VM gets consecutive migrations, a null pointer exception is thrown because these VMs do not have
host_idorlast_host_id; ACS clears these fields when the first migration is over.With that in mind, this PR prevents the respective null pointer. Additionally, it logs the right context and gives some information to the operator.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
To test this, I used the
cloudmonkeyto requestmigrateVirtualMachinecommands