mirror of https://github.com/apache/cloudstack.git
Pass source and destination data to migrate volume command
This commit is contained in:
parent
d7862626be
commit
d5070af467
|
|
@ -545,7 +545,7 @@ public class AncientDataMotionStrategy implements DataMotionStrategy {
|
|||
VolumeInfo volume = (VolumeInfo)srcData;
|
||||
StoragePool srcPool = (StoragePool)dataStoreMgr.getDataStore(srcData.getDataStore().getId(), DataStoreRole.Primary);
|
||||
StoragePool destPool = (StoragePool)dataStoreMgr.getDataStore(destData.getDataStore().getId(), DataStoreRole.Primary);
|
||||
MigrateVolumeCommand command = new MigrateVolumeCommand(volume.getId(), volume.getPath(), destPool, volume.getAttachedVmName(), volume.getVolumeType(), waitInterval, volume.getChainInfo());
|
||||
MigrateVolumeCommand command = new MigrateVolumeCommand(srcData.getTO(), destData.getTO(), null, null, waitInterval);
|
||||
if (srcPool.getParent() != 0) {
|
||||
command.setContextParam(DiskTO.PROTOCOL_TYPE, Storage.StoragePoolType.DatastoreCluster.toString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue