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
qa: grep kernel logs for kclient warnings/failures to fail a test #42193
Conversation
@batrick Does the /var/log/kern.log truncates before every run ? |
jenkins test make check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me. @jtlayton is there a decent way to synthetically generate these failures so we can verify this grep works as advertised?
Crashing the box is pretty simple if you have sysrq turned on. See:
It may need to be enabled on the box though (see the above doc on how to do that). Then, you can just do |
Sure but what about the others? It'd be nice to test for each one to know it works. |
Actually...you may be able to just inject the messages you want to catch into /dev/kmsg:
...and it should show up in the kernel's ring buffer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@idryomov this will affect your krbd testing too. Any patterns you would like to add?
Fixes: https://tracker.ceph.com/issues/50150 Signed-off-by: Kotresh HR <khiremat@redhat.com>
707541f
to
5971fdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have this, see https://github.com/ceph/teuthology/blob/master/teuthology/task/internal/syslog.py#L100-L143. If it's broken let's fix it instead of duplicating the functionality in the ceph task.
Pushed a PR in teuthology repo ceph/teuthology#1666 |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Superseded by ceph/teuthology#1666 |
Fixes: https://tracker.ceph.com/issues/50150
Signed-off-by: Kotresh HR khiremat@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox