From deb143cab2b4e30de84ab5270b8a3d5b8c3591ad Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 10 Jul 2024 11:53:05 +0200 Subject: [PATCH] qa/tasks/cephadm: drop --cluster and sudo in create_rbd_pool() The cluster (name) is already specified in the arguments passed to _shell() and this command doesn't need privileges. Signed-off-by: Ilya Dryomov (cherry picked from commit 26cee25873d5c91c704326fd0b708c53b353dd11) --- qa/tasks/cephadm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 51fce8ac6ef3..018bd8d3dbcb 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -1443,8 +1443,7 @@ def create_rbd_pool(ctx, config): cluster_name = config['cluster'] log.info('Creating RBD pool') _shell(ctx, cluster_name, ctx.ceph[cluster_name].bootstrap_remote, - args=['sudo', 'ceph', '--cluster', cluster_name, - 'osd', 'pool', 'create', 'rbd', '8']) + args=['ceph', 'osd', 'pool', 'create', 'rbd', '8']) _shell(ctx, cluster_name, ctx.ceph[cluster_name].bootstrap_remote, args=['rbd', 'pool', 'init', 'rbd']) yield -- 2.47.3