]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove mountpoint after shutting down cfuse.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Mon, 6 Jun 2011 22:38:20 +0000 (15:38 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Mon, 6 Jun 2011 22:38:20 +0000 (15:38 -0700)
teuthology/task/cfuse.py

index 2148d2e59d3d1a9f0f3588d323f16b573a0828f6..00cfdc2bc49874a15d0257ec9f34a95fcd55a6ff 100644 (file)
@@ -88,3 +88,18 @@ def task(ctx, config):
                     ],
                 )
         run.wait(cfuse_daemons.itervalues())
+
+        for role in config:
+            assert isinstance(role, basestring)
+            PREFIX = 'client.'
+            assert role.startswith(PREFIX)
+            id_ = role[len(PREFIX):]
+            (remote,) = ctx.cluster.only(role).remotes.iterkeys()
+            mnt = os.path.join('/tmp/cephtest', 'mnt.{id}'.format(id=id_))
+            remote.run(
+                args=[
+                    'rmdir',
+                    '--',
+                    mnt,
+                    ],
+                )