|
20 | 20 | --; |
21 | 21 |
|
22 | 22 |
|
23 | | --- health check status as enum |
24 | | -CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('router_health_check', 'check_result', 'check_result', 'varchar(16) NOT NULL COMMENT "check executions result: SUCCESS, FAILURE, WARNING, UNKNOWN"'); |
25 | | - |
26 | | --- Increase length of scripts_version column to 128 due to md5sum to sha512sum change |
27 | | -CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('cloud.domain_router', 'scripts_version', 'scripts_version', 'VARCHAR(128)'); |
28 | | - |
29 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.snapshot_policy','domain_id', 'BIGINT(20) DEFAULT NULL'); |
30 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.snapshot_policy','account_id', 'BIGINT(20) DEFAULT NULL'); |
31 | | - |
32 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.backup_schedule','domain_id', 'BIGINT(20) DEFAULT NULL'); |
33 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.backup_schedule','account_id', 'BIGINT(20) DEFAULT NULL'); |
34 | | - |
35 | | --- Increase the cache_mode column size from cloud.disk_offering table |
36 | | -CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('cloud.disk_offering', 'cache_mode', 'cache_mode', 'varchar(18) DEFAULT "none" COMMENT "The disk cache mode to use for disks created with this offering"'); |
37 | | - |
38 | | --- Add uuid column to ldap_configuration table |
39 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.ldap_configuration', 'uuid', 'VARCHAR(40) NOT NULL'); |
40 | | - |
41 | | --- Populate uuid for existing rows where uuid is NULL or empty |
42 | | -UPDATE `cloud`.`ldap_configuration` SET uuid = UUID() WHERE uuid IS NULL OR uuid = ''; |
43 | | - |
44 | | --- Add the column cross_zone_instance_creation to cloud.backup_repository. if enabled it means that new Instance can be created on all Zones from Backups on this Repository. |
45 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.backup_repository', 'cross_zone_instance_creation', 'TINYINT(1) DEFAULT NULL COMMENT ''Backup Repository can be used for disaster recovery on another zone'''); |
46 | | - |
47 | | --- Updated display to false for password/token detail of the storage pool details |
48 | | -UPDATE `cloud`.`storage_pool_details` SET display = 0 WHERE name LIKE '%password%'; |
49 | | -UPDATE `cloud`.`storage_pool_details` SET display = 0 WHERE name LIKE '%token%'; |
50 | | - |
51 | | --- Add csi_enabled column to kubernetes_cluster table to indicate if the cluster is using csi or not |
52 | | -CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.kubernetes_cluster', 'csi_enabled', 'TINYINT(1) unsigned NOT NULL DEFAULT 0 COMMENT "true if kubernetes cluster is using csi, false otherwise" '); |
53 | | - |
54 | | --- VMware to KVM migration improvements |
55 | | -CREATE TABLE IF NOT EXISTS `cloud`.`import_vm_task`( |
56 | | - `id` bigint unsigned NOT NULL auto_increment COMMENT 'id', |
57 | | - `uuid` varchar(40), |
58 | | - `zone_id` bigint unsigned NOT NULL COMMENT 'Zone ID', |
59 | | - `account_id` bigint unsigned NOT NULL COMMENT 'Account ID', |
60 | | - `user_id` bigint unsigned NOT NULL COMMENT 'User ID', |
61 | | - `vm_id` bigint unsigned COMMENT 'VM ID', |
62 | | - `display_name` varchar(255) COMMENT 'Display VM Name', |
63 | | - `vcenter` varchar(255) COMMENT 'VCenter', |
64 | | - `datacenter` varchar(255) COMMENT 'VCenter Datacenter name', |
65 | | - `source_vm_name` varchar(255) COMMENT 'Source VM name on vCenter', |
66 | | - `convert_host_id` bigint unsigned COMMENT 'Convert Host ID', |
67 | | - `import_host_id` bigint unsigned COMMENT 'Import Host ID', |
68 | | - `step` varchar(20) COMMENT 'Importing VM Task Step', |
69 | | - `state` varchar(20) COMMENT 'Importing VM Task State', |
70 | | - `description` varchar(255) COMMENT 'Importing VM Task Description', |
71 | | - `duration` bigint unsigned COMMENT 'Duration in milliseconds for the completed tasks', |
72 | | - `created` datetime NOT NULL COMMENT 'date created', |
73 | | - `updated` datetime COMMENT 'date updated if not null', |
74 | | - `removed` datetime COMMENT 'date removed if not null', |
75 | | - PRIMARY KEY (`id`), |
76 | | - CONSTRAINT `fk_import_vm_task__zone_id` FOREIGN KEY `fk_import_vm_task__zone_id` (`zone_id`) REFERENCES `data_center`(`id`) ON DELETE CASCADE, |
77 | | - CONSTRAINT `fk_import_vm_task__account_id` FOREIGN KEY `fk_import_vm_task__account_id` (`account_id`) REFERENCES `account`(`id`) ON DELETE CASCADE, |
78 | | - CONSTRAINT `fk_import_vm_task__user_id` FOREIGN KEY `fk_import_vm_task__user_id` (`user_id`) REFERENCES `user`(`id`) ON DELETE CASCADE, |
79 | | - CONSTRAINT `fk_import_vm_task__vm_id` FOREIGN KEY `fk_import_vm_task__vm_id` (`vm_id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE, |
80 | | - CONSTRAINT `fk_import_vm_task__convert_host_id` FOREIGN KEY `fk_import_vm_task__convert_host_id` (`convert_host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE, |
81 | | - CONSTRAINT `fk_import_vm_task__import_host_id` FOREIGN KEY `fk_import_vm_task__import_host_id` (`import_host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE, |
82 | | - INDEX `i_import_vm_task__zone_id`(`zone_id`) |
83 | | -) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
84 | | - |
85 | | -CALL `cloud`.`INSERT_EXTENSION_IF_NOT_EXISTS`('MaaS', 'Baremetal Extension for Canonical MaaS written in Python', 'MaaS/maas.py'); |
86 | | -CALL `cloud`.`INSERT_EXTENSION_DETAIL_IF_NOT_EXISTS`('MaaS', 'orchestratorrequirespreparevm', 'true', 0); |
87 | | - |
88 | | -CALL `cloud`.`IDEMPOTENT_DROP_UNIQUE_KEY`('counter', 'uc_counter__provider__source__value'); |
89 | | -CALL `cloud`.`IDEMPOTENT_ADD_UNIQUE_KEY`('cloud.counter', 'uc_counter__provider__source__value__removed', '(provider, source, value, removed)'); |
90 | | - |
91 | | --- NIMBLE - mudar para resource types talvez? iac_resource_types |
92 | | -CREATE TABLE IF NOT EXISTS `cloud`.`iac_templates_profile` ( |
| 23 | +-- NIMBLE |
| 24 | +CREATE TABLE IF NOT EXISTS `cloud`.`iac_resource_types` ( |
93 | 25 | `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, |
94 | 26 | `uuid` VARCHAR(40) UNIQUE, |
95 | 27 | `name` VARCHAR(100) NOT NULL COMMENT 'Profile''s element name.', |
96 | | --- `type` VARCHAR(100) NOT NULL COMMENT 'Profile''s element type. Valid values are: `CAPABILITY`, `RELATIONSHIP` and `NODE`.', |
97 | 28 | `element_content` TEXT NOT NULL COMMENT 'Profile''s element content.', |
98 | 29 | PRIMARY KEY (`id`) |
99 | 30 | ); |
0 commit comments