Bug #38702
opentest_selftest_cluster_log (tasks.mgr.test_module_selftest.TestModuleSelftest) fails in vstart
0%
Description
The QA cluster log test (https://github.com/ceph/ceph/blob/master/qa/tasks/mgr/test_module_selftest.py#L292) fails because the command 'ceph -w --watch-channel cluster|audit' does not display the events immediatelly. The QA backend defines a timeout of 15 seconds (https://github.com/ceph/ceph/blob/master/qa/tasks/ceph_test_case.py#L52) to allow the command to display the event, otherwise it fails.
If you do the tests manually, it sometimes takes 10 seconds until the event is displayed.
Start a vstart cluster and execute the following commands:
$ ceph --watch --watch-channel "*"
Run the following commands in a separate shell:
$ ceph mgr module enable selftest
$ ceph mgr self-test cluster-log audit info "foo bar info"
$ ceph mgr self-test cluster-log cluster error "foo bar err"
$ ceph mgr self-test cluster-log ...
In Ceph Mimic the events are displayed much faster, and the QA test does not fail. Increasing the timeout to 20seconds or more does not make sense IMHO.