From d30d5644bb59898ac60884280bd0767bf429ede8 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. --- .../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 4ff28d72a8b..325c269e27c 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 @@ -833,6 +833,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());