]> 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>
Wed, 10 Jul 2024 10:33:45 +0000 (12:33 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/tasks/ceph.py
qa/tasks/cephadm.py

index 6314183c3b3742ebecc78f0d792e3f47d1060c9a..24f0c3831e8afd2d8e683cb65ffc072f960f8501 100644 (file)
@@ -472,12 +472,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 23a3e2cf9d7bea131ee562b6ae388c759fccea3e..765e2a9248cbe183ef4a818105d022186f9922db 100644 (file)
@@ -1820,10 +1820,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