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

ClickHouseKeeper example does not work #1564

Open
janeklb opened this issue Nov 17, 2024 · 1 comment
Open

ClickHouseKeeper example does not work #1564

janeklb opened this issue Nov 17, 2024 · 1 comment
Assignees

Comments

@janeklb
Copy link

janeklb commented Nov 17, 2024

I'm unable to use the https://github.com/Altinity/clickhouse-operator/blob/master/docs/chk-examples/02-extended-3-nodes.yaml example to produce a working ClickHouse Keeper cluster.

The issue's I've bumped into:

  • no dataVolumeClaimTemplate specified fixed here 0374837
  • when clickhouse keeper starts on each of the pods, it expects to find an SSL cert
    Poco::Exception. Code: 1000, e.code() = 0, SSL context exception: Error loading private key from file /etc/clickhouse-keeper/server.key: error:80000002:system library::No such file or directory (version 24.10.1.2812 (official build))
    
  • When the ClickhouseKeeperInstallation resource is created, two (of the three) stateful sets are created at the same time. Once they are both "ready", the 3rd is created. When the 3rd is created, the PVC bound / attached to the 1st stateful set of the keeper goes into a "Terminating" state (and stays that way indefinitely)
    • I can see a Delete PVC: ... log (from worker-deleter.go:114 of operator v0.24.0) indicating the the operator is trying to delete the PVC
    • my volumeClaimTemplate has reclaimPolicy: Retain
  • If the ClickhouseKeeperInstallation is deleted, the PVC that was in a "Terminating" state is also deleted; however, the other two remain in place (and stay "Bound")

Also note:

  • podAntiAffinity is set up with app label, but the pod template doesn't include such a label (doesn't prevent the keeper from working, but it's incorrect)
@janeklb
Copy link
Author

janeklb commented Nov 18, 2024

BTW I found that the issue with the PVC getting set to Terminating can be fixed by using provisioner: Operator.

Do you have any documentation around why the StatefulSet is the default provisioner, and when it should / should not be used?

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

2 participants