Skip to content

test_1_node_cluster and test_3_node_cluster fail time to time #401

Closed
@dkropachev

Description

@dkropachev
Collaborator

Run: https://github.com/scylladb/python-driver/actions/runs/12611445109/job/35147114188?pr=399
Logs: flog.zip

Output:

=========================== short test summary info ============================
FAILED tests/integration/standard/test_scylla_cloud.py::ScyllaCloudConfigTests::test_1_node_cluster - IndexError: list index out of range
FAILED tests/integration/standard/test_scylla_cloud.py::ScyllaCloudConfigTests::test_3_node_cluster - IndexError: list index out of range

=================================== FAILURES ===================================
__________________ ScyllaCloudConfigTests.test_1_node_cluster __________________

self = <tests.integration.standard.test_scylla_cloud.ScyllaCloudConfigTests testMethod=test_1_node_cluster>

    def test_1_node_cluster(self):
        self.ccm_cluster = use_cluster("sni_proxy", [1], start=False)
>       config_data_yaml, config_path_yaml = self.start_cluster_with_proxy()

tests/integration/standard/test_scylla_cloud.py:62: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/integration/standard/test_scylla_cloud.py:50: in start_cluster_with_proxy
    start_sni_proxy(ccm_cluster.get_path(), nodes_info=nodes_info, listen_port=sni_port)
.test-venv/lib/python3.12/site-packages/ccmlib/utils/sni_proxy.py:137: in start_sni_proxy
    sniproxy_conf_path = configure_sni_proxy(conf_dir, nodes_info, listen_port=listen_port)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

conf_dir = '/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy'
nodes_info = [], listen_port = 443

    def configure_sni_proxy(conf_dir, nodes_info, listen_port=443):
        sniproxy_conf_tmpl = dedent("""
            user sniproxy
            pidfile /var/run/sniproxy/sniproxy.pid
    
            listener $FIRST_ADDRESS $listen_port {
              proto tls
            }
    
            table {
            $TABLES
            }
            """)
        tables = ""
        mapping = {}
>       tables += f"  ^cql.cluster-id.scylla.com$ {nodes_info[0].address}:{nodes_info[0].port}\n"
E       IndexError: list index out of range

.test-venv/lib/python3.12/site-packages/ccmlib/utils/sni_proxy.py:115: IndexError

__________________ ScyllaCloudConfigTests.test_3_node_cluster __________________

self = <tests.integration.standard.test_scylla_cloud.ScyllaCloudConfigTests testMethod=test_3_node_cluster>

    def test_3_node_cluster(self):
        self.ccm_cluster = use_cluster("sni_proxy", [3], start=False)
>       config_data_yaml, config_path_yaml = self.start_cluster_with_proxy()

tests/integration/standard/test_scylla_cloud.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/integration/standard/test_scylla_cloud.py:50: in start_cluster_with_proxy
    start_sni_proxy(ccm_cluster.get_path(), nodes_info=nodes_info, listen_port=sni_port)
.test-venv/lib/python3.12/site-packages/ccmlib/utils/sni_proxy.py:137: in start_sni_proxy
    sniproxy_conf_path = configure_sni_proxy(conf_dir, nodes_info, listen_port=listen_port)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

conf_dir = '/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy'
nodes_info = [], listen_port = 443

    def configure_sni_proxy(conf_dir, nodes_info, listen_port=443):
        sniproxy_conf_tmpl = dedent("""
            user sniproxy
            pidfile /var/run/sniproxy/sniproxy.pid
    
            listener $FIRST_ADDRESS $listen_port {
              proto tls
            }
    
            table {
            $TABLES
            }
            """)
        tables = ""
        mapping = {}
>       tables += f"  ^cql.cluster-id.scylla.com$ {nodes_info[0].address}:{nodes_info[0].port}\n"
E       IndexError: list index out of range

.test-venv/lib/python3.12/site-packages/ccmlib/utils/sni_proxy.py:115: IndexError
----------------------------- Captured stdout call -----------------------------
generating keystore.jks in [/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy]
exporting cert from keystore.jks in [/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy]
importing cert into truststore.jks in [/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy]
exporting cert to pks12 from keystore.jks in [/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy]
Using openssl to split pks12 in [/home/runner/work/python-driver/python-driver/tests/integration/ccm/sni_proxy] to pem format
generating keystore.jks in [/tmp/tmpzwvxn3nr]
exporting cert from keystore.jks in [/tmp/tmpzwvxn3nr]
importing cert into truststore.jks in [/tmp/tmpzwvxn3nr]
exporting cert to pks12 from keystore.jks in [/tmp/tmpzwvxn3nr]
Using openssl to split pks12 in [/tmp/tmpzwvxn3nr] to pem format
----------------------------- Captured stderr call -----------------------------

Activity

fruch

fruch commented on Jan 19, 2025

@fruch

@dkropachev

63dcd36 should a worked around this issue
(the issue itself is with cqlsh, and 6.2 doesn't have the needed fixes for that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fruch@dkropachev

        Issue actions

          test_1_node_cluster and test_3_node_cluster fail time to time · Issue #401 · scylladb/python-driver