From 49f95b3d8b43bb22c0faf15f05d11ac3cbe1fad6 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Wed, 6 Sep 2017 18:07:54 -0700 Subject: [PATCH] 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 --- qa/tasks/ceph_deploy.py | 13 +++++++++++++ qa/workunits/ceph-tests/ceph-admin-commands.sh | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/qa/tasks/ceph_deploy.py b/qa/tasks/ceph_deploy.py index b22c32113ce..78f82dedfa9 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 4d850c391bb..30e74cce5b5 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 -- 2.39.5