misc.py: helper roles_to_remotes for generic use

roles_to_remotes will take a config key, 'roles' by default,
and search cluster.remotes for those roles, returning a list
of remotes that hold it.  The list is uniquified by default,
but that can be overridden.  So you can have a task that
should run on specific roles, configure it with
"roles: [mon.0 server.0 osd.2]", and call this to get a list
of remotes that contain those roles.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Add calamari setup/test tasks

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Show hostname instead of IP in errors

Signed-off-by: John Spray <john.spray@inktank.com>
Capture stderr and include in CommandFailedError

Signed-off-by: John Spray <john.spray@inktank.com>
Remove spurious print

This was causing junk output like <type 'exceptions.StopIteration'>

Signed-off-by: John Spray <john.spray@inktank.com>
Timestamp stdout log output

Signed-off-by: John Spray <john.spray@inktank.com>
Catch a case where we weren't getting tracebacks

Signed-off-by: John Spray <john.spray@inktank.com>
Log correct name of context during errors

(instead of GeneratorContextManager)

Signed-off-by: John Spray <john.spray@inktank.com>
Spelling

Signed-off-by: John Spray <john.spray@inktank.com>
Fix flake8 failures

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Added some docstrings.

Fixes: 7002
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Review: Rename calamari_testdir/ to calamari/
Readjust the indentation of mon_clock_skew_check.py and mon_thrash.py.
Added docstrings.

Fixes: 6537
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Add doc strings to Swift tests

Fixes: 6538
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Add docstrings to internal.py

Fixes: 6534
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Merge pull request #187 from ceph/wip-better-debug

Debug output improvements
Merge pull request #191 from ceph/wip-7002-wusui

Added some docstrings.
Merge pull request #193 from ceph/wip-6538-wusui

Add doc strings to Swift tests
Merge pull request #194 from ceph/wip-6534-wusui

Add docstrings to internal.py
Merge pull request #192 from ceph/wip-6537-wusui

Readjust the indentation of mon_clock_skew_check.py and mon_thrash.py.