From 7c8a9e1f3b759089c935231cb7d2d950429b33a3 Mon Sep 17 00:00:00 2001 From: Marcin Wilk Date: Thu, 3 Dec 2020 11:32:26 +0100 Subject: Fix LCM migrate issue The code was missing reset() call on RequestContext prior calling the waitForStateChange, which relies on the reset attempt value. As a result, the code didn't wait for the VM status change. Issue-ID: APPC-1912 Signed-off-by: Marcin Wilk Change-Id: I5e47a789ae8529ce461326fe25003362a4e42ec5 --- .../onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java index 395587197..105e30cef 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java @@ -107,6 +107,7 @@ public class MigrateServer extends ProviderServerOperation { } boolean inConfirmPhase = false; + rc.reset(); try { while (rc.attempt()) { try { -- cgit 1.2.3-korg