diff --git a/modules/deployment/src/main/java/org/eclipse/xpanse/modules/deployment/DeployService.java b/modules/deployment/src/main/java/org/eclipse/xpanse/modules/deployment/DeployService.java index e550c7a99..25f5782c1 100644 --- a/modules/deployment/src/main/java/org/eclipse/xpanse/modules/deployment/DeployService.java +++ b/modules/deployment/src/main/java/org/eclipse/xpanse/modules/deployment/DeployService.java @@ -462,7 +462,13 @@ public void rollbackOnDeploymentFailure(DeployTask deployTask, DeployServiceEntity deployServiceEntity) { log.info("Performing rollback of already provisioned resources."); if (CollectionUtils.isEmpty(deployServiceEntity.getDeployResourceList())) { - log.info("No resources need to destroy."); + log.info("No resources need to destroy, the rollback task success."); + DeployResult rollbackResult = new DeployResult(); + rollbackResult.setOrderId(deployTask.getOrderId()); + rollbackResult.setServiceId(deployTask.getServiceId()); + rollbackResult.setIsTaskSuccessful(true); + rollbackResult.setState(DeployerTaskStatus.ROLLBACK_SUCCESS); + deployResultManager.updateServiceOrderTaskWithDeployResult(rollbackResult, null); return; } log.info("Rollback to destroy created resources of the service {}",