From: Dan Mick Date: Fri, 30 Aug 2013 22:42:53 +0000 (-0700) Subject: get_scratch_devices(): catch CommandFailedError, log "dev in use" X-Git-Tag: 1.1.0~1916 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=416508de9c628c5cae1b3a7f05bb3ec0e3639bdb;p=teuthology.git get_scratch_devices(): catch CommandFailedError, log "dev in use" Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 7be8fb271..041f8da81 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -648,6 +648,9 @@ def get_scratch_devices(remote): ] ) retval.append(dev) + except CommandFailedError: + log.debug("get_scratch_devices: %s is in use" % dev) + pass except Exception: log.exception("Saw exception") pass