From 8d0eb7ff441fbf6f6927b2d2a33c0a442c2fafec Mon Sep 17 00:00:00 2001 From: Tomek Kaminski Date: Thu, 22 Feb 2018 16:51:03 +0100 Subject: EELF logging with error codes Introduced error codes in error logging for compilancy with ONAP logging guidelines Change-Id: If0418a1ea8d91ea84be251df10ca81402fb78b41 Issue-ID: APPC-428 Signed-off-by: Tomek Kaminski --- appc-common/src/main/java/org/onap/appc/i18n/Msg.java | 17 ++++++++++++++++- .../org/onap/appc/i18n/MessageResources.properties | 17 +++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) (limited to 'appc-common/src') diff --git a/appc-common/src/main/java/org/onap/appc/i18n/Msg.java b/appc-common/src/main/java/org/onap/appc/i18n/Msg.java index 2f22a692a..732628db9 100644 --- a/appc-common/src/main/java/org/onap/appc/i18n/Msg.java +++ b/appc-common/src/main/java/org/onap/appc/i18n/Msg.java @@ -817,7 +817,22 @@ public enum Msg implements EELFResolvableErrorEnum { * Unsupported identity service version, unable to retrieve ServiceCatalog * for identity service {0} */ - IAAS_UNSUPPORTED_IDENTITY_SERVICE + IAAS_UNSUPPORTED_IDENTITY_SERVICE, + + /** + * Sftp data transfer failed on connection to host {0} with user {1} for {2} operation, reason : {3} + */ + SFTP_TRANSFER_FAILED, + + /** + * Ssh session with host {0} has timed out during command {1} execution + */ + SSH_CONNECTION_TIMEOUT, + + /** + * Could not configure existing ssh session, reason: {0} + */ + SSH_SESSION_CONFIG_ERROR ; /* * Static initializer to ensure the resource bundles for this class are loaded... diff --git a/appc-common/src/main/resources/org/onap/appc/i18n/MessageResources.properties b/appc-common/src/main/resources/org/onap/appc/i18n/MessageResources.properties index a38a9255d..85598c734 100644 --- a/appc-common/src/main/resources/org/onap/appc/i18n/MessageResources.properties +++ b/appc-common/src/main/resources/org/onap/appc/i18n/MessageResources.properties @@ -1030,3 +1030,20 @@ IAAS_UNSUPPORTED_IDENTITY_SERVICE=APPC0163E|\ are v2 and v3. If a support for a new version in required contact development.|\ This message indicates that a request was made to connect to an unsupported version of \ identity service. + +SFTP_TRANSFER_FAILED=APPC0164E|\ + Sftp data transfer failed on connection to host {0} with user {1} for {2} operation, reason : {3}|\ + Correct the cause of the failure as indicated by the reason and retry.|\ + This message indicates that a failure occured during data transfer over sftp connection.\ + The reason returned by the target instance is included in the message. + +SSH_CONNECTION_TIMEOUT=APPC0165E|\ + Ssh session with host {0} has timed out during command {1} execution|\ + Check connection to host and validate executed command.|\ + The APPC tried to execute ssh command on specified host, and the execution took longer time than expected. + +SSH_SESSION_CONFIG_ERROR=APPC0166E|\ + Could not configure existing ssh session, reason: {0}|\ + Correct the cause of the failure as indicated by the reason.|\ + This message indicates that additional configuration for already opened ssh session has failed.\ + The reason returned by the session provider is included in the message. \ No newline at end of file -- cgit 1.2.3-korg