diff options
author | Steve Smokowski <ss835w@att.com> | 2020-01-30 19:08:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-30 19:08:38 +0000 |
commit | b06b1e355c7f4d4d9c74c88227f67c61841a2b0d (patch) | |
tree | 0dae55975c53c0c8efcf086bba2901e3d17cf3ef /adapters/mso-adapter-utils/src/main | |
parent | e13b7b2b54a213b746494b910dd052335f5335bb (diff) | |
parent | 758fe11d20c544926a6a816c0c85b8e3174ab649 (diff) |
Merge "- Include stack Status Reason when rollback is"
Diffstat (limited to 'adapters/mso-adapter-utils/src/main')
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoHeatUtils.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoHeatUtils.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoHeatUtils.java index 16639d9166..92b8cec83b 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoHeatUtils.java +++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/MsoHeatUtils.java @@ -291,8 +291,10 @@ public class MsoHeatUtils extends MsoCommonUtils implements VduPlugin { if (!backout) { logger.info("Status is not CREATE_COMPLETE, stack deletion suppressed"); stackCreationFailed = true; - throw new StackCreationException("Stack rollback suppressed, stack not deleted", - stackCreationFailed, stackRollbackFailed); + String errorMessage = + "Stack Creation Failed Openstack Status: " + stack.getStackStatus() + " Status Reason: " + + stack.getStackStatusReason() + ". Stack rollback suppressed, stack not deleted"; + throw new StackCreationException(errorMessage, stackCreationFailed, stackRollbackFailed); } else { logger.info("Status is not CREATE_COMPLETE, stack deletion will be executed"); stackCreationFailed = true; |