aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wilk <m.wilk@samsung.com>2020-12-03 11:32:26 +0100
committerMarcin Wilk <m.wilk@samsung.com>2020-12-03 11:32:26 +0100
commit7c8a9e1f3b759089c935231cb7d2d950429b33a3 (patch)
treec243c636b7f17311894511e9fd01fc8de0dc1729
parente2c031cc1046812af05c8564fa7d000447e8ed49 (diff)
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 <m.wilk@samsung.com> Change-Id: I5e47a789ae8529ce461326fe25003362a4e42ec5
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/MigrateServer.java1
1 files changed, 1 insertions, 0 deletions
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 {