When unused clients were mounted during an fs new,
they would end up in a state where they stalled
on subsequent attempts to umount them (ceph-fuse
stalls on exit if it can't terminate its mds_session)
Signed-off-by: John Spray <john.spray@redhat.com>
log.debug("wait_until_true: success")
+
class LogStream(object):
def __init__(self):
self.buffer = ""
result_class = InteractiveFailureResult
else:
result_class = unittest.TextTestResult
+
+ # Unmount all clients not involved
+ for mount in ctx.mounts.values():
+ if mount is not params.get('mount_a') and mount is not params.get('mount_b'):
+ if mount.is_mounted():
+ log.info("Unmounting unneeded client {0}".format(mount.client_id))
+ mount.umount_wait()
+
+ # Execute!
result = unittest.TextTestRunner(
stream=LogStream(),
resultclass=result_class,