Misleading err msg failed to rebuild for snapshot. 97/65297/1
authorModaboina, Kusumakumari (km583p) <km583p@us.att.com>
Fri, 7 Sep 2018 19:32:46 +0000 (15:32 -0400)
committerModaboina, Kusumakumari (km583p) <km583p@us.att.com>
Fri, 7 Sep 2018 19:39:07 +0000 (15:39 -0400)
Issue-ID: APPC-1196
Change-Id: I017528097939c89794afb8753db429886269c7c8
Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java
appc-core/appc-common-bundle/java/org/onap/appc/i18n/Msg.java
appc-core/appc-common-bundle/src/main/java/org/onap/appc/i18n/Msg.java
appc-core/appc-common-bundle/src/main/resources/org/onap/appc/i18n/MessageResources.properties

index ba0160c..2bf060a 100644 (file)
@@ -172,7 +172,7 @@ public class CreateSnapshot extends ProviderServerOperation {
                     SnapShot = createSnapshot(RcContext, server);
                     doSuccess(RcContext);
                 } else {
-                    msg = EELFResourceManager.format(Msg.REBUILD_SERVER_FAILED, server.getName(), server.getId(),
+                    msg = EELFResourceManager.format(Msg.IMAGE_SERVICE_FAILED, server.getName(), server.getId(),
                             "Accessing Image Service Failed");
                     logger.error(msg);
                     metricsLogger.error(msg);
index d60e259..ad696cd 100644 (file)
@@ -827,6 +827,11 @@ public enum Msg implements EELFResolvableErrorEnum {
      * Ssh session with host {0} has timed out during command {1} execution
      */
     SSH_CONNECTION_TIMEOUT,
+    
+    /**
+     *Connecting to image service {0}failed
+     */
+    IMAGE_SERVICE_FAILED,
 
     /**
      * Could not configure existing ssh session, reason: {0}
index d030959..2fb6db8 100644 (file)
@@ -832,6 +832,11 @@ public enum Msg implements EELFResolvableErrorEnum {
      */
     SSH_CONNECTION_TIMEOUT,
 
+    /**
+     *Connecting to image service {0}failed
+     */
+    IMAGE_SERVICE_FAILED,
+
     /**
      * Could not configure existing ssh session, reason: {0}
      */
index 323476e..0a6e2cd 100644 (file)
@@ -1058,3 +1058,8 @@ REBOOT_SERVER=APPC0167I|\
   No resolution required|\
   A graph has invoked the IAAS adapter and has requested the reboot of a server.  The \
     properties that govern the request are echoed immediately following this message.
+
+IMAGE_SERVICE_FAILED=APPC0157E|\
+   IAAS Adapter image service fail|\
+   Connection to provider OpenStackProvider service Image at {0} failed.|\
+   Correct the cause of the failure as indicated by the reason.