Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.0 fix check case and add check xfs_repair #456

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion handler/checker/tasks/observer/cluster/task_opt_stat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
10 changes: 10 additions & 0 deletions handler/checker/tasks/observer/disk/xfs_repair.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

info: ""
task:
- type: ssh
ssh: 'dmesg -T | grep -m 1 "xfs_repair" '
result:
set_value: xfs_repair_log
verify: '[ -z "${xfs_repair_log}" ]'
err_msg: "xfs need repair. Please check disk. xfs_repair_log: #{xfs_repair_log}"

Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading