crate / crate-operator

The CrateDB Kubernetes Operator provides a convenient way to run CrateDB clusters inside Kubernetes.

Home Page:https://crate.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CrateDB Community Edition

OzySky opened this issue · comments

Hi!
Does the operator work with the community edition?
I managed to install it using the image tag, but the nodes don't seem to connect to each other, and k8s reports 501 on readiness check.
With the default crate image everything's OK.

Hey @OzySky, I don't think we've ever tested this with a non-official CrateDB image, so there might be some unexpected issues there. If you can provide some more details (operator logs) I might be able to help.

Here are the logs after applying a cluster CRD.

Thanks!

[2021-01-25 14:58:23,692] kopf.activities.star [INFO ] Activity 'startup' succeeded.
[2021-01-25 14:58:23,692] kopf.reactor.activit [INFO ] Initial authentication has been initiated.
[2021-01-25 14:58:23,693] kopf.activities.auth [INFO ] Authenticating with in-cluster config
[2021-01-25 14:58:23,693] kopf.activities.auth [INFO ] Activity 'login' succeeded.
[2021-01-25 14:58:23,693] kopf.reactor.activit [INFO ] Initial authentication has finished.
[2021-01-25 14:58:41,607] kopf.objects [INFO ] [db/crate] Handler 'cluster_create/sql_exporter_config' succeeded.
[2021-01-25 14:58:41,762] kopf.objects [INFO ] [db/crate] Handler 'cluster_create/debug_volume' succeeded.
[2021-01-25 14:58:41,890] kopf.objects [INFO ] [db/crate] Handler 'cluster_create/system_user' succeeded.
[2021-01-25 14:58:42,065] kopf.objects [INFO ] [db/crate] Handler 'cluster_create/services' succeeded.
[2021-01-25 14:58:42,349] kopf.objects [INFO ] [db/crate] Handler 'cluster_create/statefulset_data_default' succeeded.
[2021-01-25 14:58:42,542] kopf.objects [INFO ] [db/crate] Trying to create system user ...
[2021-01-25 14:58:42,585] kopf.objects [ERROR ] [db/crate] ... failed. Status: 400 Message: Invalid response status
[2021-01-25 14:58:42,586] kopf.objects [ERROR ] [db/crate] Handler 'cluster_create/bootstrap' failed temporarily: None

Hi @OzySky, it looks like it's stuck attempting to create a system user - it's normal for it to fail initially as CrateDB isn't up yet, but it should attempt again after a short delay. Could you share your operator configuration? i.e. the ENV of the operator pod (with sensitive stuff removed, of course).

[2021-01-25 15:26:54,137] kopf.objects [ERROR ] [db/crate] Handler 'cluster_create/bootstrap' failed temporarily: None
[2021-01-25 15:27:54,322] kopf.objects [INFO ] [db/crate] Trying to create system user ...
[2021-01-25 15:27:54,554] kopf.objects [INFO ] [db/crate] ... error. CONNECT ERROR

[2021-01-25 15:27:54,555] kopf.objects [ERROR ] [db/crate] Handler 'cluster_create/bootstrap' failed temporarily: None
[2021-01-25 15:28:54,724] kopf.objects [ERROR ] [db/crate] Handler 'cluster_create/bootstrap' has timed out after 0:30:13.143806.
[2021-01-25 15:28:54,725] kopf.objects [INFO ] [db/crate] Handler 'cluster_create' succeeded.
[2021-01-25 15:28:54,725] kopf.objects [INFO ] [db/crate] Creation event is processed: 1 succeeded; 0 failed.

ENV is the same as deployment.yaml

@OzySky, apologies I double checked this and unfortunately the community edition does not support CREATE USER commands, which the operator depends on. So sadly it will not work at this point. However, we may have some good news on that front in the coming months, so watch this space.