Skip to content

Commit e7ba46b

Browse files
anshulgangwardevdeep
authored andcommitted
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.
1 parent 64153a4 commit e7ba46b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎server/src/com/cloud/storage/VolumeApiServiceImpl.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,9 @@ private boolean needMoveVolume(VolumeVO rootVolumeOfVm, VolumeInfo volume) {
19721972
}
19731973
if (storeForDataStoreScope.getScopeId().equals(vmClusterId)) {
19741974
return false;
1975-
}
1975+
} else {
1976+
return true;
1977+
}
19761978
} else if (storeForDataStoreScope.getScopeType() == ScopeType.HOST
19771979
&& (storeForRootStoreScope.getScopeType() == ScopeType.CLUSTER || storeForRootStoreScope.getScopeType() == ScopeType.ZONE)) {
19781980
Long hostId = _vmInstanceDao.findById(rootVolumeOfVm.getInstanceId()).getHostId();

0 commit comments

Comments
 (0)