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: v20.0.0~1548^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58507%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 --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index c80172de41f6..41ee6a1b132c 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -1810,8 +1810,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