From: Zack Cerza Date: Thu, 4 Aug 2022 19:02:38 +0000 (-0600) Subject: misc.get_scratch_devices(): Ignore devtmpfs X-Git-Tag: 1.2.0~140^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1790%2Fhead;p=teuthology.git misc.get_scratch_devices(): Ignore devtmpfs Devices shared with a container by its host will appear in /proc/mounts this way. Signed-off-by: Zack Cerza --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 289089b31..26a9d2438 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -811,7 +811,11 @@ def get_scratch_devices(remote): dev_checks = [ [['stat', dev], "does not exist"], [['sudo', 'dd', 'if=%s' % dev, 'of=/dev/null', 'count=1'], "is not readable"], - [[run.Raw('!'), 'mount', run.Raw('|'), 'grep', '-q', dev], "is in use"], + [ + [run.Raw('!'), 'mount', run.Raw('|'), 'grep', '-v', 'devtmpfs', run.Raw('|'), + 'grep', '-q', dev], + "is in use" + ], ] for args, msg in dev_checks: try: