From: Vasu Kulkarni Date: Thu, 7 Sep 2017 01:07:54 +0000 (-0700) Subject: create the rbd pool right after install X-Git-Tag: v13.0.1~998^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49f95b3d8b43bb22c0faf15f05d11ac3cbe1fad6;p=ceph.git create the rbd pool right after install rbd pool should exist for many rbd tests to work properly, create the pool right after install is successful. Signed-off-by: Vasu Kulkarni --- diff --git a/qa/tasks/ceph_deploy.py b/qa/tasks/ceph_deploy.py index b22c32113ced..78f82dedfa91 100644 --- a/qa/tasks/ceph_deploy.py +++ b/qa/tasks/ceph_deploy.py @@ -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: diff --git a/qa/workunits/ceph-tests/ceph-admin-commands.sh b/qa/workunits/ceph-tests/ceph-admin-commands.sh index 4d850c391bbe..30e74cce5b56 100755 --- a/qa/workunits/ceph-tests/ceph-admin-commands.sh +++ b/qa/workunits/ceph-tests/ceph-admin-commands.sh @@ -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