Skip to content

Commit

Permalink
tests/end_to_end: add num_started_nodes param to start_redpanda()
Browse files Browse the repository at this point in the history
Allows not starting all nodes at once.
  • Loading branch information
ztlpn committed May 15, 2024
1 parent 46e7a58 commit d54e6b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/rptest/tests/end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d54e6b6

Please sign in to comment.