From 3d0a927ecf530ba7ef1d2636afc282af7c44435c Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Thu, 30 Nov 2023 11:01:05 +0530 Subject: [PATCH] qa/cephfs: try usual umount if client blocklisting cannot be inferred Signed-off-by: Venky Shankar --- qa/tasks/cephfs/mount.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 4939908892148..4a81874068ff3 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -186,6 +186,12 @@ class CephFSMount(object): sudo=True).decode()) def is_blocked(self): + if not self.addr: + # can't infer if our addr is blocklisted - let the caller try to + # umount without lazy/force. If the client was blocklisted, then + # the umount would be stuck and the test would fail on timeout. + # happens only with Ubuntu 20.04 (missing kclient patches :/). + return False self.fs = Filesystem(self.ctx, name=self.cephfs_name) try: -- 2.39.5