test: monitor thrasher wait until quorum#51570
Conversation
|
@NitzanMordhai instead of increasing the thrash_delay, is there a way we can do this without relying on just waiting 5 seconds and do 1 check? I wonder if we can have something like |
2acfa40 to
d3649c2
Compare
a3b6299 to
a1a4ecb
Compare
@kamoltat good idea, my code updated, please take a look |
|
I ran the failing test 50 times with the new code, no new occurrence happened |
a1a4ecb to
678abb2
Compare
|
jenkins test make check |
kamoltat
left a comment
There was a problem hiding this comment.
nit: spelling
other than that LGTM
qa/tasks/mon_thrash.py
Outdated
| break | ||
| self.log("quorum is size %d" % len(s['quorum'])) | ||
|
|
||
| self.log("finel quorum is size %d" % len(s['quorum'])) |
|
Also, minor thing, please change the PR title and commit message to reflect the change you made, currently it is still the old commit message where we are checking just once with 5 seconds. Thanks! |
678abb2 to
8bac454
Compare
8bac454 to
c2ca265
Compare
With 1 sec. delay we may sometimes fail to get correct length of quorum since the monitor didn't updated on time. With the following fix, we will wait for quorum and check every few seconds (3) until timeout (30). Fixes: https://tracker.ceph.com/issues/52316 Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
c2ca265 to
fbd10ba
Compare
With 1 sec. delay we may sometimes fail to get correct length of quorum since the monitor didn't updated on time.
With the following fix, we will wait for quorum and check every few seconds (3) until timeout (30).
Fixes: https://tracker.ceph.com/issues/52316
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows