Repository navigation
mds: optionally forbid to use standby for another fs as last resort - #51942
Conversation
|
Alternatively, instead of a config option we could use a fs option, something like If we still want a config option then I am also not sure if |
That is what I would like more too. Thanks. Then the next question is about naming and the default behaviour. Ideally I would like we don't allow standby for another fs by default and if one wants it they should set the fs flag with the command: (an alternative flag name could be But this would mean the previous behaviour would change after upgrade (and I would like to backport this to all supported branches) and users may not be happy. So a safer approach would be to add I am using So, what do you think? I would be fine with any solution that allowed to enable this somehow. |
|
I have implemented it with |
|
I don't think we can change the default behavior. It's too surprising to users why standbys are not being promoted. Name is good to me. |
|
I'd recommend documenting this as it might be a really helpful feature for a lot of users out there and also adding a test case if possible. |
|
jenkins test api |
Will do, thanks. Also I am going to a test (as was suggested by @dparmar18) to qa/tasks/cephfs/test_failover.py
Yes, the default behaviour has not been changed. |
|
updated to include the test and documentation change. |
|
Running on teuthology the fs suite with All tests passed. |
|
jenkins test api |
There was a problem hiding this comment.
| Note, configuring MDS file system affinity does not change the behavior that | |
| ``standby-replay`` daemons are always selected before other standbys. | |
| .. note:: | |
| Configuring MDS file system affinity does not guarantee that | |
| ``standby-replay`` daemons are always selected before other standbys. |
There was a problem hiding this comment.
I am not sure it needs to be a separate "!Note" section. Before this change it was a part of the paragraph above. Also, the next sentence ("Even further, ...") is a continuation of this, so I think they should go together (either in "!Note" section or as a normal text).
So before applying the suggested change I would like to learn what other people think about this.
Signed-off-by: Mykola Golub <[email protected]>
Check the former active will reclaim its spot eventually. Signed-off-by: Mykola Golub <[email protected]>
Signed-off-by: Mykola Golub <[email protected]>
@trociny I'll include this in my integration run this week. Could you finish up the comments? |
|
@rishabh-d-dave @vshankar I believe the dashboard tests are fixed now (the ceph API tests passed). |
Yes, dashboard tests are fixed. We can merge this PR but I guess its better to get an approval from Dashboard team as well. I've messaged Ernesto on Slack requesting review for this PR. |
|
@rishabh-d-dave good to merge? |
I am waiting to discuss some failures with you before merging this PR. |
According to #51942 (comment) this is ready to merge, isn't it? |
Right but since there were too many re-runs, I included it in one of batches for testing again. |
As discussed - pending RCA for two test failures before merging. |
rishabh-d-dave
left a comment
There was a problem hiding this comment.
CephFS integration tests ran fine - https://tracker.ceph.com/projects/cephfs/wiki/Main#6-Sep-2023.
|
Hey @rishabh-d-dave, I think this caused a compilation failure. See https://tracker.ceph.com/issues/62729 for details |
|
@trociny FYI |
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed "fs" to "fsp" and made mds_map and fscid private and introduced get_mds_map() and get_fsicd() methods instead. Combination of former and latter PR introduced compilation errors & made it impossible to build the binaries on the latest main branch. This commit attemps to fix this issue. Fixes: https://tracker.ceph.com/issues/62729 Signed-off-by: Rishabh Dave <[email protected]>
Fixes: https://tracker.ceph.com/issues/61599
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows