From d54e6b6eb87293884e1d3ad6b8139265b8f0c561 Mon Sep 17 00:00:00 2001 From: Alexey Zatelepin Date: Wed, 15 May 2024 13:53:46 +0200 Subject: [PATCH] tests/end_to_end: add num_started_nodes param to start_redpanda() Allows not starting all nodes at once. --- tests/rptest/tests/end_to_end.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/rptest/tests/end_to_end.py b/tests/rptest/tests/end_to_end.py index 393fa1d49cb34..c0c12dde7e950 100644 --- a/tests/rptest/tests/end_to_end.py +++ b/tests/rptest/tests/end_to_end.py @@ -79,6 +79,7 @@ def __init__(self, def start_redpanda(self, num_nodes=1, + num_started_nodes=None, extra_rp_conf=None, si_settings=None, environment=None, @@ -122,7 +123,11 @@ def start_redpanda(self, self.redpanda._installer.install(self.redpanda.nodes, version_to_install) - self.redpanda.start(auto_assign_node_id=new_bootstrap, + started_nodes = None + if num_started_nodes is not None: + started_nodes = self.redpanda.nodes[:num_started_nodes] + self.redpanda.start(nodes=started_nodes, + auto_assign_node_id=new_bootstrap, omit_seeds_on_idx_one=not new_bootstrap) if version_to_install and install_opts.num_to_upgrade > 0: # Perform the upgrade rather than starting each node on the