From 326bb3e0a4d876b38d78b7f7bebe0f6a08863866 Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Wed, 11 Feb 2015 16:10:50 +0530 Subject: [PATCH] CLOUDSTACK-8320. Upon a failed migration, a dummy volume is created which remains in 'Expunging' state. Set destination volume path as NULL while duplicating volume during migration. If migration fails, destination volume will be marked as removed. And if migration succeeds, volume path will be rightly updated. (cherry picked from commit d30d5644bb59898ac60884280bd0767bf429ede8) Signed-off-by: Rohit Yadav --- .../org/apache/cloudstack/storage/volume/VolumeServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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 02b4095218d..b0555e2cd59 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 @@ -829,6 +829,7 @@ public class VolumeServiceImpl implements VolumeService { VolumeVO newVol = new VolumeVO(volume); newVol.setInstanceId(null); newVol.setChainInfo(null); + newVol.setPath(null); newVol.setFolder(folder); newVol.setPodId(pool.getPodId()); newVol.setPoolId(pool.getId());