cloudstack/engine
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
..
api server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30
components-api Merge branch 'master' into storage-offering-domains-zones 2019-06-18 12:52:34 +05:30
network Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
orchestration Merge branch 'master' into storage-offering-domains-zones 2019-06-28 17:33:41 +05:30
schema server: filter volumes by host when refreshing stats (#3486) 2019-07-24 11:59:51 +05:30
service Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
storage server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30
pom.xml Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00