PXC Operator not creating PVCs when it creates a cluster

Hi there,

Tearing my hair out a little bit here - I’ve got the latest PXC operator installed via Helm, Longhorn for storage, and installing the cluster in the same namespace as the operator. I can create a cluster with the following:

helm install my-db percona/pxc-db --namespace pxc \
  --set pxc.size=3 \
  --set pxc.volumeSpec.resources.requests.storage=20Gi \
  --set pxc.volumeSpec.persistentVolumeClaim.storageClassName=longhorn \
  --set backup.enabled=false

But while the cluster is created and works, no persistentvolumeclaims are created for the cluster.

1 Like

Hey @Benjamin_Arntzen ,

couple of additional questions:

  1. was the pxc object created at all? kubectl get pxc -n pxc
  2. if so - was stateful set created and what does it say?
    kubectl get sts -n pxc
    kubectl get sts STSNAME -n pxc -o yaml

Could you please provide this info?

1 Like

Hi @spronin,

Yes, both the PXC and StatefulSet were created. Pods were up and as far as I could tell talking to each other, but no PVCs created. Shelling into the containers, none of their mounted volumes matched the expected size of a PVC (20GB).

I’ve since uninstalled pxc operator and reinstalled it using the generic Kubernetes installation method, which has worked perfectly.

I can provide details of my environment but likely can’t reinstall the Helm version alongside the generic version to reproduce this.

1 Like

@Benjamin_Arntzen , yeah, i would appreciate the details on how to reproduce this issue. It can be related to many reasons - affinity configuration, storage issues, etc.

1 Like