cloudstack-mirror/server/src/main/java/com/cloud/storage
Abhishek Kumar b2db8979f2 server: fix for respecting secondary storage threshold limit (#3480)
Retrieval of an image store using ImageStoreProviderManager has been refactored by introducing three different methods,
DataStore getRandomImageStore(List<DataStore> imageStores);
To get an image store for reading purpose. Threshold capacity check will not be used here.
DataStore getImageStoreWithFreeCapacity(List<DataStore> imageStores);
To get an image store for reading purpose. Threshold capacity check will be used here and the store with max free space will be returned. If no store with filled storage less than the threshold is found, the NULL value will be returned.
List<DataStore> listImageStoresWithFreeCapacity(List<DataStore> imageStores);
To get a list of image stores for writing purpose which fulfills threshold capacity check.

Correspondingly DataStoreManager methods have been refactored to return similar values for a given zone.

Fixes #3287 - NULL value will be returned when secondary storage is needed for writing but there is not store with free space.
Fixes #3041 - Rather than returning random secondary storage for writing, storage with max. free space will be returned.
Fixes #3478 - For migration on VMware, all writable secondary storage will be mounted while preparation.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2019-07-31 15:37:59 +05:30
..
download CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
listener server: publish volume resize event for volumes (#3219) 2019-06-21 13:28:08 +05:30
monitor CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
resource CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
secondary CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
snapshot kvm: Add ceph RBD snapshot rollback (#3502) 2019-07-23 19:40:56 +05:30
upload server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30
CreateSnapshotPayload.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
ImageStoreDetailsUtil.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
ImageStoreUploadMonitor.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
ImageStoreUploadMonitorImpl.java storage: post process locally uploaded multi-disk ova template (#3215) 2019-06-05 23:07:40 +05:30
LocalStoragePoolListener.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
OCFS2Manager.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
OCFS2ManagerImpl.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
RegisterVolumePayload.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
ResizeVolumePayload.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
StorageManagerImpl.java kvm: live storage migration intra cluster from NFS source and destination (#2983) 2019-06-10 15:35:26 +05:30
StoragePoolAutomation.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
StoragePoolAutomationImpl.java CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
TemplateProfile.java CLOUDSTACK-10362: Change the "getXXX" method names to "isXXX" (#2600) 2018-05-09 21:44:40 +05:30
VolumeApiServiceImpl.java server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30