=================================== FAILURES ===================================
______________________ test_user_access_ip_change[node0] _______________________
[gw4] linux -- Python 3.10.12 /usr/bin/python3
cluster_with_dns_cache_update = <helpers.cluster.ClickHouseCluster object at 0x7feb6ed7a140>
node = <helpers.cluster.ClickHouseInstance object at 0x7feb6ed7a5c0>
@pytest.mark.parametrize("node", [node5, node6])
def test_user_access_ip_change(cluster_with_dns_cache_update, node):
node_name = node.name
node_num = node.name[-1]
# getaddrinfo(...) may hang for a log time without this options
node.exec_in_container(
[
"bash",
"-c",
'echo -e "options timeout:1\noptions attempts:2" >> /etc/resolv.conf',
],
privileged=True,
user="root",
)
assert (
node3.query("SELECT * FROM remote('{}', 'system', 'one')".format(node_name))
== "0\n"
)
assert (
node4.query("SELECT * FROM remote('{}', 'system', 'one')".format(node_name))
== "0\n"
)
node.set_hosts(
[
("127.255.255.255", "node3"),
(f"2001:3984:3989::1:88{node_num}4", "unknown_host"),
],
)
cluster.restart_instance_with_ip_change(
node3, "2001:3984:3989::1:88{}3".format(node_num)
)
cluster.restart_instance_with_ip_change(
node4, "2001:3984:3989::1:88{}4".format(node_num)
)
> with pytest.raises(QueryRuntimeException):
E Failed: DID NOT RAISE <class 'helpers.client.QueryRuntimeException'>
Example failure
Test history:
https://play.clickhouse.com/play?user=play#U0VMRUNUIHB1bGxfcmVxdWVzdF9udW1iZXIgYXMgcHIsIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgdGVzdF9zdGF0dXMsIHJlcG9ydF91cmwtLSwgdGVzdF9jb250ZXh0X3JhdwpGUk9NIGNoZWNrcwpXSEVSRSAxCiAgICAtLSBBTkQgcHVsbF9yZXF1ZXN0X251bWJlciA9IDAKICAgIEFORCB0ZXN0X3N0YXR1cyBJTiAoJ0ZBSUwnLCAnRVJST1InLCAnQlJPS0VOJykKICAgIEFORCB0b0RhdGUoY2hlY2tfc3RhcnRfdGltZSkgPiAnMjAyNC0wNy0wMScKICAgIEFORCB0ZXN0X25hbWUgbGlrZSAnJXRlc3RfZG5zX2NhY2hlJScKICAgIC0tIEFORCB0ZXN0X2NvbnRleHRfcmF3IGxpa2UgJyVoZWFwLXVzZS1hZnRlci1mcmVlJScKT1JERVIgQlkgY2hlY2tfc3RhcnRfdGltZSBERVNDCgo=