From 7800ea6248af4c4a42a351084aab8a80092966e0 Mon Sep 17 00:00:00 2001 From: YunhuiChen <67582932+YunhuiChen@users.noreply.github.com> Date: Wed, 7 Jul 2021 11:26:34 +0800 Subject: [PATCH] Update fault_inject.py --- robot/Resources/keywords/fault_inject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot/Resources/keywords/fault_inject.py b/robot/Resources/keywords/fault_inject.py index 6aae2f332f..16c2dfeccc 100644 --- a/robot/Resources/keywords/fault_inject.py +++ b/robot/Resources/keywords/fault_inject.py @@ -936,7 +936,7 @@ def clean_kernel_log(): def check_io_error(): for host in config.client_list: ssh = shell_operator.create_ssh_connect(host, 1046, config.abnormal_user) - ori_cmd = "sudo grep \'I/O error\' /var/log/kern.log -R" + ori_cmd = "sudo grep \'I/O error\' /var/log/kern.log -R | grep -v nbd2" rs = shell_operator.ssh_exec(ssh, ori_cmd) if rs[1] != []: ori_cmd = "sudo logrotate -vf /etc/logrotate.d/rsyslog"