diff --git a/engine/schema/src/main/java/com/cloud/hypervisor/dao/HypervisorCapabilitiesDaoImpl.java b/engine/schema/src/main/java/com/cloud/hypervisor/dao/HypervisorCapabilitiesDaoImpl.java index e8272825213b..a4ec0a663609 100644 --- a/engine/schema/src/main/java/com/cloud/hypervisor/dao/HypervisorCapabilitiesDaoImpl.java +++ b/engine/schema/src/main/java/com/cloud/hypervisor/dao/HypervisorCapabilitiesDaoImpl.java @@ -75,11 +75,17 @@ public HypervisorCapabilitiesVO findByHypervisorTypeAndVersion(HypervisorType hy sc.setParameters("hypervisorType", hypervisorType); sc.setParameters("hypervisorVersion", hypervisorVersion); HypervisorCapabilitiesVO result = findOneBy(sc); + String parentVersion = CloudStackVersion.getVMwareParentVersion(hypervisorVersion); if (result != null || !HypervisorType.VMware.equals(hypervisorType) || - CloudStackVersion.getVMwareParentVersion(hypervisorVersion) == null) { + parentVersion == null) { return result; } - sc.setParameters("hypervisorVersion", CloudStackVersion.getVMwareParentVersion(hypervisorVersion)); + if (s_logger.isDebugEnabled()) { + s_logger.debug(String.format("Hypervisor capabilities for hypervisor: %s, version: %s can not be found. " + + "Trying to find capabilities for the parent version: %s", + hypervisorType, hypervisorVersion, parentVersion)); + } + sc.setParameters("hypervisorVersion", parentVersion); return findOneBy(sc); } diff --git a/engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql b/engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql index 15307353c3fd..a6f45c261ce2 100644 --- a/engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql +++ b/engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql @@ -319,3 +319,7 @@ CREATE TABLE `cloud_usage`.`bucket_statistics` ( -- Add remover account ID to quarantined IPs table. CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.quarantined_ips', 'remover_account_id', 'bigint(20) unsigned DEFAULT NULL COMMENT "ID of the account that removed the IP from quarantine, foreign key to `account` table"'); + +-- Explicitly add support for VMware 8.0b (8.0.0.2), 8.0c (8.0.0.3) +INSERT IGNORE INTO `cloud`.`hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, security_group_enabled, max_data_volumes_limit, max_hosts_per_cluster, storage_motion_supported, vm_snapshot_enabled) values (UUID(), 'VMware', '8.0.0.2', 1024, 0, 59, 64, 1, 1); +INSERT IGNORE INTO `cloud`.`hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, security_group_enabled, max_data_volumes_limit, max_hosts_per_cluster, storage_motion_supported, vm_snapshot_enabled) values (UUID(), 'VMware', '8.0.0.3', 1024, 0, 59, 64, 1, 1);