From: Yan, Zheng Date: Wed, 15 Oct 2014 07:47:57 +0000 (+0800) Subject: task/nfs: stop nfs server after test finishes more thoroughly X-Git-Tag: 1.1.0~1115^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=049c6a99d9d0a3c28106206f81bd96ad3a2fad1b;p=teuthology.git task/nfs: stop nfs server after test finishes more thoroughly In addition to "exportfs -au", we take a sledgehammer to it by shutting down all the worker threads and flushing out the client export table. Signed-off-by: Yan, Zheng Signed-off-by: Greg Farnum --- diff --git a/teuthology/task/knfsd.py b/teuthology/task/knfsd.py index a3d13a753..96f501717 100644 --- a/teuthology/task/knfsd.py +++ b/teuthology/task/knfsd.py @@ -151,6 +151,20 @@ def task(ctx, config): '-au', ], ) + remote.run( + args=[ + 'sudo', + 'rpc.nfsd', + '0', + ], + ) + remote.run( + args=[ + 'sudo', + 'exportfs', + '-f', + ], + ) log.debug('Syncing client client.{id}'.format(id=id_)) remote.run( args=[