[COMMIT scylla-cluster-tests master] fix(poweroff): remove event filters

0 views
Skip to first unread message

Commit Bot

unread,
Sep 27, 2021, 10:18:33 AMSep 27
to scylla...@googlegroups.com, Dmitry Kropachev
From: Dmitry Kropachev <dmitry.k...@gmail.com>
Committer: Bentsi <ben...@scylladb.com>
Branch: master

fix(poweroff): remove event filters

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -4483,8 +4483,7 @@ def get_node_ip_list(verification_node):
raise NodeStayInClusterAfterDecommission(error_msg)

LOGGER.info('Decommission %s PASS', node)
- with DbEventsFilter(db_event=DatabaseLogEvent.POWER_OFF, node=node):
- self.terminate_node(node) # pylint: disable=no-member
+ self.terminate_node(node) # pylint: disable=no-member
self.test_config.tester_obj().monitors.reconfigure_scylla_monitoring()

def decommission(self, node):
diff --git a/sdcm/nemesis.py b/sdcm/nemesis.py
--- a/sdcm/nemesis.py
+++ b/sdcm/nemesis.py
@@ -783,8 +783,7 @@ def _get_kubernetes_node_break_methods(self):
f"does not support node termination")

def _terminate_cluster_node(self, node):
- with DbEventsFilter(db_event=DatabaseLogEvent.POWER_OFF, node=node):
- self.cluster.terminate_node(node)
+ self.cluster.terminate_node(node)
self.monitoring_set.reconfigure_scylla_monitoring()

def disrupt_nodetool_decommission(self, add_node=True, disruption_name=None):
Reply all
Reply to author
Forward
0 new messages