Uh oh!
There was an error while loading. Please reload this page.
CLOUDSTACK-8599: [VMware] Successful migration was reported as failure when vCenter session timed out - #2092
Conversation
| throw new RuntimeException("vCenter task failed due to " + we.getLocalizedMessage()); | ||
| // Since task cancellation is asynchronous, wait for the task to be cancelled | ||
| Object[] result = waitForValues(task, new String[] {"info.state", "info.error"}, new String[] {"state"}, |
There was a problem hiding this comment.
Should there be a check for length of result to avoid array-bound exceptions when accessing result[0], result[1] etc.
There was a problem hiding this comment.
@rhtyd The properties list to filter in the above waitForValues() are "info.state" and "info.error". The result size returned from waitForValues() would be same as the properties list size, which is 2 and so the result Object array would hold two objects: result[0], result[1].
There was a problem hiding this comment.
@sureshanaparti I see that however my comment aimed to encourage defensive programming. Maybe now the code works, but it can still improve upon overall elegance and include additional checks to defend future bugs [1].
There was a problem hiding this comment.
@rhtyd ok. will check and update. Thanks for the review.
There was a problem hiding this comment.
@rhtyd Updated the code. Please take a look. Thanks.
yadvr
commented
May 16, 2017
@blueorangutan package |
blueorangutan
commented
May 16, 2017
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
May 16, 2017
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-728 |
yadvr
commented
May 17, 2017
@blueorangutan test centos7 vmware-55u3 |
blueorangutan
commented
May 17, 2017
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests |
blueorangutan
commented
May 17, 2017
Trillian test result (tid-1101)
|
sureshanaparti
commented
May 26, 2017
Above test failures are not related to this PR. |
cloudmonger
commented
Jun 15, 2017
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no):https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
… when vCenter session timed out
yadvr
commented
Aug 19, 2017
@blueorangutan package |
blueorangutan
commented
Aug 19, 2017
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 19, 2017
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-965 |
yadvr
commented
Aug 19, 2017
@blueorangutan test centos7 vmware-55u3 |
blueorangutan
commented
Aug 19, 2017
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests |
blueorangutan
commented
Aug 20, 2017
Trillian test result (tid-1389)
|
yadvr
commented
Aug 31, 2017
@blueorangutan package |
blueorangutan
commented
Aug 31, 2017
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 31, 2017
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1061 |
yadvr
commented
Aug 31, 2017
@blueorangutan test centos7 vmware-55u3 |
blueorangutan
commented
Aug 31, 2017
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests |
blueorangutan
commented
Sep 1, 2017
Trillian test result (tid-1472)
|
yadvr
commented
Sep 1, 2017
LGTM, test failures not related to this PR. Additional review requested @niteshsarda@nitin-maharana@karuturi@sureshanaparti and others |
resmo
commented
Nov 6, 2017
code LGTM, IMHO hard to have a test case for it. |
sateesh-chodapuneedi
commented
Nov 7, 2017
Merging this based on 2 LGTMs and test results confirmation from @rhtyd and @resmo. Thanks. |
[VMware] Successful migration was reported as failure when vCenter session timed out.
This closes#544