From 780f49325aefd0b2c537462c6bb498232621ee8a Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 5 Apr 2023 18:54:45 +0200 Subject: [PATCH] mgr/dashboard: fix eviction of all FS clients Signed-off-by: Pere Diaz Bou --- src/pybind/mgr/dashboard/controllers/cephfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index ed84c1b7d106e..7b7589d423abd 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -331,8 +331,9 @@ class CephFS(RESTController): raise cherrypy.HTTPError(404, "Client {0} does not exist in cephfs {1}".format(client_id, fs_id)) + filters = [f'id={client_id}'] CephService.send_command('mds', 'client evict', - srv_spec='{0}:0'.format(fs_id), id=client_id) + srv_spec='{0}:0'.format(fs_id), filters=filters) @staticmethod def _cephfs_instance(fs_id): -- 2.39.5