From 4d6df586da2be846a18cfc546e3dd60e39163597 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 24 Jun 2024 15:55:48 +0530 Subject: [PATCH] engine-schema: fix options for host.allocators.order config (#8733) With https://github.com/apache/cloudstack/commit/d8c7e34b383d6e6ab4d00f3a07e3b2ab467eca36 options were added to the host.allocators.order config. Currently, it allows adding only FirstFitRouting as the value. This PR fixes the behaviour and allows other host allocators to be added. Signed-off-by: Abhishek Kumar --- .../src/main/resources/META-INF/db/schema-41900to41910.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/schema/src/main/resources/META-INF/db/schema-41900to41910.sql b/engine/schema/src/main/resources/META-INF/db/schema-41900to41910.sql index bdb23d9844c..0cb10f4a0ef 100644 --- a/engine/schema/src/main/resources/META-INF/db/schema-41900to41910.sql +++ b/engine/schema/src/main/resources/META-INF/db/schema-41900to41910.sql @@ -65,3 +65,8 @@ CREATE TABLE IF NOT EXISTS `cloud_usage`.`usage_vpc` ( CALL `cloud_usage`.`IDEMPOTENT_ADD_COLUMN`('cloud_usage.cloud_usage', 'state', 'VARCHAR(100) DEFAULT NULL'); CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.user_data', 'removed', 'datetime COMMENT "date removed or null, if still present"'); + +-- Update options for config - host.allocators.order +UPDATE `cloud`.`configuration` SET + `options` = 'FirstFitRouting,RandomAllocator,TestingAllocator,FirstFitAllocator,RecreateHostAllocator' +WHERE `name` = 'host.allocators.order';