Skip to content

Commit

Permalink
fix(kubernetes): make SCT support seedless scylla using operator
Browse files Browse the repository at this point in the history
operator v1.4.x switched to usage of seedless approach for scylla
and now we should not fail test run if no seed nodes are found.

So, make it be smart enough and do not fail when seed nodes are
not defined, but still allow it to be set.
It will allow us to run old and new operator versions using the same
code.
  • Loading branch information
vponomaryov authored and Bentsi committed Jul 12, 2021
1 parent acafd0b commit 012fdbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sdcm/cluster_k8s/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,9 +1970,15 @@ def node_setup(self, node: BaseScyllaPodContainer, verbose: bool = False, timeou

if TestConfig.MULTI_REGION:
node.datacenter_setup(self.datacenter) # pylint: disable=no-member
try:
# NOTE: case of seedful scylla (operator v1.3.0-)
seed_nodes = ','.join(self.seed_nodes_ips)
except AssertionError:
# NOTE: case of seedless scylla (operator v1.4.0+)
seed_nodes = None
self.node_config_setup(
node,
seed_address=','.join(self.seed_nodes_ips),
seed_address=seed_nodes,
endpoint_snitch=self.get_endpoint_snitch(),
)

Expand Down

0 comments on commit 012fdbd

Please sign in to comment.