mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix migration of VM with volume on Ubuntu (#6116)
* Fix migration of VM with volume on Ubuntu * address comment
This commit is contained in:
parent
4be99fe971
commit
f8b648b938
@ -82,10 +82,12 @@ public class KvmNonManagedStorageDataMotionStrategy extends StorageSystemDataMot
|
||||
*/
|
||||
@Override
|
||||
protected StrategyPriority internalCanHandle(Map<VolumeInfo, DataStore> volumeMap, Host srcHost, Host destHost) {
|
||||
if (super.internalCanHandle(volumeMap, srcHost, destHost) != StrategyPriority.CANT_HANDLE
|
||||
|| canHandleKVMNonManagedLiveNFSStorageMigration(volumeMap, srcHost, destHost) != StrategyPriority.CANT_HANDLE) {
|
||||
if (super.internalCanHandle(volumeMap, srcHost, destHost) != StrategyPriority.CANT_HANDLE) {
|
||||
return StrategyPriority.CANT_HANDLE;
|
||||
}
|
||||
if (canHandleKVMNonManagedLiveNFSStorageMigration(volumeMap, srcHost, destHost) != StrategyPriority.CANT_HANDLE) {
|
||||
return StrategyPriority.HYPERVISOR;
|
||||
}
|
||||
|
||||
Set<VolumeInfo> volumeInfoSet = volumeMap.keySet();
|
||||
for (VolumeInfo volumeInfo : volumeInfoSet) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user