From 8e275049a0a8b976fc9eb5c63dcefe01bedcc711 Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 1 Sep 2015 11:31:23 +0100 Subject: [PATCH] tasks/cephfs: fix mount_timeout config loading Previously were defaulting to a string, which always compared greater than elapsed, so never timed out. Fixes: #12820 Signed-off-by: John Spray --- tasks/cephfs/fuse_mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/cephfs/fuse_mount.py b/tasks/cephfs/fuse_mount.py index 6332852b8232a..963bea49b8546 100644 --- a/tasks/cephfs/fuse_mount.py +++ b/tasks/cephfs/fuse_mount.py @@ -104,7 +104,7 @@ class FuseMount(CephFSMount): if mount_wait > 0: log.info("Fuse mount waits {0} seconds before checking /sys/".format(mount_wait)) time.sleep(mount_wait) - timeout = self.client_config.get('mount_timeout', '30') + timeout = int(self.client_config.get('mount_timeout', 30)) waited = 0 while list_connections() == pre_mount_conns: time.sleep(1) -- 2.39.5