]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: log messages when falling back to force/lazy umount 41860/head
authorJeff Layton <jlayton@redhat.com>
Tue, 15 Jun 2021 11:16:00 +0000 (07:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 15 Jun 2021 11:16:00 +0000 (07:16 -0400)
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 <jlayton@redhat.com>
qa/tasks/cephfs/kernel_mount.py

index e02d2b1be71ff4224787bdbab45f5f17adad0858..9f725a8faa0f3b4106eda905914467dbc939f7d9 100644 (file)
@@ -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)