From 569bbfe5855f005d1cb5c3660222fc59bfb2526c Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 16 Feb 2011 15:47:05 -0800 Subject: [PATCH] bug 8513: creating volume from snapshot depends on the original volume status 8513: resolved fixed --- server/src/com/cloud/storage/StorageManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index 350c5573f57..cbd2264f0c3 100755 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -1447,7 +1447,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag throw new ServerApiException(BaseCmd.PARAM_ERROR, "unable to find a snapshot with id " + snapshotId); } - VolumeVO vol = _volsDao.findById(snapshotCheck.getVolumeId()); + VolumeVO vol = _volsDao.findByIdIncludingRemoved(snapshotCheck.getVolumeId()); zoneId = vol.getDataCenterId(); diskOfferingId = vol.getDiskOfferingId(); size = vol.getSize();