Bug #80528
closedcephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"
0%
Description
https://pulpito-ng.ceph.com/runs/khiremat-2026-08-06_13:05:29-fs-wip-khiremat-testing-20260804.093537-distro-default-trial/jobs/437210
https://pulpito-ng.ceph.com/runs/khiremat-2026-08-06_13:05:29-fs-wip-khiremat-testing-20260804.093537-distro-default-trial/jobs/437214
2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner:====================================================================== 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner:ERROR: test_mirroring_init_failure_with_recovery (tasks.cephfs.test_mirroring.TestMirroring.test_mirroring_init_failure_with_recovery) 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner:Test if the mirror daemon can recover from a init failure 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner:---------------------------------------------------------------------- 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner:Traceback (most recent call last): 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/github.com_ceph_ceph-ci_3954c08723ac6ec59e67980a161c8727246443c0/qa/tasks/cephfs/test_mirroring.py", line 1946, in test_mirroring_init_failure_with_recovery 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner: while proceed(): 2026-08-06T15:58:03.906 INFO:tasks.cephfs_test_runner: ^^^^^^^^^ 2026-08-06T15:58:03.907 INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_teuthology_1fcba62fdc66bf66c0e46aa34af7211788698d08/teuthology/contextutil.py", line 134, in __call__ 2026-08-06T15:58:03.907 INFO:tasks.cephfs_test_runner: raise MaxWhileTries(error_msg) 2026-08-06T15:58:03.907 INFO:tasks.cephfs_test_runner:teuthology.exceptions.MaxWhileTries: 'wait for failed state' reached maximum tries (20) after waiting for 100 seconds 2026-08-06T15:58:03.907 INFO:tasks.cephfs_test_runner: 2026-08-06T15:58:03.907 INFO:tasks.cephfs_test_runner:======================================================================
KH Updated by Kotresh Hiremath Ravishankar 3 months ago · Edited
It was thought both test_mirroring_init_failure (https://tracker.ceph.com/issues/68187) and test_mirroring_init_failure_with_recovery are same. Though the traceback is same it's different.
This is proved in the QA run with the fix for https://tracker.ceph.com/issues/68187 included.
KH Updated by Kotresh Hiremath Ravishankar 3 months ago
Analysis:
1. The test_mirroring_init_failure ran before this. The test_mirroring_init_failure left mirroring enabled
When the test saw state: failed, it returned from the test method immediately (return True).
That skipped the cleanup at the end (fs mirror disable and verification that the admin-socket command is gone).
2. Filesystem was recreated with a new fscid The next test’s setUp tore down and recreated cephfs, so
test_mirroring_init_failure_with_recovery used a new fscid (e.g. cephfs@148).
3. Mirror daemon still tracked the old fscid. The daemon kept state for the previous fscid (e.g. cephfs@146) and kept retrying init on the deleted filesystem.
4. Admin-socket queries targeted the wrong fscid. The recovery test queried fs mirror status cephfs@148, but the daemon only had (or was churning on)
cephfs@146. Every status call failed with exit status 22 (EINVAL). The test caught the exception and retried until safe_while timed out.
5. Valgrind made it worse Under Valgrind, init/restart is slower and the mirror daemon restarts failed instances aggressively (init failure does not set failed_ts,
so restart eligibility is immediate). That increased admin-socket churn and made the fscid mismatch more likely to persist for the full 100s wait window.
KH Updated by Kotresh Hiremath Ravishankar 3 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 71784
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81272: umbrella: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed" added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81273: squid: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed" added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81274: tentacle: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed" added
UB Updated by Upkeep Bot 2 months ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to 551a571a69f142a79b32a97c41b6cd9099b79ef7
- Fixed In set to v21.3.0-3884-g551a571a69
- Upkeep Timestamp set to 2026-10-01T09:07:18+00:00