]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: use cephfs tags when recreating osd caps
authorMykola Golub <mykola.golub@clyso.com>
Wed, 1 Mar 2023 10:45:00 +0000 (12:45 +0200)
committerMykola Golub <mykola.golub@clyso.com>
Wed, 26 Apr 2023 06:03:18 +0000 (09:03 +0300)
to make it work when an extra data pool is added

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
(cherry picked from commit 6a384b5d7ff73de95821231b0d1476bd84956131)

qa/tasks/cephfs/cephfs_test_case.py

index e4f54986a6b67facd76db9d859f8071de8565224..129b84790e90371de84af87d11836e87f8a2c11e 100644 (file)
@@ -162,7 +162,7 @@ class CephFSTestCase(CephTestCase):
             # In case some test messed with auth caps, reset them
             for client_id in client_mount_ids:
                 cmd = ['auth', 'caps', f'client.{client_id}', 'mon','allow r',
-                       'osd', f'allow rw pool={self.fs.get_data_pool_name()}',
+                       'osd', f'allow rw tag cephfs data={self.fs.name}',
                        'mds', 'allow']
 
                 if self.run_cluster_cmd_result(cmd) == 0: