From: Pere Diaz Bou Date: Wed, 5 Apr 2023 16:54:45 +0000 (+0200) Subject: mgr/dashboard: fix eviction of all FS clients X-Git-Tag: v17.2.7~471^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e44f22a3a72210407efeefc2a1eb12d2edd29b68;p=ceph.git mgr/dashboard: fix eviction of all FS clients Signed-off-by: Pere Diaz Bou (cherry picked from commit 780f49325aefd0b2c537462c6bb498232621ee8a) --- diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index 3eb7e37e4e32..11b0f6a7b820 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -328,8 +328,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):