mirror of https://github.com/apache/cloudstack.git
Fix storage cleanup corner case preventing VM deletion (#5575)
* Fix storage cleanup corner case * Improve deletion * Refactor
This commit is contained in:
parent
9306d40383
commit
f4767713ac
|
|
@ -1510,6 +1510,7 @@ public class VolumeServiceImpl implements VolumeService {
|
|||
srcVolume.processEvent(Event.OperationSuccessed);
|
||||
destVolume.processEvent(Event.MigrationCopySucceeded, result.getAnswer());
|
||||
volDao.updateUuid(srcVolume.getId(), destVolume.getId());
|
||||
volDao.detachVolume(srcVolume.getId());
|
||||
try {
|
||||
destroyVolume(srcVolume.getId());
|
||||
srcVolume = volFactory.getVolume(srcVolume.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue