Repository navigation
mon/MonClient: resurrect original client_mount_timeout handling - #52124
Conversation
While reducing a "waiting for config" timeout from 30 seconds to 3 (mon_client_hunt_interval default) and instead introducing 10 retries, commit 3c2b30e ("mon/MonClient: apply timeout while fetching config") also subjected authenticate() to these retries. However, authenticate() is going by client_mount_timeout which defaults to 5 minutes. As a result, when the monitors are unreachable or there are other connectivity issues, we end up taking 50 minutes to return ETIMEDOUT from rados_connect(). Fixes: https://tracker.ceph.com/issues/61733 Signed-off-by: Ilya Dryomov <[email protected]>
Over the years, with commits 8bc1974 ("ceph_test_librados_api_misc: fix stupid LibRadosMiscConnectFailure.ConnectFailure test") and f357459 ("test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new seconds unit"), this test has lost its original meaning. Any ability to time out is definitely gone since a 1 second timeout is too high to kick in a normally functioning setup, not to mention that the timeout was being ballooned to 10 seconds until the previous commit. The first connection attempt would normally succeed while the second one would immediately fail with "cannot identify monitors to contact" error due do the cluster handle getting recreated. The 16 iteration loop is dead code. This commit just codifies the above to avoid the appearance that this test has anything to do with timeouts. Signed-off-by: Ilya Dryomov <[email protected]>
|
jenkins test api |
|
jenkins test windows |
|
|
||
| utime_t dur = end - start; | ||
| ASSERT_GE(dur, utime_t(2, 0)); | ||
| ASSERT_LT(dur, utime_t(4, 0)); |
|
@idryomov I'm seeing a failure that looks related to this PR:
The failure reproduced several other times in this test link: |
|
Please re-add "needs-qa" when this needs testing again. |
|
@batrick and I agree that this appears to be caused by #50503 that was present in the same batch. What I see happening is:
Please retest without #50503 in the mix. |
|
Sure, thanks for looking into it @idryomov |
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