summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-iaas-adapter
diff options
context:
space:
mode:
authorModaboina, Kusumakumari (km583p) <km583p@us.att.com>2018-09-11 10:10:51 -0400
committerTakamune Cho <tc012c@att.com>2018-09-11 14:44:54 +0000
commitff0b8a6ac4b566e05538b8ee1c33a92b8eced98c (patch)
treeb7730aefe9be6cefe0f0e57458b710d386a3564d /appc-adapters/appc-iaas-adapter
parent5fb7cd971b57bb25ce7fb01b27576d02777558e5 (diff)
bugfix to allow reboot even VM is at error state
Issue-ID: APPC-1198 Change-Id: I12cb5b2807a026b7bc55f16109fbca852b2b41fb Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter')
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
index c08e584de..a0f09b56b 100644
--- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
+++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
@@ -141,16 +141,11 @@ public class RebootServer extends ProviderServerOperation {
boolean status = false;
long endTime = System.currentTimeMillis() + (timeout * MILLI_SECONDS);
while (rc.attempt()) {
- if (server.getStatus() != null && server.getStatus().equals(Server.Status.ERROR)) {
- msg = "Device status " + Server.Status.ERROR + " cannot proceed further";
- throw new RequestFailedException("Waiting for State Change", msg, HttpStatus.CONFLICT_409, server);
- } else {
server.waitForStateChange(pollInterval, timeout, desiredStates);
if ((server.getStatus().equals(Server.Status.RUNNING)) || (server.getStatus().equals(Server.Status.READY))) {
status = true;
}
logger.info(server.getStatus() + " status ");
- }
if (status) {
logger.info("Done Trying " + rc.getAttempts() + " attempts");
break;