Hi all,
I’m trying to install CrateDB using crate-operator; but the installation fails giving the same error on every PV created:
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-1 AttachVolume.Attach failed for volume "pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735" : rpc error: code = Aborted desc = volume pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-2 AttachVolume.Attach failed for volume "pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4" : rpc error: code = Aborted desc = volume pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-2 AttachVolume.Attach failed for volume "pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b" : rpc error: code = Aborted desc = volume pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-1 AttachVolume.Attach failed for volume "pvc-9b2d9870-5724-4d39-9465-29981580c6b3" : rpc error: code = Aborted desc = volume pvc-9b2d9870-5724-4d39-9465-29981580c6b3 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-0 AttachVolume.Attach failed for volume "pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3" : rpc error: code = Aborted desc = volume pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-0 AttachVolume.Attach failed for volume "pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89" : rpc error: code = Aborted desc = volume pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89 is not ready for workloads
I have a K3S cluster with 1 master node and three worker nodes.
For storage I have Longhorn installed on the three worker nodes.
The commands I used to create CrateDB are:
kubectl create namespace crate-operator
kubectl create namespace for-crate
helm install crate-operator crate-operator/crate-operator --namespace crate-operator --set env.CRATEDB_OPERATOR_DEBUG_VOLUME_STORAGE_CLASS=longhorn --set env.CRATEDB_OPERATOR_DEBUG_VOLUME_SIZE=4GiB
kubectl --namespace for-crate create -f my-crate.yaml
where my-crate.yaml contains:
apiVersion: cloud.crate.io/v1
kind: CrateDB
metadata:
name: my-cluster
namespace: for-crate
spec:
cluster:
imageRegistry: crate
name: my-crate
version: 5.8.1
nodes:
data:
- name: hot
replicas: 3
resources:
limits:
cpu: 4
memory: 4Gi
disk:
count: 1
size: 16GiB
storageClass: longhorn
heapRatio: 0.25
Looking at the PV I see:
sysop@h5a-dev:~$ kubectl get pv -o wide
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE VOLUMEMODE
pvc-b375793c-ed9c-4335-9605-4e490e1e5956 10Gi RWO Delete Bound kube-system/docker-registry longhorn <unset> 205d Filesystem
pvc-0279c77c-73df-4ece-a461-a3d091dd7353 8Gi RWO Delete Bound apisix/data-apisix-etcd-2 longhorn <unset> 137d Filesystem
pvc-9433785a-2c42-41fa-8be4-5e3cadb5123d 8Gi RWO Delete Bound apisix/data-apisix-etcd-1 longhorn <unset> 137d Filesystem
pvc-c4571652-2a78-4f1c-aa12-c08432a20805 8Gi RWO Delete Bound apisix/data-apisix-etcd-0 longhorn <unset> 137d Filesystem
pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4 4Gi RWO Delete Bound for-crate/debug-crate-data-hot-my-cluster-2 longhorn <unset> 38m Filesystem
pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89 4Gi RWO Delete Bound for-crate/debug-crate-data-hot-my-cluster-0 longhorn <unset> 38m Filesystem
pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735 4Gi RWO Delete Bound for-crate/debug-crate-data-hot-my-cluster-1 longhorn <unset> 38m Filesystem
pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b 16Gi RWO Delete Bound for-crate/data0-crate-data-hot-my-cluster-2 longhorn <unset> 38m Filesystem
pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3 16Gi RWO Delete Bound for-crate/data0-crate-data-hot-my-cluster-0 longhorn <unset> 38m Filesystem
pvc-9b2d9870-5724-4d39-9465-29981580c6b3 16Gi RWO Delete Bound for-crate/data0-crate-data-hot-my-cluster-1 longhorn <unset> 38m Filesystem
sysop@h5a-dev:~$
What I’m doing wrong?
The complete events transcript:
sysop@h5a-dev:~/h5a/software/pcams/storehouse/cratedb$ kubectl get events --sort-by='.lastTimestamp' -n for-crate
LAST SEEN TYPE REASON OBJECT MESSAGE
8m57s Warning FailedScheduling pod/crate-data-hot-my-cluster-1 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
9m18s Warning FailedScheduling pod/crate-data-hot-my-cluster-1 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
9m18s Warning FailedScheduling pod/crate-data-hot-my-cluster-2 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
8m57s Warning FailedScheduling pod/crate-data-hot-my-cluster-0 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
8m57s Warning FailedScheduling pod/crate-data-hot-my-cluster-2 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
8m53s Normal Scheduled pod/crate-data-hot-my-cluster-0 Successfully assigned for-crate/crate-data-hot-my-cluster-0 to h5a-kw2.int.h5a.net
8m52s Normal Scheduled pod/crate-data-hot-my-cluster-2 Successfully assigned for-crate/crate-data-hot-my-cluster-2 to h5a-kw3.int.h5a.net
8m53s Normal Scheduled pod/crate-data-hot-my-cluster-1 Successfully assigned for-crate/crate-data-hot-my-cluster-1 to h5a-kw1.int.h5a.net
9m18s Warning FailedScheduling pod/crate-data-hot-my-cluster-0 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim data0-crate-data-hot-my-cluster-2 Pod crate-data-hot-my-cluster-2 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Pod crate-data-hot-my-cluster-2 in StatefulSet crate-data-hot-my-cluster successful
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim data0-crate-data-hot-my-cluster-0 Pod crate-data-hot-my-cluster-0 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim debug-crate-data-hot-my-cluster-0 Pod crate-data-hot-my-cluster-0 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal NoPods poddisruptionbudget/crate-my-cluster No matching pods found
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Pod crate-data-hot-my-cluster-0 in StatefulSet crate-data-hot-my-cluster successful
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim data0-crate-data-hot-my-cluster-1 Pod crate-data-hot-my-cluster-1 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal AppliedDaemonSet service/crate-my-cluster Applied LoadBalancer DaemonSet kube-system/svclb-crate-my-cluster-3bf67652
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim debug-crate-data-hot-my-cluster-1 Pod crate-data-hot-my-cluster-1 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Pod crate-data-hot-my-cluster-1 in StatefulSet crate-data-hot-my-cluster successful
9m19s Normal SuccessfulCreate statefulset/crate-data-hot-my-cluster create Claim debug-crate-data-hot-my-cluster-2 Pod crate-data-hot-my-cluster-2 in StatefulSet crate-data-hot-my-cluster success
9m19s Normal Logging cratedb/my-cluster Handler 'cluster_create/statefulset_data_hot' succeeded.
9m19s Normal Logging cratedb/my-cluster Handler 'cluster_create/sql_exporter_config' succeeded.
9m19s Normal Logging cratedb/my-cluster Handler 'cluster_create/system_user' succeeded.
9m19s Normal EnsuringLoadBalancer service/crate-my-cluster Ensuring load balancer
9m19s Normal Logging cratedb/my-cluster Handler 'cluster_create/services' succeeded.
9m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
9m18s Error Logging cratedb/my-cluster ... failed. Status: 400 Message: Invalid response status
9m18s Normal Logging cratedb/my-cluster Trying to create system user ...
9m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
9m3s Warning Logging cratedb/my-cluster Failed to ping cluster....
9m3s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
9m3s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
9m Normal ExternalProvisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-0 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
9m Normal ExternalProvisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-2 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
9m Normal ExternalProvisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-1 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
9m Normal ExternalProvisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-2 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
9m Normal ExternalProvisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-0 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
9m Normal ExternalProvisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-1 Waiting for a volume to be created either by the external provisioner 'driver.longhorn.io' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
8m59s Normal Provisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-1 External provisioner is provisioning volume for claim "for-crate/data0-crate-data-hot-my-cluster-1"
8m59s Normal Provisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-2 External provisioner is provisioning volume for claim "for-crate/data0-crate-data-hot-my-cluster-2"
8m59s Normal Provisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-1 External provisioner is provisioning volume for claim "for-crate/debug-crate-data-hot-my-cluster-1"
8m59s Normal Provisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-0 External provisioner is provisioning volume for claim "for-crate/debug-crate-data-hot-my-cluster-0"
8m59s Normal Provisioning persistentvolumeclaim/debug-crate-data-hot-my-cluster-2 External provisioner is provisioning volume for claim "for-crate/debug-crate-data-hot-my-cluster-2"
8m59s Normal Provisioning persistentvolumeclaim/data0-crate-data-hot-my-cluster-0 External provisioner is provisioning volume for claim "for-crate/data0-crate-data-hot-my-cluster-0"
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/debug-crate-data-hot-my-cluster-1 Successfully provisioned volume pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/data0-crate-data-hot-my-cluster-1 Successfully provisioned volume pvc-9b2d9870-5724-4d39-9465-29981580c6b3
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/debug-crate-data-hot-my-cluster-2 Successfully provisioned volume pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/data0-crate-data-hot-my-cluster-0 Successfully provisioned volume pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/data0-crate-data-hot-my-cluster-2 Successfully provisioned volume pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b
8m57s Normal ProvisioningSucceeded persistentvolumeclaim/debug-crate-data-hot-my-cluster-0 Successfully provisioned volume pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89
8m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
8m18s Normal Logging cratedb/my-cluster Trying to create system user ...
8m18s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
8m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
8m3s Warning Logging cratedb/my-cluster Failed to ping cluster....
8m3s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
8m3s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
7m18s Normal Logging cratedb/my-cluster Trying to create system user ...
7m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
7m18s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
7m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
7m3s Warning Logging cratedb/my-cluster Failed to ping cluster....
7m3s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
7m3s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
6m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
6m18s Normal Logging cratedb/my-cluster Trying to create system user ...
6m18s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
6m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
6m3s Warning Logging cratedb/my-cluster Failed to ping cluster....
6m3s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
6m3s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
5m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
5m18s Normal Logging cratedb/my-cluster Trying to create system user ...
5m18s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
5m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
5m3s Warning Logging cratedb/my-cluster Failed to ping cluster....
5m3s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
5m3s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
4m18s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
4m18s Normal Logging cratedb/my-cluster Trying to create system user ...
4m18s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
4m18s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
4m2s Warning Logging cratedb/my-cluster Failed to ping cluster....
4m2s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
4m2s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
3m17s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
3m17s Normal Logging cratedb/my-cluster Trying to create system user ...
3m17s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
3m17s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
3m2s Warning Logging cratedb/my-cluster Failed to ping cluster....
3m2s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
3m2s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
2m17s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
2m17s Normal Logging cratedb/my-cluster Trying to create system user ...
2m17s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
2m17s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
2m2s Warning Logging cratedb/my-cluster Failed to ping cluster....
2m2s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
2m2s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
77s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
77s Normal Logging cratedb/my-cluster Trying to create system user ...
77s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
77s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
62s Warning Logging cratedb/my-cluster Failed to ping cluster....
62s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
62s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-1 AttachVolume.Attach failed for volume "pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735" : rpc error: code = Aborted desc = volume pvc-5061e8de-1426-4b8d-b9d8-c84f35d37735 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-2 AttachVolume.Attach failed for volume "pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4" : rpc error: code = Aborted desc = volume pvc-399575f5-d78d-48a9-aae5-dd55f814e2f4 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-2 AttachVolume.Attach failed for volume "pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b" : rpc error: code = Aborted desc = volume pvc-b945c926-1ae8-4ec3-86ff-bb2877194a3b is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-1 AttachVolume.Attach failed for volume "pvc-9b2d9870-5724-4d39-9465-29981580c6b3" : rpc error: code = Aborted desc = volume pvc-9b2d9870-5724-4d39-9465-29981580c6b3 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-0 AttachVolume.Attach failed for volume "pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3" : rpc error: code = Aborted desc = volume pvc-6b74d8ff-381d-45a0-8eec-3c2e57c7d2f3 is not ready for workloads
32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-0 AttachVolume.Attach failed for volume "pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89" : rpc error: code = Aborted desc = volume pvc-ce217b0a-b18c-48b7-9484-3e7a7c076c89 is not ready for workloads
17s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.FEEDBACK.
17s Normal Logging cratedb/my-cluster Trying to create system user ...
17s Error Logging cratedb/my-cluster ... failed. Status: 500 Message: Invalid response status
17s Error Logging cratedb/my-cluster Handler 'cluster_create/bootstrap' failed temporarily: None
2s Warning Logging cratedb/my-cluster Failed to ping cluster....
2s Normal Logging cratedb/my-cluster Webhooks not configured. Not processing event WebhookEvent.HEALTH.
2s Normal Logging cratedb/my-cluster Timer 'ping_cratedb' succeeded.
sysop@h5a-dev:~/h5a/software/pcams/storehouse/cratedb$