On Tue, 25 Feb 2014, Tomas Babej wrote:
Hi,

As a part of a better cleanup procedure in the integration tests,
make sure that winbindd is not running after uninstalling the IPA
server.

--
Tomas Babej
Associate Software Engeneer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org



From ae2c3a7d3c559c53d7c4b61b80599145e8956db5 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Tue, 25 Feb 2014 12:53:44 +0100
Subject: [PATCH] ipatests: Kill winbindd process after uninstall

As a part of a better cleanup procedure in the integration tests,
make sure that winbindd is not running after uninstalling the IPA
server.
---
ipatests/test_integration/tasks.py | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/ipatests/test_integration/tasks.py 
b/ipatests/test_integration/tasks.py
index 
9a6ea3fa548a53d6e5ab6d19783227c2d956a001..c180b0af0ba41b05f3e95ada63aa3aa68d6fc31c
 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -444,6 +444,15 @@ def uninstall_master(host):

    host.run_command(['ipa-server-install', '--uninstall', '-U'],
                     raiseonerr=False)
+
+    # Processes that should not be left running after uninstall
+    # So far we encountered stray processes of winbind only,
+    # add more if required
+
+    processes_to_kill = ('winbindd', )
+    for process in processes_to_kill:
+        host.run_command(['killall', '-9', process], raiseonerr=False)
+
    unapply_fixes(host)

ACK.

--
/ Alexander Bokovoy

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to