fix error on teardown failing to unmount /mnt

This commit is contained in:
Sam Lang 2012-09-18 15:56:08 -07:00
parent 808e2b234e
commit 5ce4d70e4b

View File

@ -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