mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
schema,engine-schema: explicit VMware 8.0.0.2, 8.0.0.3 support, logs (#8444)
Fixes #8412 Add support for 8.0.0.2 explicitly to prevent falling over to the parent version Adds log when hypervisor capabilities fail over to the parent version --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
5c32a0edba
commit
514d2c2a26
@ -75,11 +75,17 @@ public class HypervisorCapabilitiesDaoImpl extends GenericDaoBase<HypervisorCapa
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user