From: Jeff Layton Date: Tue, 15 Jun 2021 11:16:00 +0000 (-0400) Subject: qa: log messages when falling back to force/lazy umount X-Git-Tag: v17.1.0~1594^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53863f3654568775f7af5c95d0c964c55183f1d0;p=ceph.git qa: log messages when falling back to force/lazy umount We suspect that we may be hitting races against lazy umounts that are causing problems when enumerating debugfs files. Currently though we don't log anything special when falling back to a lazy unmount. Log a message when killing processes on a mount and when force+lazy unmounting. Signed-off-by: Jeff Layton --- diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index e02d2b1be71f..9f725a8faa0f 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -105,6 +105,7 @@ class KernelMount(CephFSMount): cmd.append('-f') self.client_remote.run(args=cmd, timeout=(15*60), omit_sudo=False) except Exception as e: + log.debug('Killing processes on client.{id}...'.format(id=self.client_id)) self.client_remote.run( args=['sudo', run.Raw('PATH=/usr/sbin:$PATH'), 'lsof', run.Raw(';'), 'ps', 'auxf'], @@ -129,6 +130,7 @@ class KernelMount(CephFSMount): raise # force delete the netns and umount + log.debug('Force/lazy unmounting on client.{id}...'.format(id=self.client_id)) self.client_remote.run(args=['sudo', 'umount', '-f', '-l', self.mountpoint], timeout=(15*60), omit_sudo=False)