Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tools/cephfs_mirror: Fix blockdiff backward compatibility#67605

Open
kotreshhr wants to merge 2 commits intoceph:mainfrom
kotreshhr:fsmirror-blockdiff-backward-compat
Open

tools/cephfs_mirror: Fix blockdiff backward compatibility#67605
kotreshhr wants to merge 2 commits intoceph:mainfrom
kotreshhr:fsmirror-blockdiff-backward-compat

Conversation

@kotreshhr
Copy link
Contributor

@kotreshhr kotreshhr commented Mar 2, 2026

CephFS mirroring unconditionally attempted to initialize blockdiff,
causing initialization failure on older Ceph clusters where blockdiff
is not supported but mirror daemon supporting blockdiff.

This breaks backward compatibility and prevents the mirror daemon from
syncing.

Fix this by detecting blockdiff support and initializing it only when
supported, allowing mirroring to function correctly with older Ceph
versions.

Fixes: https://tracker.ceph.com/issues/74985
Signed-off-by: Kotresh HR [email protected]

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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions bot added cephfs Ceph File System tests labels Mar 2, 2026
@kotreshhr kotreshhr force-pushed the fsmirror-blockdiff-backward-compat branch 3 times, most recently from a9354da to d24d521 Compare March 2, 2026 17:57
…upported

CephFS mirroring unconditionally attempted to initialize blockdiff,
causing initialization failure on older Ceph clusters where blockdiff
is not supported but mirror daemon supporting blockdiff.

This breaks backward compatibility and prevents the mirror daemon from
syncing.

Fix this by detecting blockdiff support and initializing it only when
supported, allowing mirroring to function correctly with older Ceph
versions.

Fixes: https://tracker.ceph.com/issues/74985
Signed-off-by: Kotresh HR <[email protected]>
@kotreshhr kotreshhr force-pushed the fsmirror-blockdiff-backward-compat branch 3 times, most recently from 6ad5133 to 26da54c Compare March 3, 2026 08:30
@kotreshhr kotreshhr force-pushed the fsmirror-blockdiff-backward-compat branch from 26da54c to 164e1b7 Compare March 3, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant