Repository navigation
mds,client: feature to block clients from establishing sessions - #48720
Conversation
|
@batrick seems like we want to stop client session only in some scenarios, with my 1x1 with greg, we discussed about an asok cmd which can turn the flag true and stop any new sessions from client, does it sound good? |
one more question arises is if this is feature is an admin command and in case of a severe recovery where all MDSs are either failed, stopped or damaged, will it still be able to serve it's purpose? |
Instead of an asok cmd, which will be applied to only one MDS each time, how about adding one new configuration as 0d7e13d does? |
+1 - it makes sense to have the config in mds map. |
a1117ca to
821e357
Compare
|
thanks @lxbsz @vshankar for the suggestions, I've pushed changes, PTAL. |
8e5bcd6 to
9f18a3e
Compare
6dab846 to
933a121
Compare
|
@dparmar18 - please add tests and ping back. |
ACK |
|
@vshankar testcase added, PTAL. |
There was a problem hiding this comment.
API tests fail with
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 712, in
2022-12-28 10:16:47,812.812 INFO:__main__: _validate_json(val[key], sub_schema, path + [key])
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 711, in _validate_json
2022-12-28 10:16:47,812.812 INFO:__main__: result = all(
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 712, in
2022-12-28 10:16:47,812.812 INFO:__main__: _validate_json(val[key], sub_schema, path + [key])
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 710, in _validate_json
2022-12-28 10:16:47,813.813 INFO:__main__: raise _ValError('unknown keys: {}'.format(unknown_keys), path)
2022-12-28 10:16:47,813.813 INFO:__main__:tasks.mgr.dashboard.helper._ValError: In `input['fs_map']['filesystems'][0]['mdsmap']['flags_state']`: unknown keys: {'refuse_client_session'}
I think the new options needs a mention (somewhere) to satisfy dashboard test.
EDIT: Otherwise looks good (fs suite passes).
@vshankar Ah, have no idea about dashboard, will look into it. Thanks for pointing out. |
|
@vshankar API tests passed |
|
jenkins test make check |
|
jenkins retest this please |
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 712, in
2022-12-28 10:16:47,812.812 INFO:__main__: _validate_json(val[key], sub_schema, path + [key])
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 711, in _validate_json
2022-12-28 10:16:47,812.812 INFO:__main__: result = all(
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 712, in
2022-12-28 10:16:47,812.812 INFO:__main__: _validate_json(val[key], sub_schema, path + [key])
2022-12-28 10:16:47,812.812 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 710, in _validate_json
2022-12-28 10:16:47,813.813 INFO:__main__: raise _ValError('unknown keys: {}'.format(unknown_keys), path)
2022-12-28 10:16:47,813.813 INFO:__main__:tasks.mgr.dashboard.helper._ValError: In `input['fs_map']['filesystems'][0]['mdsmap']['flags_state']`: unknown keys: {'refuse_client_session'}
Fixes the above failure
Fixes: https://tracker.ceph.com/issues/57090
Signed-off-by: Dhairya Parmar <[email protected]>
|
last updated fixed make check failure: |
|
jenkins retest this please |
|
Test ran successfully with this change - https://pulpito.ceph.com/vshankar-2023-02-24_02:11:45-fs-wip-vshankar-testing-20230222.025426-testing-default-smithi/ Failures are not related to this PR. |
Awesome, do we know when this PR will be merged? |
Fixes: https://tracker.ceph.com/issues/59667 Introduced-by: ceph#48720 Signed-off-by: Dhairya Parmar <[email protected]>
Fixes: https://tracker.ceph.com/issues/59667 Introduced-by: ceph/ceph#48720 Signed-off-by: Dhairya Parmar <[email protected]>
Fixes: https://tracker.ceph.com/issues/59667 Introduced-by: ceph#48720 Signed-off-by: Dhairya Parmar <[email protected]> (cherry picked from commit e4e8c84)
Fixes: https://tracker.ceph.com/issues/59667 Introduced-by: ceph#48720 Signed-off-by: Dhairya Parmar <[email protected]>
Fixes: https://tracker.ceph.com/issues/57090
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