-
Notifications
You must be signed in to change notification settings - Fork 260
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
[Bug]: On PersistentVolumeClaim accessModes duplicate #4621
Comments
Hello, I have the same isssue i've created: cloudnative-pg/charts#287, here is the details of the ticket: Hello, When creating a cluster and specifying the access mode type, the type is appended to a hardcoded value which is the ReadWriteOnce:
The auto created pvcs have the following specs:
and
The same thing happen if we create a cluster with ReadWriteOnce access mode:
The pvcs created have ReadWriteOnce access mode duplicated:
and:
The same result if we mix the types, meaning that if we use RWO for storage data and RWX for wals or vice-versa, the pvcs will always have the ReadWriteOnce value + the one we configure in our cluster definition.
I think what should be done, is to check if the user don't define a value for AccessMode we keep the ReadWriteOnce as a default value, otherwise, use the defined value by the user. (https://github.com/cloudnative-pg/cloudnative-pg/blob/267e7cc1416241453c3e0a1d5ec257e806b184fd/internal/cmd/plugin/fio/fio.go#L103C4-L103C74) Thank you for fixing this issue :). |
Hello, if you can confirm that it's a trending that you observe also please. We have prometheus log filled with:
and with debug enabled:
|
This patch ensures that we only add the default `AccessModes` value when the template don't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This patch ensures that we only add the default `AccessModes` value when the template don't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This patch ensures that we only add the default `AccessModes` value when the template don't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This patch ensures that we only add the default `AccessModes` value when the template don't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This patch ensures that we only add the default `AccessModes` value when the template don't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
…ied (#4845) This patch ensures that we only add the default `AccessModes` value when the template doesn't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
…ied (#4845) This patch ensures that we only add the default `AccessModes` value when the template doesn't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit 0bf86a3)
…ied (#4845) This patch ensures that we only add the default `AccessModes` value when the template doesn't contain any value Closes #4621 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit 0bf86a3)
Is there an existing issue already for this bug?
I have read the troubleshooting guide
I am running a supported version of CloudNativePG
Contact Details
gregoire.bellon-gervais@docaposte.fr
Version
1.23.1
What version of Kubernetes are you using?
1.27
What is your Kubernetes environment?
Self-managed: RKE
How did you install the operator?
Helm
What happened?
Hello,
(I'm under RKE2 not RKE but it was not present in the list).
when I create a Cluster with CloudNativePG, provisionned PVC contain twice
ReadWriteOnce
inaccessModes
.Like this:
Here the full yaml for created PVC for DATA:
and the one for the WAL:
I install CloudNativePG using helm and the following command:
helm upgrade --install cnpg cloudnative-pg \ --repo https://cloudnative-pg.github.io/charts \ --namespace cnpg-system \ --create-namespace \ --set config.secret=true \ --set-string config.data.ENABLE_INSTANCE_MANAGER_INPLACE_UPDATES=true \ --set config.data.INHERITED_LABELS='app.kubernetes.io/*\, app' \ --set monitoring.grafanaDashboard.create=true \ --set-string monitoring.grafanaDashboard.sidecarLabelValue=1
Cluster resource
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: