File bsc#1121272-0002-Test-cts-resume-any-possibly-frozen-pacemaker_remote.patch of Package pacemaker.12602
From f44c1a5466af6175acc26ba320d12024e60194b5 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Tue, 4 Dec 2018 18:15:01 +0100
Subject: [PATCH 2/3] Test: cts: resume any possibly frozen pacemaker_remoted
when cleaning up the test
---
cts/CTStests.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cts/CTStests.py b/cts/CTStests.py
index 2bd3a0f23..8e14e3cda 100644
--- a/cts/CTStests.py
+++ b/cts/CTStests.py
@@ -2750,6 +2750,10 @@ class RemoteDriver(CTSTest):
# We freeze the process.
self.rsh(node, "killall -STOP pacemaker_remoted")
+ def resume_pcmk_remote(self, node):
+ # We resume the process.
+ self.rsh(node, "killall -CONT pacemaker_remoted")
+
def start_metal(self, node):
pcmk_started = 0
@@ -2938,6 +2942,8 @@ class RemoteDriver(CTSTest):
self.set_timer("remoteMetalCleanup")
+ self.resume_pcmk_remote(node)
+
if self.remote_use_reconnect_interval:
self.debug("Cleaning up re-check interval")
self.rsh(self.get_othernode(node), self.templates["ClearCheckInterval"])
--
2.16.4