[
https://issues.apache.org/jira/browse/CLOUDSTACK-7982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283296#comment-16283296
]
ASF GitHub Bot commented on CLOUDSTACK-7982:
--------------------------------------------
DaanHoogland commented on a change in pull request #1709: CLOUDSTACK-7982: KVM
live migration with local storage
URL: https://github.com/apache/cloudstack/pull/1709#discussion_r155556899
##########
File path:
engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
##########
@@ -1104,6 +1091,14 @@ public void prepareForMigration(VirtualMachineProfile
vm, DeployDestination dest
disk.setDetails(getDetails(volumeInfo, dataStore));
vm.addDisk(disk);
+
+ // Ensure that the template is available on the destination host
+ if (vm.getType() == VirtualMachine.Type.User &&
vol.getVolumeType().equals(Type.ROOT)) {
+ VMTemplateVO vmTemplate =
_tmpltDao.findById(vol.getTemplateId());
+ StoragePool destStoragePool =
storageMgr.findLocalStorageOnHost(dest.getHost().getId());
Review comment:
so this is where we need to extend if we want to make this work for shared
storage as well.
In fact findLocalStorageOnHost assumes StoragePoolType.LVM (the most likely
candidate) while even localstorage has more types.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Storage live migration support for KVM
> --------------------------------------
>
> Key: CLOUDSTACK-7982
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7982
> Project: CloudStack
> Issue Type: Improvement
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Wei Zhou
> Assignee: Marc-Aurèle Brothier
> Fix For: Future
>
>
> Currently it supports Xenserver, Vmware, Hyper-V, but not KVM.
> We need to add the implementation for KVM.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)