[BugFix:
modify the rollback of the flow  "create-memory-volume-if-with-memory"
@@ -2490,10 +2490,16 @@ public class VolumeBase implements Volume {
dmsg.setUuid(memoryVolume.getUuid());
dmsg.setDeletionPolicy(VolumeDeletionPolicyManager.VolumeDeletionPolicy.Direct.toString());
bus.makeTargetServiceIdByResourceUuid(dmsg, VolumeConstant.SERVICE_ID, memoryVolume.getUuid());
- bus.send(dmsg);
-
+ bus.send(dmsg, new CloudBusCallBack(trigger) {
+ @Override
+ public void run(MessageReply reply) {
+ if(!reply.isSuccess()) {
+ logger.debug(String.format("failed to delete volume[uuid: %s]", memoryVolume.getUuid()));
+ }
trigger.rollback();
}
+ });
+ }
}).then(new NoRollbackFlow() {
String __name__ = "instantiate-memory-volume-if-with-memory";
