Repository navigation
mds: persist session auth_name in ESession journal event - #69037
Conversation
|
Waiting on @dparmar18 to update this PR with a test (as discussed). |
|
Ran locally, without patch: with patch: |
|
without patch: with patch: |
Nice :) Can you explain what was the issue in the test? |
i committed the holy mistake of calling libcephfs APIs inside the child of |
|
jenkins retest this please |
vshankar
left a comment
There was a problem hiding this comment.
Minor nits, otherwise LGTM.
@dparmar18 you would want to add the "evicting ..." cluster warning to the relevant yaml.
| if (fd < 0) | ||
| return 1; | ||
|
|
||
| if (ceph_write(cmount, fd, "hello", 5, 0) < 0) |
There was a problem hiding this comment.
| if (ceph_write(cmount, fd, "hello", 5, 0) < 0) | ||
| return 1; | ||
|
|
||
| if (ceph_fsync(cmount, fd, 0) != 0) |
| return 1; | ||
|
|
||
| if (ceph_mkdir(cmount, "/reclaim_failover_test", 0755) != 0 && errno != EEXIST) | ||
| return 1; |
|
|
||
| ceph_set_uuid(cmount, uuid); | ||
|
|
||
| if (ceph_mount(cmount, "/") != 0) |
|
|
||
| ceph_set_session_timeout(cmount, 300); | ||
|
|
||
| if (ceph_start_reclaim(cmount, uuid, CEPH_RECLAIM_RESET) != -ENOENT) |
There was a problem hiding this comment.
ditto (and other such instances in this change)
|
|
||
| if (ceph_fsync(cmount, fd, 0) != 0) | ||
| return 1; | ||
|
|
There was a problem hiding this comment.
ceph_close() after fsync? (doesn't matter much though, but...)
There was a problem hiding this comment.
no we arent doing ceph_close. dying_client_failover() returns with closing the session
There was a problem hiding this comment.
agghh typo - without closing the session
ah okay, let me do that real quick |
did you mean |
No. When the old client is blocklisted, the MDS will log to cluster log. See: https://github.com/ceph/ceph/blob/main/src/mds/MDSRank.cc#L3946 EDIT: Unless that message is already in the ignore list. |
@dparmar18 nvm -- the cluster log is at INFO level, so no need for add to ignore list. |
chrisphoffman
left a comment
There was a problem hiding this comment.
LGTM, nice work all!
|
last push was just a comment addition as requested by @vshankar - https://github.com/ceph/ceph/compare/839cf751f6720eefb6371fada90940b683bfe0ab..d3751eb03c6a88efd6a8bad114a9df9086cf3741 |
|
jenkins retest this please |
|
jenkins retest this please |
|
This PR has been added to main integration testing by vshankar started 2026-05-26-16:20. |
|
jenkins retest this please |
So that it can be applied to the freshly creation session which happens while recreating session in ESession::replay when the OMAP version fell behind the ESession cmapv and the newly creation session would be rejected as target when a client tries to reclaim this session. Fixes: https://tracker.ceph.com/issues/76728 Signed-off-by: Dhairya Parmar <[email protected]>
ensure that the new active MDS reads the auth_name from the ESession event and assigns it to the new session that MDS creates during journal replay. NOTE: the mds failover is carried by sending "respawn" command to active MDS using libcephfs's ceph_mds_command(). Fixes: https://tracker.ceph.com/issues/76728 Signed-off-by: Dhairya Parmar <[email protected]>
|
(force push to get jenkins tests running) |
So that it can be applied to the freshly creation session which happens while recreating session in ESession::replay when the OMAP version fell behind the ESession cmapv and the newly creation session would be rejected as target when a client tries to reclaim this session.
Fixes: https://tracker.ceph.com/issues/76728
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.