From 049c6a99d9d0a3c28106206f81bd96ad3a2fad1b Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 15 Oct 2014 15:47:57 +0800 Subject: [PATCH] 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 --- teuthology/task/knfsd.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/teuthology/task/knfsd.py b/teuthology/task/knfsd.py index a3d13a753d..96f501717c 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=[ -- 2.39.5