You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1544fcf
Browse filesBrowse the repository at this point in the historyBrowse files
Support migration between different PowerFlex clusters when connect on demand is enabled
- Prepare the PowerFlex/ScaleIO pool on the host when needed during the migration
- Register the PowerFlex/ScaleIO pool on agent if needed
- Fix live migration between PowerFlex/ScaleIO pools
if (targetHost != null && _poolHostDao.findByPoolHost(targetPool.getId(), targetHost.getId()) == null) {
3422
+
if (targetHost != null && !storageMgr.canHostAccessOrPrepareStoragePool(targetHost, targetPool)) {
3426
3423
thrownewCloudRuntimeException(
3427
3424
String.format("Cannot migrate the volume [%s] to the storage pool [%s] while migrating VM [%s] to target host [%s]. The host does not have access to the storage pool entered.",
if (targetHost != null && _poolHostDao.findByPoolHost(currentPool.getId(), targetHost.getId()) == null) {
3503
+
if (targetHost != null && !storageMgr.canHostAccessOrPrepareStoragePool(targetHost, currentPool)) {
3507
3504
thrownewCloudRuntimeException(String.format("The target host does not have access to the volume's managed storage pool. [volumeId=%s, storageId=%s, targetHostId=%s].", volume.getUuid(),
Copy file name to clipboardExpand all lines: engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java
Copy file name to clipboardExpand all lines: plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java
Copy file name to clipboardExpand all lines: plugins/storage/volume/scaleio/src/test/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriverTest.java
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,9 @@
30
30
importcom.cloud.host.Host;
31
31
importcom.cloud.host.HostVO;
32
32
importcom.cloud.host.dao.HostDao;
33
+
importcom.cloud.hypervisor.Hypervisor;
33
34
importcom.cloud.storage.Storage;
35
+
importcom.cloud.storage.StoragePool;
34
36
importcom.cloud.storage.Volume;
35
37
importcom.cloud.storage.VolumeVO;
36
38
importcom.cloud.storage.dao.VolumeDao;
@@ -597,4 +599,18 @@ public void testGetVolumeSizeRequiredOnPool() {
0 commit comments