Skip to content

SCT failing to connect via public adddress with scylla-driver==3.29.8 #720

Description

@fruch

SCT is running a one node db in artifact tests

and when working with 3.29.7

we could do that:

node_ips= ['98.93.185.64'] # public address of the nodeload_balancing_policy=WhiteListRoundRobinPolicy(node_ips)
kwargs=dict(contact_points=node_ips, port=port, ssl_context=ssl_context)
cluster_driver=ClusterDriver(
auth_provider=auth_provider,
compression=compression,
protocol_version=protocol_version,
load_balancing_policy=load_balancing_policy,
default_retry_policy=FlakyRetryPolicy(),
connect_timeout=connect_timeout,
**kwargs,
)
session=cluster_driver.connect()

with 3.29.8 this is breaking and we keep on getting session trying to open on the local address, which won't be ever working:

sdcm/cluster.py:4327: in cql_connection_patient
return self.cql_connection(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sdcm/cluster.py:4239: in cql_connection
return self._create_session(
sdcm/cluster.py:4136: in _create_session
session = cluster_driver.connect()
^^^^^^^^^^^^^^^^^^^^^^^^
cassandra/cluster.py:1735: in cassandra.cluster.Cluster.connect
???
cassandra/cluster.py:1810: in cassandra.cluster.Cluster._new_session
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', ['10.12.11.245'])

Reviewing the changes in 3.29.8, I suspect it might be #623

Metadata

Metadata

Labels

P1bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions