Skip to content

Commit

Permalink
Execute radosbench test using sudo
Browse files Browse the repository at this point in the history
When running a radosbench test, execute the /usr/bin/rados command with sudo
in order to ensure the client can read the admin keyring.

Closes ceph#105
  • Loading branch information
asbishop authored and asbishop committed Nov 3, 2016
1 parent f2b6045 commit ca0e566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/radosbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _run(self, mode, run_dir, out_dir):
if self.pool_per_proc: # support previous behavior of 1 storage pool per rados process
pool_name = 'rados-bench-`hostname -s`-%s'%i
run_name = ''
rados_bench_cmd = '%s -c %s -p %s bench %s %s %s %s %s %s %s --no-cleanup 2> %s > %s' % \
rados_bench_cmd = 'sudo %s -c %s -p %s bench %s %s %s %s %s %s %s --no-cleanup 2> %s > %s' % \
(self.cmd_path_full, self.tmp_conf, pool_name, op_size_str, self.time, mode, concurrent_ops_str, max_objects_str, write_omap_str, run_name, objecter_log, out_file)
p = common.pdsh(settings.getnodes('clients'), rados_bench_cmd)
ps.append(p)
Expand Down

0 comments on commit ca0e566

Please sign in to comment.