retval = []
for dev in devs:
try:
+ # FIXME: Split this into multiple calls.
remote.run(
args=[
# node exists
'mount',
run.Raw('|'),
'grep', '-q', dev,
- ]
- )
+ ]
+ )
retval.append(dev)
- except Exception:
- log.exception("Saw exception")
- pass
+ except run.CommandFailedError:
+ log.debug("get_scratch_devices: %s is in use" % dev)
return retval
+
def wait_until_healthy(ctx, remote):
"""Wait until a Ceph cluster is healthy."""
testdir = get_testdir(ctx)