Project

General

Profile

Actions

Bug #80528

closed
KH KH

cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"

Bug #80528: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"

Added by Kotresh Hiremath Ravishankar 3 months ago. Updated 2 months ago.

Status:
Backporting
Priority:
Normal
Category:
Testing
Target version:
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-mirror
Labels (FS):
qa, qa-failure
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3884-g551a571a69
Released In:
Upkeep Timestamp:
2026-10-01T09:07:18+00:00

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:======================================================================

Related issues 3 (3 open — 0 closed)

Copied to CephFS - Backport #81272: umbrella: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"In ProgressKotresh Hiremath Ravishankar

Actions
Copied to CephFS - Backport #81273: squid: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"NewKotresh Hiremath Ravishankar

Actions
Copied to CephFS - Backport #81274: tentacle: cephfs_mirror: test_mirroring_init_failure_with_recovery failed to get state: "failed"NewKotresh Hiremath Ravishankar

Actions

KH Updated by Kotresh Hiremath Ravishankar 3 months ago Actions #2

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 Actions #3

  • Status changed from New to Fix Under Review
  • Pull request ID set to 71784

UB Updated by Upkeep Bot 2 months ago Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • 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
Actions

Also available in: PDF Atom