Bug 8019: send snapshot commands to host that owns the VM

This commit is contained in:
Kelven Yang 2011-01-21 11:08:15 -08:00
parent d45f5cd5bf
commit cfb51ece25

View File

@ -2198,7 +2198,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
private boolean sendToVmResidesOn(StoragePoolVO storagePool, Command cmd) {
ClusterVO cluster = _clusterDao.findById(storagePool.getClusterId());
if ((cluster.getHypervisorType() == HypervisorType.KVM) &&
if ((cluster.getHypervisorType() == HypervisorType.KVM || cluster.getHypervisorType() == HypervisorType.VmWare) &&
((cmd instanceof ManageSnapshotCommand) ||
(cmd instanceof BackupSnapshotCommand))) {
return true;