mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
bdd28a45ed
commit
d30d5644bb
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue