From c8f1ed121308901d9edfe038fc2c1be83cc3eaf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Tue, 10 Dec 2019 09:45:08 -0500 Subject: [PATCH] ipatests/test_nfs.py: wait before umount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit umount calls including in cleanup do not wait. The test failed once with: "umount.nfs4: /home: device is busy" which looks like a leftover open file descriptor. Add wait periods before umount. Fixes: https://pagure.io/freeipa/issue/8144 Signed-off-by: François Cami Reviewed-By: Thomas Woerner Reviewed-By: Alexander Bokovoy --- ipatests/test_integration/test_nfs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipatests/test_integration/test_nfs.py b/ipatests/test_integration/test_nfs.py index 9adbc9e8f..c59290f86 100644 --- a/ipatests/test_integration/test_nfs.py +++ b/ipatests/test_integration/test_nfs.py @@ -39,6 +39,8 @@ class TestNFS(IntegrationTest): nfsclt = self.clients[1] automntclt = self.clients[2] + time.sleep(WAIT_AFTER_UNINSTALL) + nfsclt.run_command(["umount", "-a", "-t", "nfs4"]) nfsclt.run_command(["systemctl", "stop", "rpc-gssd"]) @@ -205,6 +207,8 @@ class TestNFS(IntegrationTest): # TODO leverage users + time.sleep(WAIT_AFTER_UNINSTALL) + automntclt.run_command(["umount", "-a", "-t", "nfs4"]) result2 = automntclt.run_command([