From a96ee419088a1550bb530ed16fac44ab1db1367a Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 27 May 2021 16:00:32 +0800 Subject: [PATCH] qa: do not raise for kclient for _fsync test For kclient, the write() will return -ENOSPC instead of the fsync(). Fixes: https://tracker.ceph.com/issues/45434 Signed-off-by: Xiubo Li --- qa/tasks/cephfs/test_full.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/test_full.py b/qa/tasks/cephfs/test_full.py index 86279b80c9a..6d98c28361f 100644 --- a/qa/tasks/cephfs/test_full.py +++ b/qa/tasks/cephfs/test_full.py @@ -325,8 +325,13 @@ class FullnessTestCase(CephFSTestCase): bytes += os.write(f, b'x' * 1024 * 1024) print("wrote bytes via buffered write, moving on to fsync") except OSError as e: - print("Unexpected error %s from write() instead of fsync()" % e) - raise + if {is_fuse}: + print("Unexpected error %s from write() instead of fsync()" % e) + raise + else: + print("Reached fullness after %.2f MB" % (bytes / (1024.0 * 1024.0))) + full = True + break try: os.fsync(f) -- 2.39.5