Bug #80562
closedcephfs_mirror: Disable mirroring is not honored after init_failure is hit
0%
Description
This issue is seen as part of the following QA run after including the fix https://github.com/ceph/ceph/pull/71784
https://pulpito.ceph.com/khiremat-2026-09-15_09:25:28-fs-wip-khiremat-testing-20260915.063117-distro-default-trial/557335
https://pulpito.ceph.com/khiremat-2026-09-15_09:25:28-fs-wip-khiremat-testing-20260915.063117-distro-default-trial/557336
https://pulpito.ceph.com/khiremat-2026-09-15_09:25:28-fs-wip-khiremat-testing-20260915.063117-distro-default-trial/557337
On init failure, failed_restart gets set. Once this is set, C_DisableMirroring (queued by mirroring_disabled() on fs mirror disable) never runs.
update_fs_mirrors() prioritizes restart over queued actions:
if (!mirror_action.action_in_progress && !_is_restarting(filesystem)) {
if (failed_restart || blocklisted_restart) {
...
auto ctx = new C_RestartMirroring(this, filesystem, mirror_action.pool_id, peers);
ctx->complete(0);
}
}
if (!failed_restart && !blocklisted_restart && !mirror_action.action_ctxs.empty()
&& !mirror_action.action_in_progress) {
auto ctx = std::move(mirror_action.action_ctxs.front());
...
}
KH Updated by Kotresh Hiremath Ravishankar 3 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 71819
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81275: squid: cephfs_mirror: Disable mirroring is not honored after init_failure is hit added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81276: umbrella: cephfs_mirror: Disable mirroring is not honored after init_failure is hit added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81277: tentacle: cephfs_mirror: Disable mirroring is not honored after init_failure is hit added
UB Updated by Upkeep Bot 2 months ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to 43ea3d66b80596920a9261a2b4f5516b925e4453
- Fixed In set to v21.3.0-3886-g43ea3d66b8
- Upkeep Timestamp set to 2026-10-01T09:08:20+00:00