From 5ce4d70e4be791d29ef32fd34d9f929cbd3e99a7 Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Tue, 18 Sep 2012 15:56:08 -0700 Subject: [PATCH] fix error on teardown failing to unmount /mnt --- teuthology/task/ceph.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index d70cc47e9b..9dcc4a2b9c 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -773,11 +773,13 @@ def cluster(ctx, config): ] ) - for remote, roles_for_host in osds.remotes.iteritems(): - remote.run( - args=[ 'sudo', 'umount', '-f', '/mnt' ], - check_status=False, - ) + if config.get('tmpfs_journal'): + log.info('tmpfs journal enabled - unmounting tmpfs at /mnt') + for remote, roles_for_host in osds.remotes.iteritems(): + remote.run( + args=[ 'sudo', 'umount', '-f', '/mnt' ], + check_status=False, + ) if ctx.archive is not None: # archive mon data, too -- 2.39.5