-
Notifications
You must be signed in to change notification settings - Fork 92
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
Wrong pvc for middle manager #135
Comments
can you send your yaml ? |
I'm using the sample, what I'm basically looking at, is adding more peons, so I can add more datasources.
|
Same symptoms:
Kubernetes v1.20.2 |
@sneerin @dsx thanks for reporting the issue, My first guess is that it is the yaml indentation issue, and there is one extra space before whole of following section
can you retry with one space removed from the beginning for all of those lines. Please confirm if that fixes the issue, I will add some validation logic in operator to catch for this specific case. If that does not fix the issue, then ..... It sounds like StatefulSet is getting created successfully . Can you post the e.g. run My guess is that somehow volumeClaimTemplates's name is getting set to nil/empty instead of |
That is exactly what's happening: volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 120Gi
storageClassName: do-block-storage
volumeMode: Filesystem
status:
phase: Pending |
@dsx did you check for the indentation issues ? if that did not fix the problem, is it possible to post your/a-version-of full tiny-cluster.yaml that I can use to reproduce the issue. |
@himanshug indentation seems to be fine. Here is manifest I'm using to deploy. |
I took another look at this today and I think there is a bug in CRD definition that contains schema validation. for now, you can use the CRD in https://github.com/druid-io/druid-operator/blob/master/deploy/crds/druid.apache.org_druids_crd.yaml , that has no schema validation and hopefully that will make things work. I will further look into what is wrong with the schema validation in https://github.com/druid-io/druid-operator/blob/master/deploy/crds/druid.apache.org_druids.yaml |
I was able to get the latest CRD to work by making this modification to the volumeClaimTemplates.metadata section
|
Hi, thanks a lot for sharing all the details, is there a PR I can use? |
@lum-splunk can you raise a PR for the fix. |
@AdheipSingh created a PR here #152 |
create Pod druid-tiny-cluster-middlemanagers-0 in StatefulSet druid-tiny-cluster-middlemanagers failed error: failed to create PVC -druid-tiny-cluster-middlemanagers-0: PersistentVolumeClaim "-druid-tiny-cluster-middlemanagers-0" is invalid: metadata.name: Invalid value: "-druid-tiny-cluster-middlemanagers-0": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is 'a-z0-9?(.a-z0-9?)*')
The text was updated successfully, but these errors were encountered: