aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wilk <m.wilk@samsung.com>2020-12-04 13:24:43 +0100
committerMarcin Wilk <m.wilk@samsung.com>2020-12-04 13:24:43 +0100
commit443c060154392b18cd3bd358cafd6a643636eba6 (patch)
tree453ac13e4a0e3fceb8e0c095fd5f066b9d3e4d6e
parenta906a5b102d20c4591b89acd43f604d505f80f79 (diff)
Fix LCM evacuate 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-1913 Signed-off-by: Marcin Wilk <m.wilk@samsung.com> Change-Id: Ib80bb154e6380dd6a90077179db41117ec74e31b
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.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/EvacuateServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java
index cfd816e14..2ce8ab4ac 100644
--- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java
+++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java
@@ -123,6 +123,7 @@ public class EvacuateServer extends ProviderServerOperation {
String targetHost) throws ZoneException, RequestFailedException {
String msg;
Context ctx = server.getContext();
+ rcCtx.reset();
while (rcCtx.attempt()) {
try {
logger.debug("Calling CDP moveServer - server id = " + server.getId());