sureshanaparti commented on a change in pull request #5410:
URL: https://github.com/apache/cloudstack/pull/5410#discussion_r724042728



##########
File path: 
engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java
##########
@@ -2947,12 +2947,25 @@ protected void 
createStoragePoolMappingsForVolumes(VirtualMachineProfile profile
             
executeManagedStorageChecksWhenTargetStoragePoolNotProvided(targetHost, 
currentPool, volume);
             if (ScopeType.HOST.equals(currentPool.getScope()) || 
isStorageCrossClusterMigration(plan.getClusterId(), currentPool)) {
                 createVolumeToStoragePoolMappingIfPossible(profile, plan, 
volumeToPoolObjectMap, volume, currentPool);
-            } else {
+            } else if (shouldMapVolume(profile, volume, currentPool)){
                 volumeToPoolObjectMap.put(volume, currentPool);
             }
         }
     }
 
+    /**
+     * Returns true if it should map the volume for a storage pool to migrate.
+     * <br><br>
+     * Some context: VMware migration workflow requires all volumes to be 
mapped (even if volume stays on its current pool);

Review comment:
       @GabrielBrascher Tested the following scenarios with XenServer 7.1.0, no 
issues observed in migration. All passed.
   
   **1. VM With local Root disk**
   (i) Without volumes mapping
   (ii) With ROOT volume mapping
   
   **2. VM With local Root disk + Shared (NFS) DATA disk**
   (i) Without volumes mapping
   (ii) With ROOT volume mapping
   (iii) With DATA volume mapping
   (iv) With ROOT and DATA volumes mapping




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to