mirror of https://github.com/apache/cloudstack.git
Fix migration of VM with volume on Ubuntu (#6116)
* Fix migration of VM with volume on Ubuntu
* address comment
(cherry picked from commit f8b648b938)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
cad9332082
commit
fe7a6ceafd
|
|
@ -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…
Reference in New Issue