cbt icon indicating copy to clipboard operation
cbt copied to clipboard

radosbench fails if client cannot read admin keyring

Open ASBishop opened this issue 9 years ago • 1 comments

The radosbench test uses the 'rados' tool, which requires the client admin key to access the cluster. The rados command will fail unless the user specified in the config file has read acess to the client admin keyring.

A workaround exists, and that is to set "cmd_path: 'sudo /usr/bin/rados'" in the test configuration. But this is cumbersome and breaks the ability to run the command under valgrind.

ASBishop avatar Jun 10 '16 19:06 ASBishop

+1. Where else might this be happening? A casual search of the code shows a lot of candidates.

grep -r common.pdsh . | grep -v sudo

You don't need sudo for everything, but I thought you did need it for rbd, radosgw-admin, or ceph commands. I'll be sure to run everything as user cbt and make sure that it works that way. Error checking enablement will help point out problems with permissions.

bengland2 avatar Aug 10 '16 12:08 bengland2