RHEL repo certificates may be readonly-root; work around with sudo

This means the build will sudo, which could cause problems for automation
if the build user doesn't have passwordless sudo set up.  We do, at
the moment, but other users may want to beware.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
tests: change get_timeout_scaling_factor to return int

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: Move api location and creds into test config template

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: Reduce operations on pools during inter-test reset

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: remove port number

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
cthulhu: fix PEP8 warning

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: stop iterating the characters in the log path

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: skip changing the crush rules set of a pool if there is only one

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
tests: add a stub so that tests that restart can pass for now

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>