From: Xiubo Li Date: Thu, 27 May 2021 08:00:32 +0000 (+0800) Subject: qa: do not raise for kclient for _fsync test X-Git-Tag: v17.1.0~1264^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a96ee419088a1550bb530ed16fac44ab1db1367a;p=ceph.git 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 --- 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)