cloudstack/plugins/hypervisors
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
..
baremetal server: add local ISO upload via UI (#3251) 2019-06-05 23:10:51 +05:30
hyperv server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30
kvm kvm: Allow Link Local Cidr (cloud0 interface) to be configured (#3500) 2019-07-25 12:13:39 +05:30
ovm Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
ovm3 Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
simulator master: travis and trillian smoketests fixes and stabilisation (#3476) 2019-07-12 17:27:49 +05:30
ucs Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
vmware server: fix for respecting secondary storage threshold limit (#3480) 2019-07-31 15:37:59 +05:30
xenserver server: export granular volume bytes and iops metrics (#3259) 2019-06-27 09:18:10 +05:30