fix 2711 in a dirty way
@@ -1076,12 +1076,13 @@ public class VolumeBase implements Volume {
sql = SQL.New("select vm " +
"from VmInstanceVO vm,PrimaryStorageClusterRefVO ref,PrimaryStorageEO ps " +
"where vm.state in (:vmStates) " +
- "and vm.hypervisorType not in (:hvTypes) " +
+ "and vm.hypervisorType <> :hvType " +
"and vm.clusterUuid = ref.clusterUuid " +
"and ref.primaryStorageUuid = ps.uuid " +
"and ps.state in (:psState) " +
"group by vm.uuid")
- .param("hvTypes", VolumeFormat.valueOf(VolumeConstant.VOLUME_FORMAT_VMTX).getHypervisorTypesSupportingThisVolumeFormatInString())
+ //TODO: this is a dirty fix, delete it when VMWare support DataVolume
+ .param("hvType", "ESX")
.param("psState",PrimaryStorageState.Enabled);
} else {
DebugUtils.Assert(false, String.format("should not reach here, volume[uuid:%s]", self.getUuid()));
