Clickhouse cluster not created

Hey,

I am using Sentry Helm chart available at GitHub - sentry-kubernetes/charts: Easily deploy Sentry on your Kubernetes Cluster. Unfortunately it doesn’t work out-of-the-box on Openshift thus I had to apply several fixes to make it work. However I have been struggling with one last thing, namely Clickhouse. The Dockerfile tag I am using right now is 21.3.2.5 since it introduced some changes to support running Clickhouse on Openshift. Even with that I am getting errors during a Helm hook which initializes Clickhouse tables.

Code: 170. DB::Exception: Received from sentry-clickhouse-0.sentry-clickhouse-headless:9000. DB::Exception: Requested cluster 'sentry-clickhouse' not found.

When is a Clickhouse cluster created? Is it defined in the config.xml or metrica.xml? I have also recorded the logs of Clickhouse for two cases: when a cluster is available (anyuid SCC used) and when it is missing.

Logs when the cluster is created;

Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/config.xml'.
Including configuration file '/etc/clickhouse-server/metrica.d/metrica.xml'.
Include not found: clickhouse_compression
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
Processing configuration file '/etc/clickhouse-server/users.xml'.
Merging configuration file '/etc/clickhouse-server/users.d/users.xml'.
Include not found: networks
Saved preprocessed configuration to '/var/lib/clickhouse//preprocessed_configs/users.xml'.
Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/config.xml'.
Including configuration file '/etc/clickhouse-server/metrica.d/metrica.xml'.
Include not found: clickhouse_compression
Saved preprocessed configuration to '/var/lib/clickhouse//preprocessed_configs/config.xml'.

Logs when the cluster is missing:

Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/config.xml'.
Including configuration file '/etc/clickhouse-server/metrica.d/metrica.xml'.
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/config.xml'.
Including configuration file '/etc/clickhouse-server/metrica.d/metrica.xml'.
Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/config.xml'.
Processing configuration file '/etc/clickhouse-server/users.xml'.
Merging configuration file '/etc/clickhouse-server/users.d/users.xml'.
Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'.

Hi!

That helm chart is not created by folks here at Sentry and we do not maintain it either. You’d have a much greater chance if you report this issue to the repo itself.

Ah… I see. Thanks for the clarification!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.