]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
create the rbd pool right after install
authorVasu Kulkarni <vasu@redhat.com>
Thu, 7 Sep 2017 01:07:54 +0000 (18:07 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 7 Sep 2017 01:07:54 +0000 (18:07 -0700)
rbd pool should exist for many rbd tests to work properly, create
the pool right after install is successful.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/ceph_deploy.py
qa/workunits/ceph-tests/ceph-admin-commands.sh

index b22c32113ced9305c82bcf99e5440f527284cc0e..78f82dedfa91fd3ae1a94ac42a1f2a112d1baf3a 100644 (file)
@@ -418,6 +418,19 @@ def build_ceph_cluster(ctx, config):
         elif not config.get('only_mon'):
             raise RuntimeError(
                 "The cluster is NOT operational due to insufficient OSDs")
+        # create rbd pool
+        ceph_admin.run(
+            args=[
+                'sudo', 'ceph', '--cluster', 'ceph',
+                'osd', 'pool', 'create', 'rbd', '128', '128'],
+            check_status=False)
+        ceph_admin.run(
+            args=[
+                'sudo', 'ceph', '--cluster', 'ceph',
+                'osd', 'pool', 'application', 'enable',
+                'rbd', 'rbd', '--yes-i-really-mean-it'
+                ],
+            check_status=False)
         yield
 
     except Exception:
index 4d850c391bbe40d6c8dac28c545c592eac654282..30e74cce5b56da7c2ce6e355501521edfc558140 100755 (executable)
@@ -5,7 +5,6 @@ ceph -s
 #list pools
 rados lspools
 #lisr rbd images
-ceph osd pool create rbd 128 128
 rbd ls
 #check that the monitors work
 ceph osd set nodown