From c8ecd129491cdb4ad541890e876c39ee05bc00ef Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 6 Jun 2011 15:38:20 -0700 Subject: [PATCH] Remove mountpoint after shutting down cfuse. --- teuthology/task/cfuse.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/teuthology/task/cfuse.py b/teuthology/task/cfuse.py index 2148d2e59d..00cfdc2bc4 100644 --- a/teuthology/task/cfuse.py +++ b/teuthology/task/cfuse.py @@ -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, + ], + ) -- 2.39.5