mirror of https://github.com/apache/cloudstack.git
bug CS-15278: Download Volume fails in case of Multiple Secondary Storages. Correcting it to use the same secondary storage to copy the volume and creating the soft link
Reviewed-by: Kishan
This commit is contained in:
parent
a7b7465bec
commit
72f896044d
|
|
@ -2974,11 +2974,9 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
}
|
||||
|
||||
long accountId = volume.getAccountId();
|
||||
|
||||
String secondaryStorageURL = _storageMgr.getSecondaryStorageURL(zoneId);
|
||||
StoragePoolVO srcPool = _poolDao.findById(volume.getPoolId());
|
||||
List<HostVO> storageServers = _resourceMgr.listAllHostsInOneZoneByType(Host.Type.SecondaryStorage, zoneId);
|
||||
HostVO sserver = storageServers.get(0);
|
||||
HostVO sserver = _storageMgr.getSecondaryStorageHost(zoneId);
|
||||
String secondaryStorageURL = sserver.getStorageUrl();
|
||||
|
||||
List<UploadVO> extractURLList = _uploadDao.listByTypeUploadStatus(volumeId, Upload.Type.VOLUME, UploadVO.Status.DOWNLOAD_URL_CREATED);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue