From f54e5414f9b4a3856dc59ae33cb2a66ac14c4169 Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 24 Feb 2015 09:26:10 +0000 Subject: [PATCH] tasks/ceph_fuse: populate ctx.mounts earlier ...so that if an error happens during mount, I can use the interactive console to access ctx.mounts. Signed-off-by: John Spray --- tasks/ceph_fuse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/ceph_fuse.py b/tasks/ceph_fuse.py index c2c1a535b5c..60988dd1fdc 100644 --- a/tasks/ceph_fuse.py +++ b/tasks/ceph_fuse.py @@ -109,6 +109,8 @@ def task(ctx, config): if client_config.get('mounted', True): mounted_by_me[id_] = all_mounts[id_] + ctx.mounts = all_mounts + # Mount any clients we have been asked to (default to mount all) for mount in mounted_by_me.values(): mount.mount() @@ -122,7 +124,6 @@ def task(ctx, config): if mount.is_mounted(): mount.umount_wait() - ctx.mounts = all_mounts try: yield all_mounts finally: