Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_1_node_cluster and test_3_node_cluster fail time to time #401

Open
dkropachev opened this issue Jan 4, 2025 · 0 comments
Open

test_1_node_cluster and test_3_node_cluster fail time to time #401

dkropachev opened this issue Jan 4, 2025 · 0 comments

Comments

@dkropachev
Copy link
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 -----------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant