From 35d5de6118d9fa3a45a4e024d083decacea07479 Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 8 Nov 2022 12:22:43 +0000 Subject: Improve error reporting when onboarding a VSP and storage is full Signed-off-by: Vasyl Razinkov Change-Id: Id349e26c48b9047ab746aa90e8ad88e0296a8b6f Issue-ID: SDC-4256 --- .../sdcrests/vsp/rest/services/OrchestrationTemplateCandidateImpl.java | 2 +- .../src/main/java/org/openecomp/sdc/common/errors/Messages.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'openecomp-be') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/OrchestrationTemplateCandidateImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/OrchestrationTemplateCandidateImpl.java index c4b55e5b4b..acbb0cdd03 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/OrchestrationTemplateCandidateImpl.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/OrchestrationTemplateCandidateImpl.java @@ -236,7 +236,7 @@ public class OrchestrationTemplateCandidateImpl implements OrchestrationTemplate artifactInfo = artifactStorageManager.upload(vspId, versionId, inputStream); } catch (final Exception e) { deleteTempFile(tempArtifactPath); - LOGGER.error("Package Size Reducer not configured", e); + LOGGER.error("Failed to upload artifact", e); throw new ArtifactStorageException(ERROR_HAS_OCCURRED_WHILE_PERSISTING_THE_ARTIFACT.formatMessage(filename)); } diff --git a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/errors/Messages.java b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/errors/Messages.java index 2b97335f8e..a62e9f7130 100644 --- a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/errors/Messages.java +++ b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/errors/Messages.java @@ -212,7 +212,7 @@ public enum Messages { FAILED_TO_UPDATE_LAST_SEEN_NOTIFICATION("Failed to update last seen notification for user %s"), FAILED_TO_VERIFY_SIGNATURE("Could not verify signature of signed package."), EXTERNAL_CSAR_STORE_CONFIGURATION_FAILURE_MISSING("externalCsarStore configuration failure, missing '%s'"), - ERROR_HAS_OCCURRED_WHILE_PERSISTING_THE_ARTIFACT("An error has occurred while persisting the artifact: %s"), + ERROR_HAS_OCCURRED_WHILE_PERSISTING_THE_ARTIFACT("Write '%s' to object storage failed, check object store logs for details, possibly due to insufficient storage capacity"), ERROR_HAS_OCCURRED_WHILE_REDUCING_THE_ARTIFACT_SIZE("An error has occurred while reducing the artifact's size: %s"), UNEXPECTED_PROBLEM_HAPPENED_WHILE_GETTING("An unexpected problem happened while getting '%s'"), PACKAGE_REDUCER_NOT_CONFIGURED("Could not process the package. Package reducer is not configured"); -- cgit 1.2.3-korg