Repository navigation
tools/cephfs_mirror: fix re-appearance of removed checkpoints - #70221
Conversation
29cfa0d to
b530b47
Compare
|
lgtm otherwise |
|
nit: Fix PR description, which is referring to old approach |
b530b47 to
8a5638f
Compare
Fixed |
|
@chrisphoffman Could you re-check this PR ? The approach is changed. |
|
@vshankar ptal |
|
@vshankar & @chrisphoffman a gentle nudge for review. |
chrisphoffman
left a comment
There was a problem hiding this comment.
looks good from client perspective
|
This PR has been added to main integration testing by vshankar started 2026-10-27-04:37. |
vshankar
left a comment
There was a problem hiding this comment.
Build fails with:
/ceph/rpmbuild/BUILD/ceph-21.3.0-4886-g12bbe943/src/tools/cephfs_mirror/Checkpoint.cc:203:26: error: ‘CHECKPOINT_METADATA_KEY_LIST’ was not declared in this scope
203 | for (const auto &key : CHECKPOINT_METADATA_KEY_LIST) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ceph/rpmbuild/BUILD/ceph-21.3.0-4886-g12bbe943/src/tools/cephfs_mirror/Checkpoint.cc: In function ‘int cephfs::mirror::remove_checkpoint_metadata(MountRef, const std::string&, const std::set<std::__cxx11::basic_string<char> >&)’:
/ceph/rpmbuild/BUILD/ceph-21.3.0-4886-g12bbe943/src/tools/cephfs_mirror/Checkpoint.cc:217:26: error: ‘CHECKPOINT_METADATA_KEY_LIST’ was not declared in this scope
217 | for (const auto &key : CHECKPOINT_METADATA_KEY_LIST) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/tools/cephfs_mirror/CMakeFiles/cephfs_mirror_internal.dir/build.make:79: src/tools/cephfs_mirror/CMakeFiles/cephfs_mirror_internal.dir/Checkpoint.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
|
jenkins test make check |
|
jenkins test make check arm64 |
|
@vshankar please take this on your next qa run |
|
This PR has been added to main integration testing by vshankar started 2026-10-31-06:57. |
|
Hey @karthik-us1 -- the test added in this change fails in teuthology. See: https://pulpito.ceph.com/vshankar-2026-10-31_09:11:20-fs-wip-vshankar-testing-20261031.065707-distro-default-trial/698758/ I could not get to debugging it. Could you please have a look? |
a44d6c8 to
0ff4400
Compare
Seems like timing issue, have increased the timeout and fixed the logging part in case of retry failure. Will trigger the test and update here with the result or after fixing any issues if uncovered. |
OK. I will drop this change from my test branch now. |
@karthik-us1 Since you have this build, pls run the qa against this build and validate. |
@kotreshhr, I have triggered it on this: #70221 (comment) build. |
0ff4400 to
834a1d2
Compare
The issue was that the sync was completing before we could observe the @vshankar please take this in your next qa run. |
@karthik-us1 I am also facing similar issue in other test #73042 Just increasing the load will again be flaky based on teuthology machine load. Let's give the test a few more chances by trying with another snapshot? |
|
This PR has been removed from main integration testing by vshankar started 2026-10-31-06:57. |
Add CEPH_SNAP_MD_OP_UPDATE to update an existing snap metadata key and reject the operation when the key is absent. Fixes: https://tracker.ceph.com/issues/77992 Signed-off-by: Karthik U S <[email protected]>
Allow CEPH_SNAP_MD_OP_UPDATE in do_snap_md_op() validation. Fixes: https://tracker.ceph.com/issues/77992 Signed-off-by: Karthik U S <[email protected]>
After snapshot metadata mutation (PR ceph#66723), the mgr can remove a checkpoint while the mirror daemon is syncing. The mirror daemon may still see stale inode metadata and recreate checkpoint keys when sync completes. Use CEPH_SNAP_MD_OP_UPDATE for checkpoint status transitions so the mirror daemon cannot recreate keys that were removed on the MDS. Fixes: https://tracker.ceph.com/issues/77992 Signed-off-by: Karthik U S <[email protected]>
Add integration test for removing a checkpoint while snapshot sync is in progress, and a libcephfs test for the UPDATE-only snap metadata op. Fixes: https://tracker.ceph.com/issues/77992 Signed-off-by: Karthik U S <[email protected]>
834a1d2 to
06538b9
Compare
Done. Also added the freeze logic for the mirror daemon similar to that of #73042 so that the sync will not complete after we get the |
|
This PR has been added to main integration testing by vshankar started 2026-11-06-10:30. |
After snapshot metadata mutation (PR #66723), the mgr can remove a
checkpoint while the mirror daemon is syncing. The mirror daemon may
still see stale inode metadata and recreate checkpoint keys when sync
completes.
Add a new flag CEPH_SNAP_MD_OP_UPDATE to update an existing snap
metadata key and reject the operation when the key is absent.
Use CEPH_SNAP_MD_OP_UPDATE for checkpoint status transitions so the
mirror daemon cannot recreate keys that were removed on the MDS.
Fixes: https://tracker.ceph.com/issues/77992
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.