Skip to content
This repository was archived by the owner on Jan 15, 2020. It is now read-only.

Commit 8a52347

Browse files
author
frank
committed
CloudStack CLOUDSTACK-774
Supporting kickstart in CloudStack baremetal remove workaround for unable to deploydb remove wrongly added region upgrade entries
1 parent 8855d79 commit 8a52347

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

setup/db/db/schema-40to410.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,12 +1631,6 @@ CREATE VIEW `cloud`.`data_center_view` AS
16311631
left join
16321632
`cloud`.`domain` ON data_center.domain_id = domain.id;
16331633

1634-
INSERT INTO `cloud`.`region` values ('1','Local','http://localhost:8080/client/api','','');
1635-
ALTER TABLE `cloud`.`account` ADD COLUMN `region_id` int unsigned NOT NULL DEFAULT '1';
1636-
ALTER TABLE `cloud`.`user` ADD COLUMN `region_id` int unsigned NOT NULL DEFAULT '1';
1637-
ALTER TABLE `cloud`.`domain` ADD COLUMN `region_id` int unsigned NOT NULL DEFAULT '1';
1638-
1639-
ALTER TABLE `cloud_usage`.`account` ADD COLUMN `region_id` int unsigned NOT NULL DEFAULT '1';
16401634

16411635
CREATE TABLE `cloud`.`baremetal_dhcp_devices` (
16421636
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',

utils/src/com/cloud/utils/db/Transaction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public class Transaction {
9797
/* FIXME: We need a better solution for this
9898
* Initialize encryption if we need it for db.properties
9999
*/
100-
//EncryptionSecretKeyChecker enc = new EncryptionSecretKeyChecker();
101-
//enc.check();
100+
EncryptionSecretKeyChecker enc = new EncryptionSecretKeyChecker();
101+
enc.check();
102102
}
103103

104104
private final LinkedList<StackElement> _stack;

0 commit comments

Comments
 (0)