]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix eviction of all FS clients 51011/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:38:07 +0000 (13:38 +0200)
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
(cherry picked from commit 780f49325aefd0b2c537462c6bb498232621ee8a)

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

index 3eb7e37e4e32c0c08d4f27cfd3d614dd174b8960..11b0f6a7b820aa32e30752e3d325500105e6698c 100644 (file)
@@ -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):