From 89347539ad73ed0c218fc0ffca2a23c6221992be Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 4 Aug 2013 14:54:20 -0700 Subject: [PATCH] samba: wait for smbd process to exit I saw 2013-08-03T12:56:26.641 DEBUG:teuthology.orchestra.run:Running [10.214.131.28]: 'sudo killall -9 smbd' 2013-08-03T12:56:26.727 DEBUG:teuthology.orchestra.run:Running [10.214.131.28]: 'sudo lsof /home/ubuntu/cephtest/93695/mnt.0' 2013-08-03T12:56:26.830 INFO:teuthology.orchestra.run.out:[10.214.131.28]: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME 2013-08-03T12:56:26.830 INFO:teuthology.orchestra.run.out:[10.214.131.28]: smbd 12381 root cwd DIR 0,0 0 1 /home/ubuntu/cephtest/93695/mnt.0 which makes me think we just need to wait a moment before attempting the umount? Signed-off-by: Sage Weil --- teuthology/task/samba.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/task/samba.py b/teuthology/task/samba.py index 4c2294993d..a319ca570c 100644 --- a/teuthology/task/samba.py +++ b/teuthology/task/samba.py @@ -196,7 +196,12 @@ def task(ctx, config): try: remote.run( args=[ + 'while', 'sudo', 'killall', '-9', 'smbd', + run.Raw(';'), + 'do', 'sleep', '1', + run.Raw(';'), + 'done', ], ) -- 2.39.5