Skip to content

reef: mds: fix session/client evict command.#58726

Merged
vshankar merged 4 commits intoceph:reeffrom
neesingh-rh:wip-67077-reef
Nov 9, 2024
Merged

reef: mds: fix session/client evict command.#58726
vshankar merged 4 commits intoceph:reeffrom
neesingh-rh:wip-67077-reef

Conversation

@neesingh-rh
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/67077


backport of #49974
parent tracker: https://tracker.ceph.com/issues/58619

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

neeraj pratap singh added 3 commits July 22, 2024 21:11
This commit fixes the issues in client/session evict command
using below solutions:
(1) client evict without filter is forbidden
(2) SessionFilter::parse is modified to support id=* (id=0 is not allowed)
(3) Invalid id error is handled
User can use client evict id=* to evict all clients.

Fixes:  https://tracker.ceph.com/issues/58619
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 0ef5941)
Since the tests in the class test_misc.TestSessionClientEvict
requires 3 clients, this should be run with a yaml that
configures 3 clients. Hence, removing the link to 1-mds-2-client.yaml
from qa/suits/fs/multiclient/clusters/

Fixes: https://tracker.ceph.com/issues/58619
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 5d8fd4c)
Adds a test class test_misc.TestSessionClientEvict
which contains test for the issues mentioned in this PR.

Fixes: https://tracker.ceph.com/issues/58619
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit f3e674d)
@neesingh-rh neesingh-rh added this to the reef milestone Jul 22, 2024
@neesingh-rh neesingh-rh added the cephfs Ceph File System label Jul 22, 2024
@github-actions github-actions bot added the tests label Jul 22, 2024
@lxbsz
Copy link
Member

lxbsz commented Jul 23, 2024

jenkins test make check

1 similar comment
@lxbsz
Copy link
Member

lxbsz commented Jul 24, 2024

jenkins test make check

@rishabh-d-dave
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/67981.

Introduced-by: 0ef5941
Fixes: http://tracker.ceph.com/issues/68132
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 4277cd2)
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar vshankar merged commit 49a4aef into ceph:reef Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants