]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix eviction of all FS clients 51010/head
authorPere Diaz Bou <pere-altea@hotmail.com>
Wed, 5 Apr 2023 16:54:45 +0000 (18:54 +0200)
committerPere Diaz Bou <pere-altea@hotmail.com>
Tue, 11 Apr 2023 11:37:41 +0000 (13:37 +0200)
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
(cherry picked from commit 780f49325aefd0b2c537462c6bb498232621ee8a)

src/pybind/mgr/dashboard/controllers/cephfs.py

index ed84c1b7d106eaa03014361f69fa2387e99958d9..7b7589d423abde88a2cc313956ddab98891470b2 100644 (file)
@@ -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):