]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: make tmpfs check only umount tmpfs
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 6 Feb 2013 07:28:08 +0000 (23:28 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 6 Feb 2013 07:28:12 +0000 (23:28 -0800)
This would catch things like /tmp/cephtest/mnt.client.0, which are
used by cfuse, rbd, and kclient.

teuthology/nuke.py

index 4ea5c7b9d1cc46d50fa6def00898e04c6afa4f96..b94c7b9c6992805097ae6cc3a58b8bb975dd3bc5 100644 (file)
@@ -174,7 +174,7 @@ def remove_osd_tmpfs(ctx, log):
     from .orchestra import run
     ctx.cluster.run(
         args=[
-            'grep', '/mnt', '/etc/mtab', run.Raw('|'),
+            'egrep', 'tmpfs\s+/mnt', '/etc/mtab', run.Raw('|'),
             'awk', '{print $2}', run.Raw('|'),
             'xargs', '-r',
             'sudo', 'umount', run.Raw(';'),