Actions
Bug #78427
closed
RD
RD
mds: snapshot metadata ops fail in multi-MDS setup
Bug #78427:
mds: snapshot metadata ops fail in multi-MDS setup
Status:
Backporting
Priority:
Urgent
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:
0%
Source:
Development
Backport:
umbrella,tentacle
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.3.0-2770-g938ff51ff0
Released In:
Upkeep Timestamp:
2026-09-01T13:32:59+00:00
Description
Reproduction recipe -
1. Enable mirroring for a subvolume and then enable minutely snap-schedule for it.
2. Auto-prune snaps, keeping only 12 per 24h duration: ceph fs snap-schedule retention add /volumes/svgroup1/subvol1 24h12 --fs cephfs@[email protected]
3. Wait for ~10 minu and verify that snaps exists.
4. Add a checkpoint using checkpoint now for the subvol and wait for this command to complete running in background.
5. Checkpoint any older snap via checkpoint add command. checkpoint add hangs indefinitely. Active MDSs crash, leaving following stacktrace in their logs -
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x12f) [0x7f8aadc23cab] 2: /usr/bin/ceph-mds(+0xc0532) [0x560ac11e3532] 3: (Server::handle_client_snap_md_op(boost::intrusive_ptr<MDRequestImpl> const&)+0x8af) [0x560ac1373aff] 4: (MDSContext::complete(int)+0x59) [0x560ac158f269] 5: (MDSTableClient::handle_request(boost::intrusive_ptr<MMDSTableRequest const> const&)+0x726) [0x560ac1556de6] 6: (MDSRank::handle_message(boost::intrusive_ptr<Message const> const&)+0xaa2) [0x560ac1288422] 7: (MDSRank::_dispatch(boost::intrusive_ptr<Message const> const&, bool)+0x553) [0x560ac128c2d3] 8: (MDSRankDispatcher::ms_dispatch(boost::intrusive_ptr<Message const> const&)+0x53) [0x560ac128c703] 9: (MDSDaemon::ms_dispatch2(boost::intrusive_ptr<Message> const&)+0x17b) [0x560ac127792b] 10: (DispatchQueue::entry()+0x4ff) [0x7f8aaded317f] 11: /usr/lib64/ceph/libceph-common.so.2(+0x4b6511) [0x7f8aadf79511] 12: /lib64/libc.so.6(+0x958bf) [0x7f8aad5e88bf] 13: /lib64/libc.so.6(+0x10643c) [0x7f8aad65943c]
The issue lies with rdlock_path_pin_ref() call in Server::handle_client_snap_md_op().
RD Updated by Rishabh Dave 5 months ago
- Related to Feature #66293: mds: permit snapshot metadata mutations added
RD Updated by Rishabh Dave 5 months ago
- Severity changed from 3 - minor to 2 - major
VS Updated by Venky Shankar 4 months ago
- Category set to Correctness/Safety
- Target version set to v22.0.0
- Source set to Development
- Component(FS) MDS added
VS Updated by Venky Shankar 4 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 70513
RD Updated by Rishabh Dave 4 months ago
- Related to Bug #79376: qa: test for snap md ops in multimds setup added
RD Updated by Rishabh Dave 3 months ago
- Status changed from Fix Under Review to Pending Backport
- Backport changed from umbrella to umbrella,tentacle
- Pull request ID changed from 70513 to 70905
RD Updated by Rishabh Dave 3 months ago
- Copied to Backport #80143: umbrella: mds: snapshot metadata ops fail in multi-MDS setup added
RD Updated by Rishabh Dave 3 months ago
- Copied to Backport #80144: tentacle: mds: snapshot metadata ops fail in multi-MDS setup added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Merge Commit set to 938ff51ff0baccc1160b0317f41fb8d5c13791aa
- Fixed In set to v21.3.0-2770-g938ff51ff0
- Upkeep Timestamp set to 2026-09-01T13:32:59+00:00
Actions