]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: drop --cluster and sudo in create_rbd_pool() 58541/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 10 Jul 2024 09:53:05 +0000 (11:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 11 Jul 2024 15:25:10 +0000 (17:25 +0200)
The cluster (name) is already specified in the arguments passed to
_shell() and this command doesn't need privileges.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 26cee25873d5c91c704326fd0b708c53b353dd11)

qa/tasks/cephadm.py

index d0697d06b721b0f685215a985ec0682f9ac5bfce..dbc1d982a733ee2fd10629e3736df470bc741348 100644 (file)
@@ -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