Closed alienninja closed 2 years ago
I found the issue, the label is to long for prometheus-tobs-kube-prometheus-stack-prometheus-db-prometheus-tobs-kube-prometheus-stack-prometheus-1, this is being reported in the openebs-cstor-cvc-operator logs:
1122 02:53:44.533412 1 event.go:282] Event(v1.ObjectReference{Kind:"CStorVolumeConfig", Namespace:"openebs", Name:"pvc-27948946-bab3-4c45-acda-8cf7e8dc90e9", UID:"b56a2149-369c-4cef-8430-01f23ebc14e8", APIVersion:"cstor.openebs.io/v1", ResourceVersion:"2390459", FieldPath:""}): type: 'Warning' reason: 'Provisioning' CStorVolume.cstor.openebs.io "pvc-27948946-bab3-4c45-acda-8cf7e8dc90e9" is invalid: metadata.labels: Invalid value: "prometheus-tobs-kube-prometheus-stack-prometheus-db-prometheus-tobs-kube-prometheus-stack-prometheus-1": must be no more than 63 characters
I1122 02:53:44.535808 1 controller.go:304] creating cstorvolume resource
E1122 02:53:44.543448 1 controller_base.go:321] error syncing 'openebs/pvc-c7d48022-8eb7-4909-9abe-eef03db97025': CStorVolume.cstor.openebs.io "pvc-c7d48022-8eb7-4909-9abe-eef03db97025" is invalid: metadata.labels: Invalid value: "prometheus-tobs-kube-prometheus-stack-prometheus-db-prometheus-tobs-kube-prometheus-stack-prometheus-0": must be no more than 63 characters, requeuing
I
I was able to solve my issue with help from issue https://github.com/timescale/tobs/issues/563. Adding this line to my helm install command fixed the issue:
--set kube-prometheus-stack.prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.metadata.name=data
What happened? The prometheus-stack-prometheus-0/1 pods are stuck in status "init:0/1"
Did you expect to see something different? I expected the pods to complete initialization
How to reproduce it (as minimally and precisely as possible): Fresh helm installation of tobs with OpenEBS as storage backend
Environment Helm deployment on clean K8s cluster v1.24.6 with OpenEBS as the backend storage
tobs version:
with modified values to include a patched image pg14.6-ts2.8.1-patroni-static-primary-p0 related to closed issue https://github.com/timescale/tobs/issues/646#issue-1449155222
Kubernetes version information:
Kubernetes cluster kind: kubespray deployment on baremetal servers
tobs Logs:
Anything else we need to know?:
Could the issue be related to it looking for a volume
but the actual volume is