From: Ilya Dryomov Date: Wed, 10 Jul 2024 09:53:05 +0000 (+0200) Subject: qa/tasks/cephadm: drop --cluster and sudo in create_rbd_pool() X-Git-Tag: v19.1.1~117^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58541%2Fhead;p=ceph.git 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) --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index d0697d06b721..dbc1d982a733 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -1720,8 +1720,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