]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/nfs: stop nfs server after test finishes more thoroughly 342/head
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Oct 2014 07:47:57 +0000 (15:47 +0800)
committerGreg Farnum <greg@inktank.com>
Mon, 20 Oct 2014 17:55:25 +0000 (10:55 -0700)
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 <zyan@redhat.com>
Signed-off-by: Greg Farnum <Greg@inktank.com>
teuthology/task/knfsd.py

index a3d13a753dc1aff2fb1585e1aee3f6d7d3016a6e..96f501717ccc7e4fa2bda50332ce74d2bebec019 100644 (file)
@@ -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=[