]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: drop --cluster and sudo in create_rbd_pool() 58507/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 10 Jul 2024 09:53:05 +0000 (11:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 10 Jul 2024 10:44:12 +0000 (12:44 +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>
qa/tasks/cephadm.py

index c80172de41f69dce81bc73ae41f8f7d13e12dbbe..41ee6a1b132c3356cdd0f9afb4876a61d0b83cba 100644 (file)
@@ -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