Skip to content

Commit ecc38a5

Browse files
committed
fix(disrupt_add_remove_dc): support docker backend
nemesis is changing `cassandra-rackdc.properties` for the new node on VMs this happens before scylla starts, but on docker backend scylla starts as the docker instance is started, so this change isn't picked. we are adding a restart to scylla service, so those change to configuration would be picked
1 parent 03c0cba commit ecc38a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdcm/nemesis.py

+2
Original file line numberDiff line numberDiff line change
@@ -4459,6 +4459,8 @@ def _add_new_node_in_new_dc(self) -> BaseNode:
44594459
rackdc_value = {"dc_suffix": "_nemesis_dc"}
44604460
with new_node.remote_cassandra_rackdc_properties() as properties_file:
44614461
properties_file.update(**rackdc_value)
4462+
if self.cluster.params.get('cluster_backend') == "docker":
4463+
new_node.restart_scylla()
44624464
self.cluster.wait_for_init(node_list=[new_node], timeout=900,
44634465
check_node_health=False)
44644466
new_node.wait_node_fully_start()

0 commit comments

Comments
 (0)