Fixed CLOUDSTACK-2189 Volume is stuck in resizing state Signed-off-by: Sateesh Chodapuneedi <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/756a4179 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/756a4179 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/756a4179 Branch: refs/heads/portablepublicip Commit: 756a4179e28b66fe42fec40c0b183907eab0dde2 Parents: 78ffb7a Author: Rajesh Battala <[email protected]> Authored: Mon May 6 17:53:01 2013 +0530 Committer: Sateesh Chodapuneedi <[email protected]> Committed: Mon May 13 14:41:00 2013 +0530 ---------------------------------------------------------------------- .../storage/volume/VolumeServiceImpl.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/756a4179/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java ---------------------------------------------------------------------- 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 b39502b..2625354 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 @@ -772,9 +772,8 @@ public class VolumeServiceImpl implements VolumeService { return future; } CreateVolumeContext<VolumeApiResult> context = new CreateVolumeContext<VolumeApiResult>(null, volume, future); - AsyncCallbackDispatcher<VolumeServiceImpl, CreateCmdResult> caller = AsyncCallbackDispatcher.create(this); - caller.setCallback(caller.getTarget().registerVolumeCallback(null, null)) - .setContext(context); + AsyncCallbackDispatcher<VolumeServiceImpl, CreateCmdResult> caller = AsyncCallbackDispatcher.create(this); + caller.setCallback(caller.getTarget().resizeVolumeCallback(caller, context)).setContext(context); volume.getDataStore().getDriver().resize(volume, caller); return future; }
