mirror of
https://github.com/apache/cloudstack
synced 2026-08-29 00:38:51 +00:00
CLOUDSTACK-6968: Allowing cluster scope volumes to attach to any VM. If migration is
needed then first they will be migrated to appropriate cluster before attaching.
This commit is contained in:
parent
64153a4371
commit
e7ba46b5f7
@ -1972,7 +1972,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
||||
}
|
||||
if (storeForDataStoreScope.getScopeId().equals(vmClusterId)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
} else if (storeForDataStoreScope.getScopeType() == ScopeType.HOST
|
||||
&& (storeForRootStoreScope.getScopeType() == ScopeType.CLUSTER || storeForRootStoreScope.getScopeType() == ScopeType.ZONE)) {
|
||||
Long hostId = _vmInstanceDao.findById(rootVolumeOfVm.getInstanceId()).getHostId();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user