From fcc440da9aaa6585872e830a5e39aefce1df82fe Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 10 Jul 2024 09:10:02 +0200 Subject: [PATCH] qa/tasks: initialize rbd pool instead of just tagging it Signed-off-by: Ilya Dryomov --- qa/tasks/ceph.py | 7 +------ qa/tasks/cephadm.py | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 6314183c3b3..24f0c3831e8 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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 diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 23a3e2cf9d7..765e2a9248c 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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 -- 2.39.5