]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
samba: run lsof and fuser after shutdown
authorGreg Farnum <greg@inktank.com>
Thu, 25 Jul 2013 18:04:50 +0000 (11:04 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 26 Jul 2013 16:39:26 +0000 (09:39 -0700)
The clients are pretty regularly reporting busy on unmount when
samba runs above them. This will hopefully give us some info about why.

Signed-off-by: Greg Farnum <greg@inktank.com>
teuthology/task/samba.py

index 52a37a2a6ec004b7a8849d977c0f4cd519aa12e0..4c2294993d8e8692bb979e4aea5eda0fd6cfaca6 100644 (file)
@@ -199,5 +199,21 @@ def task(ctx, config):
                         'sudo', 'killall', '-9', 'smbd',
                         ],
                     )
+
+                remote.run(
+                    args=[
+                        'sudo',
+                        'lsof',
+                        backend,
+                        ],
+                    )
+                remote.run(
+                    args=[
+                        'sudo',
+                        'fuser',
+                        '-M',
+                        backend,
+                        ],
+                    )
             except:
                 pass