diff --git a/robot/Resources/keywords/fault_inject.py b/robot/Resources/keywords/fault_inject.py index 3cbfda5e37..98b136cdcd 100644 --- a/robot/Resources/keywords/fault_inject.py +++ b/robot/Resources/keywords/fault_inject.py @@ -798,7 +798,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"