From 6c649ce3ae3e4b3c785e98ef0da8da4410c7dad5 Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Thu, 26 Mar 2015 17:25:12 +0530 Subject: [PATCH] CLOUDSTACK-8411. Unable to delete an uploaded volume after CCP fails to attach the volume to a VM. Correctly update the status of an uploaded volume upon failure to attach it to a VM. (cherry picked from commit 10a106f5d86a7f6786b94a7298a5c63c32eab66b) Signed-off-by: Rohit Yadav --- .../org/apache/cloudstack/storage/volume/VolumeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java index b0555e2cd59..34835443f47 100644 --- a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java +++ b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java @@ -889,7 +889,7 @@ public class VolumeServiceImpl implements VolumeService { AsyncCallFuture future = context.future; VolumeApiResult res = new VolumeApiResult(destVolume); try { - if (res.isFailed()) { + if (result.isFailed()) { destVolume.processEvent(Event.OperationFailed); srcVolume.processEvent(Event.OperationFailed); res.setResult(result.getResult());