From d4823535cedd5556392727eba4f5b8865aef202f Mon Sep 17 00:00:00 2001 From: Aleksandr Bykov Date: Thu, 14 Nov 2024 18:45:56 +0700 Subject: [PATCH] fix(add_remove_dc): Use correct method to get cluster status Use correct method to get cluster nodes status in disrupt_add_remove_dc method Fixes: #9204 --- sdcm/nemesis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcm/nemesis.py b/sdcm/nemesis.py index 1094f5f012..cfa94487b7 100644 --- a/sdcm/nemesis.py +++ b/sdcm/nemesis.py @@ -4744,7 +4744,7 @@ def finalizer(exc_type, *_): with temporary_replication_strategy_setter(node) as replication_strategy_setter: new_node = self._add_new_node_in_new_dc() node_added = True - status = self.tester.db_cluster.get_node() + status = self.tester.db_cluster.get_nodetool_status() new_dc_list = [dc for dc in list(status.keys()) if dc.endswith("_nemesis_dc")] assert new_dc_list, "new datacenter was not registered" new_dc_name = new_dc_list[0]