Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/setup/db/db/schema-40to410.sql b/setup/db/db/schema-40to410.sql
- index 53b4a1a..24f6d4c 100644
- --- a/setup/db/db/schema-40to410.sql
- +++ b/setup/db/db/schema-40to410.sql
- @@ -345,7 +345,6 @@ CREATE TABLE `cloud`.`autoscale_policies` (
- `account_id` bigint unsigned NOT NULL,
- `duration` int unsigned NOT NULL,
- `quiet_time` int unsigned NOT NULL,
- - `last_quiet_time` datetime DEFAULT NULL,
- `action` varchar(15),
- `created` datetime NOT NULL COMMENT 'date created',
- `removed` datetime COMMENT 'date removed if not null',
- @@ -402,22 +401,10 @@ CREATE TABLE `cloud`.`autoscale_vmgroup_policy_map` (
- INDEX `i_autoscale_vmgroup_policy_map__vmgroup_id`(`vmgroup_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -CREATE TABLE `cloud`.`autoscale_vmgroup_vm_map` (
- - `id` bigint unsigned NOT NULL auto_increment,
- - `vmgroup_id` bigint unsigned NOT NULL,
- - `instance_id` bigint unsigned NOT NULL,
- - PRIMARY KEY (`id`),
- - CONSTRAINT `fk_autoscale_vmgroup_vm_map__vmgroup_id` FOREIGN KEY `fk_autoscale_vmgroup_vm_map__vmgroup_id` (`vmgroup_id`) REFERENCES `autoscale_vmgroups` (`id`) ON DELETE CASCADE,
- - CONSTRAINT `fk_autoscale_vmgroup_vm_map__instance_id` FOREIGN KEY `fk_autoscale_vmgroup_vm_map__instance_id` (`instance_id`) REFERENCES `vm_instance` (`id`),
- - INDEX `i_autoscale_vmgroup_vm_map__vmgroup_id`(`vmgroup_id`)
- -) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -
- INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (1, UUID(), 'snmp','Linux User CPU - percentage', '1.3.6.1.4.1.2021.11.9.0', now());
- INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (2, UUID(), 'snmp','Linux System CPU - percentage', '1.3.6.1.4.1.2021.11.10.0', now());
- INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (3, UUID(), 'snmp','Linux CPU Idle - percentage', '1.3.6.1.4.1.2021.11.11.0', now());
- INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (100, UUID(), 'netscaler','Response Time - microseconds', 'RESPTIME', now());
- -INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (4, UUID(), 'cpu','Linux User CPU - percentage - native', '1.3.6.1.4.1.2021.11.9.1', now());
- -INSERT INTO `cloud`.`counter` (id, uuid, source, name, value,created) VALUES (5, UUID(), 'memory','Linux User RAM - percentage - native', '1.3.6.1.4.1.2021.11.10.1', now());
- CREATE TABLE `cloud`.`user_ipv6_address` (
- `id` bigint unsigned NOT NULL UNIQUE auto_increment,
- diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
- index ebbcfef..b0be6c7 100644
- --- a/setup/db/db/schema-410to420.sql
- +++ b/setup/db/db/schema-410to420.sql
- @@ -2021,7 +2021,7 @@ CREATE TABLE `cloud`.`network_acl_item` (
- `icmp_code` int(10) COMMENT 'The ICMP code (if protocol=ICMP). A value of -1 means all codes for the given ICMP type.',
- `icmp_type` int(10) COMMENT 'The ICMP type (if protocol=ICMP). A value of -1 means all types.',
- `traffic_type` char(32) COMMENT 'the traffic type of the rule, can be Ingress or Egress',
- - `cidr` varchar(255) COMMENT 'comma seperated cidr list',
- + `cidr` varchar(2048) COMMENT 'comma seperated cidr list',
- `number` int(10) NOT NULL COMMENT 'priority number of the acl item',
- `action` varchar(10) NOT NULL COMMENT 'rule action, allow or deny',
- PRIMARY KEY (`id`),
- @@ -2103,18 +2103,6 @@ CREATE TABLE `cloud`.`vm_disk_statistics` (
- insert into `cloud`.`vm_disk_statistics`(data_center_id,account_id,vm_id,volume_id)
- select volumes.data_center_id, volumes.account_id, vm_instance.id, volumes.id from volumes,vm_instance where vm_instance.vm_type="User" and vm_instance.state<>"Expunging" and volumes.instance_id=vm_instance.id order by vm_instance.id;
- -DROP TABLE IF EXISTS `cloud`.`ovs_providers`;
- -CREATE TABLE `cloud`.`ovs_providers` (
- - `id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
- - `nsp_id` bigint unsigned NOT NULL COMMENT 'Network Service Provider ID',
- - `uuid` varchar(40),
- - `enabled` int(1) NOT NULL COMMENT 'Enabled or disabled',
- - `removed` datetime COMMENT 'date removed if not null',
- - PRIMARY KEY (`id`),
- - CONSTRAINT `fk_ovs_providers__nsp_id` FOREIGN KEY (`nsp_id`) REFERENCES `physical_network_service_providers` (`id`) ON DELETE CASCADE,
- - CONSTRAINT `uc_ovs_providers__uuid` UNIQUE (`uuid`)
- -) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -
- DROP TABLE IF EXISTS `cloud_usage`.`vm_disk_statistics`;
- CREATE TABLE `cloud_usage`.`vm_disk_statistics` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- diff --git a/setup/db/db/schema-421to430.sql b/setup/db/db/schema-421to430.sql
- index 3f2ad02..6a8ec49 100644
- --- a/setup/db/db/schema-421to430.sql
- +++ b/setup/db/db/schema-421to430.sql
- @@ -130,7 +130,7 @@ ALTER TABLE `cloud`.`volumes` ADD COLUMN `hv_ss_reserve` int(32) unsigned DEFAUL
- UPDATE `cloud`.`disk_offering` SET `state`='Inactive' WHERE `removed` IS NOT NULL;
- UPDATE `cloud`.`disk_offering` SET `removed`=NULL;
- -UPDATE `cloud`.`vm_template` SET `guest_os_id`= "142" WHERE `id` = "5";
- +UPDATE `cloud`.`vm_template` SET `guest_os_id`="142" WHERE `id`="5";
- UPDATE `cloud`.`vm_template` SET `state`='Inactive' WHERE `removed` IS NOT NULL;
- UPDATE `cloud`.`vm_template` SET `state`='Active' WHERE `removed` IS NULL;
- UPDATE `cloud`.`vm_template` SET `removed`=NULL;
- @@ -303,7 +303,7 @@ CREATE VIEW `cloud`.`template_view` AS
- left join
- `cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
- left join
- - `cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id and template_store_ref.store_role = 'Image' and template_store_ref.destroyed=0
- + `cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id and template_store_ref.store_role = 'Image'
- left join
- `cloud`.`image_store` ON image_store.removed is NULL AND template_store_ref.store_id is not NULL AND image_store.id = template_store_ref.store_id
- left join
- @@ -832,18 +832,11 @@ CREATE TABLE `cloud`.`network_acl_item_details` (
- ALTER TABLE `cloud`.`alert` ADD COLUMN `name` varchar(255) DEFAULT NULL COMMENT 'name of the alert';
- +UPDATE `cloud`.`hypervisor_capabilities` set max_guests_limit='150' WHERE hypervisor_version='6.1.0';
- +UPDATE `cloud`.`hypervisor_capabilities` set max_guests_limit='500' WHERE hypervisor_version='6.2.0';
- UPDATE `cloud`.`hypervisor_capabilities` SET `max_data_volumes_limit`=13 WHERE `hypervisor_type`='Vmware';
- INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hypervisor_version, max_guests_limit, security_group_enabled, max_data_volumes_limit, storage_motion_supported) VALUES (UUID(), 'Hyperv', '6.2', 1024, 0, 64, 0);
- -ALTER TABLE `cloud`.`external_load_balancer_devices` ADD COLUMN `is_exclusive_gslb_provider` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer appliance is acting exclusively as gslb service provider in the zone and can not be used for LB';
- -
- -DELETE FROM `cloud`.`configuration` WHERE `name` IN ("xen.update.url", "update.check.interval", "baremetal_dhcp_devices", "host.updates.enable");
- -
- -INSERT IGNORE INTO `cloud`.`configuration` VALUES ("Advanced", 'DEFAULT', 'VMSnapshotManager', "vmsnapshot.create.wait", "1800", "In second, timeout for create vm snapshot", NULL, NULL,NULL,0);
- -INSERT IGNORE INTO `cloud`.`configuration` VALUES ("Advanced", 'DEFAULT', 'VMSnapshotManager', "vmsnapshot.max", "10", "Maximum vm snapshots for a vm", NULL, NULL,NULL,0);
- -
- -UPDATE `cloud`.`configuration` SET `component` = 'VMSnapshotManager' WHERE `name` IN ("vmsnapshot.create.wait", "vmsnapshot.max");
- -
- CREATE TABLE `cloud`.`s2s_vpn_gateway_details` (
- `id` bigint unsigned NOT NULL auto_increment,
- `s2s_vpn_gateway_id` bigint unsigned NOT NULL COMMENT 'VPC gateway id',
- @@ -854,9 +847,6 @@ CREATE TABLE `cloud`.`s2s_vpn_gateway_details` (
- CONSTRAINT `fk_s2s_vpn_gateway_details__s2s_vpn_gateway_id` FOREIGN KEY `fk_s2s_vpn_gateway_details__s2s_vpn_gateway_id`(`s2s_vpn_gateway_id`) REFERENCES `s2s_vpn_gateway`(`id`) ON DELETE CASCADE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.guest.network.device', null, 'Specify the virtual switch on host for guest network', NULL, NULL, NULL, 0);
- -INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.private.network.device', null, 'Specify the virtual switch on host for private network', NULL, NULL, NULL, 0);
- -INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.public.network.device', null, 'Specify the public virtual switch on host for public network', NULL, NULL, NULL, 0);
- DELETE FROM `cloud`.`configuration` WHERE `name` IN ("xen.update.url", "update.check.interval", "baremetal_dhcp_devices", "host.updates.enable");
- @@ -873,6 +863,12 @@ INSERT IGNORE INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, c
- UPDATE `cloud`.`configuration` SET `component` = 'VMSnapshotManager' WHERE `name` IN ("vmsnapshot.create.wait", "vmsnapshot.max");
- +INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.guest.network.device', null, 'Specify the virtual switch on host for guest network', NULL, NULL, NULL, 0);
- +INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.private.network.device', null, 'Specify the virtual switch on host for private network', NULL, NULL, NULL, 0);
- +INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Hidden', 'DEFAULT', 'management-server', 'hyperv.public.network.device', null, 'Specify the public virtual switch on host for public network', NULL, NULL, NULL, 0);
- +
- +ALTER TABLE `cloud`.`external_load_balancer_devices` ADD COLUMN `is_exclusive_gslb_provider` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer appliance is acting exclusively as gslb service provider in the zone and can not be used for LB';
- +
- CREATE TABLE `cloud`.`s2s_customer_gateway_details` (
- `id` bigint unsigned NOT NULL auto_increment,
- `s2s_customer_gateway_id` bigint unsigned NOT NULL COMMENT 'VPC gateway id',
- @@ -883,7 +879,6 @@ CREATE TABLE `cloud`.`s2s_customer_gateway_details` (
- CONSTRAINT `fk_s2s_customer_gateway_details__s2s_customer_gateway_id` FOREIGN KEY `fk_s2s_customer_gateway_details__s2s_customer_gateway_id`(`s2s_customer_gateway_id`) REFERENCES `s2s_customer_gateway`(`id`) ON DELETE CASCADE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -
- CREATE TABLE `cloud`.`s2s_vpn_connection_details` (
- `id` bigint unsigned NOT NULL auto_increment,
- `s2s_vpn_connection_id` bigint unsigned NOT NULL COMMENT 'VPC gateway id',
- @@ -1101,6 +1096,14 @@ CREATE VIEW `cloud`.`user_vm_view` AS
- `cloud`.`user_vm_details` `custom_ram_size` ON (((`custom_ram_size`.`vm_id` = `cloud`.`vm_instance`.`id`) and (`custom_ram_size`.`name` = 'memory')));
- +INSERT IGNORE INTO `cloud`.`configuration`(category, instance, component, name, value, description, default_value) VALUES ('NetworkManager', 'DEFAULT', 'management-server', 'network.router.EnableServiceMonitoring', 'true', 'service monitoring in router enable/disable option, default true', 'true') ON DUPLICATE KEY UPDATE category='NetworkManager';
- +
- +ALTER TABLE `cloud`.`service_offering_details` CHANGE `display` `display` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user';
- +UPDATE `cloud`.`service_offering_details` set `display`=1 where id> 0;
- +
- +ALTER TABLE `cloud`.`disk_offering_details` CHANGE `display_detail` `display_detail` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user';
- +UPDATE `cloud`.`disk_offering_details` set `display_detail`=1 where id> 0;
- +
- INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (168, UUID(), 6, 'Windows Server 2012 R2 (64-bit)');
- INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (hypervisor_type, guest_os_name, guest_os_id) VALUES ("XenServer", 'Windows Server 2012 R2 (64-bit)', 168);
- INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (hypervisor_type, guest_os_name, guest_os_id) VALUES ("VmWare", 'Windows Server 2012 R2 (64-bit)', 168);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement