mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-8964: Can't create volume from snapshot of a removed volume
This issue happens on KVM as well. This is because the volume info is missing in the CopyCommand once the volume has been removed. When the KVM agent tries to process the command, it will throws a NPE.
This commit is contained in:
parent
ecc2e2f39d
commit
bef92052ee
@ -77,7 +77,7 @@ public class VolumeDataFactoryImpl implements VolumeDataFactory {
|
||||
|
||||
@Override
|
||||
public VolumeInfo getVolume(long volumeId) {
|
||||
VolumeVO volumeVO = volumeDao.findById(volumeId);
|
||||
VolumeVO volumeVO = volumeDao.findByIdIncludingRemoved(volumeId);
|
||||
if (volumeVO == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user