Make libvirt import optional (OS X)
Scrub osds when ceph task finishes
Fixes: 7198
Signed-off-by: Warren Usui <warren.usui@inktank.com>
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>
Implement the rest of the checks for automatic pg scrubbing.
osd_scrub_pgs now:
1.) Insures that all pgs are clean and active.
2.) Performs the scrub of all OSDs.
3.) Waits until all pgs have been scrubbed or no progress in scrubbing has
    been made for two minutes.

These changes have been made on top of a previous check-in that was incomplete

Fixes: 7198
Signed-off-bye: Warren Usui <warren.usui@inktank.com>
Enable killing runs that haven't even started yet

This requires passing --machine-type.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Merge pull request #185 from ceph/wip-7342

Enable killing runs that haven't even started yet
schedule_suite: be slightly more verbose

Signed-off-by: Sage Weil <sage@inktank.com>
Move osd_scrub_pgs call to finally block of ceph main task.

Fixes: 7198
Signed-off-bye: Warren Usui <warren.usui@inktank.com>
Make sure osd_scrub_pgs gets called if healthy call fails.

Fixes: 7198
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Fix #7369: "sed expression must be raw string"

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Merge pull request #184 from ceph/wip-pg-scrub-from-ceph-wusui

Scrub osds when ceph task finishes
Add calamari setup/test tasks

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Add docstrings to s3 related tasks.

Fixes: 6536
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Merge pull request #189 from ceph/wip-6536-wusui

Add docstrings to s3 related tasks.
Show hostname instead of IP in errors

Signed-off-by: John Spray <john.spray@inktank.com>
Merge pull request #182 from ceph/wip-imports

Make libvirt import optional (OS X)
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>