Skip to content

Commit 2cfdc2d

Browse files
author
Daan Hoogland
committed
cleanup
1 parent 24964fa commit 2cfdc2d

File tree

5 files changed

+6
-32
lines changed

5 files changed

+6
-32
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41910to41920.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,3 @@ CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Read-Only Admin - Default', 'va
4343

4444
CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Support Admin - Default', 'setupUserTwoFactorAuthentication', 'ALLOW');
4545
CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Support Admin - Default', 'validateUserTwoFactorAuthenticationCode', 'ALLOW');
46-
47-
-- add status warn and unknown to router health checks
48-
49-
CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('cloud.router_health_check', 'check_result', 'check_result', 'VACHAR(16) NOT NULL COMMENT "check executions for success or (fatal) failure"')

engine/schema/src/main/resources/META-INF/db/schema-42000to42010.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,3 @@ CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Read-Only Admin - Default', 'va
128128

129129
CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Support Admin - Default', 'setupUserTwoFactorAuthentication', 'ALLOW');
130130
CALL `cloud`.`IDEMPOTENT_UPDATE_API_PERMISSION`('Support Admin - Default', 'validateUserTwoFactorAuthenticationCode', 'ALLOW');
131-
132-
-- Re-apply VPC: update default network offering for vpc tier to conserve_mode=1 (#8309)
133-
UPDATE `cloud`.`network_offerings` SET conserve_mode=1 WHERE name='DefaultIsolatedNetworkOfferingForVpcNetworks';
134-
135-
-- health check status as enum
136-
CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('router_health_check', 'check_result', 'check_result', 'varchar(16) NOT NULL COMMENT "check executions result: SUCCESS, FAILURE, WARNING, UNKNOWN"');

engine/schema/src/main/resources/META-INF/db/schema-42010to42100.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,5 +755,8 @@ SET `cs`.`domain_id` = (
755755
WHERE `acc`.`id` = `cs`.`account_id`
756756
);
757757

758+
-- health check status as enum
759+
CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('router_health_check', 'check_result', 'check_result', 'varchar(16) NOT NULL COMMENT "check executions result: SUCCESS, FAILURE, WARNING, UNKNOWN"');
760+
758761
-- Re-apply VPC: update default network offering for vpc tier to conserve_mode=1 (#8309)
759762
UPDATE `cloud`.`network_offerings` SET conserve_mode = 1 WHERE name = 'DefaultIsolatedNetworkOfferingForVpcNetworks';

engine/schema/src/main/resources/META-INF/db/schema-42010to42100cleanup.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

systemvm/debian/root/monitorServices.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ def execute(script, checkType = "basic"):
306306
output = pout.communicate()[0].decode().strip()
307307
checkEndTime = time.time()
308308

309-
if not len(output) > 0:
310-
output = ""
309+
# we run all scripts and have to ignore the ones that do nothing
310+
if not len(output) > 0 and exitStatus == 0:
311+
return {}
311312

312313
routerHealth = RouterHealthStatus.SUCCESS
313314
match exitStatus:

0 commit comments

Comments
 (0)