]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks: initialize rbd pool instead of just tagging it
authorIlya Dryomov <idryomov@gmail.com>
Wed, 10 Jul 2024 07:10:02 +0000 (09:10 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 11 Jul 2024 15:25:04 +0000 (17:25 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit fcc440da9aaa6585872e830a5e39aefce1df82fe)

qa/tasks/ceph.py
qa/tasks/cephadm.py

index a7b3ad4c5eec6b75a3bd1a1672e9fa6dc1ae6ff6..9177974ed08deba044a37a9664ea1e1e01dba673 100644 (file)
@@ -410,12 +410,7 @@ def create_rbd_pool(ctx, config):
             args=['sudo', 'ceph', '--cluster', cluster_name,
                   'osd', 'pool', 'create', 'rbd', '8'])
         mon_remote.run(
-            args=[
-                'sudo', 'ceph', '--cluster', cluster_name,
-                'osd', 'pool', 'application', 'enable',
-                'rbd', 'rbd', '--yes-i-really-mean-it'
-            ],
-            check_status=False)
+            args=['rbd', '--cluster', cluster_name, 'pool', 'init', 'rbd'])
     yield
 
 @contextlib.contextmanager
index 67384b12d3ac2fdd74c01cb2ba4c5b4a69529805..8617c5025ca7750860602d0ffb32ad9fc0bb97b7 100644 (file)
@@ -1730,10 +1730,7 @@ def create_rbd_pool(ctx, config):
           args=['sudo', 'ceph', '--cluster', cluster_name,
                 'osd', 'pool', 'create', 'rbd', '8'])
       _shell(ctx, cluster_name, ctx.ceph[cluster_name].bootstrap_remote,
-          args=['sudo', 'ceph', '--cluster', cluster_name,
-                'osd', 'pool', 'application', 'enable',
-                'rbd', 'rbd', '--yes-i-really-mean-it'
-          ])
+          args=['rbd', 'pool', 'init', 'rbd'])
     yield