From 1c0265585cedcbf220f56b67c7f17cec54617ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Fri, 27 Sep 2024 17:43:47 +0800 Subject: [PATCH] fix check case --- handler/checker/tasks/observer/cluster/task_opt_stat.yaml | 2 +- .../checker/tasks/observer/system/instruction_set_avx2.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/handler/checker/tasks/observer/cluster/task_opt_stat.yaml b/handler/checker/tasks/observer/cluster/task_opt_stat.yaml index 7d926e82..ead86bd2 100644 --- a/handler/checker/tasks/observer/cluster/task_opt_stat.yaml +++ b/handler/checker/tasks/observer/cluster/task_opt_stat.yaml @@ -12,5 +12,5 @@ WHERE NOT EXISTS(SELECT 1 AND h.tenant_id = t.tenant_id);' result: set_value: failed_scheduler_tenant_id - verify: '[ -n "${failed_scheduler_tenant_id}" ]' + verify: '[ -z "${failed_scheduler_tenant_id}" ]' err_msg: "failed_scheduler_tenant_id is exists. Please check the tenant_ids: #{failed_scheduler_tenant_id}" \ No newline at end of file diff --git a/handler/checker/tasks/observer/system/instruction_set_avx2.yaml b/handler/checker/tasks/observer/system/instruction_set_avx2.yaml index acd6d842..26a0af40 100644 --- a/handler/checker/tasks/observer/system/instruction_set_avx2.yaml +++ b/handler/checker/tasks/observer/system/instruction_set_avx2.yaml @@ -1,6 +1,7 @@ info: 'Check the flags of cpu' task: - - steps: + - version: "[4.2.0.0,4.2.0.0]" + steps: - type: ssh ssh: "lscpu |grep Flags" result: