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 d30d5644bb)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Likitha Shetty 2015-02-11 16:10:50 +05:30 committed by Rohit Yadav
parent 55f2e45d14
commit 326bb3e0a4
1 changed files with 1 additions and 0 deletions

View File

@ -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());