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: v18.1.0~180^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F51010%2Fhead;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 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):