Improve error reporting when onboarding a VSP and storage is full 45/132045/1
authorvasraz <vasyl.razinkov@est.tech>
Tue, 8 Nov 2022 12:22:43 +0000 (12:22 +0000)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Tue, 8 Nov 2022 12:25:53 +0000 (12:25 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Id349e26c48b9047ab746aa90e8ad88e0296a8b6f
Issue-ID: SDC-4256

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
openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/errors/Messages.java

index c4b55e5..acbb0cd 100644 (file)
@@ -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));
         }
 
index 2b97335..a62e9f7 100644 (file)
@@ -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");