Description:
I have a pxc db cluster with only 1 db instance, managed by pxc-opeartor and TLS set by cert-manager. Every time that the certificate is going to be renewed, the pxc pod is deleted and restarted again, is this the expected behaviour? From the documentation I’m expecting not having downtime when certmanager is taking care of the certificates. The downtime is intended because I’m not using a proper cluster with 3 instances?
Steps to Reproduce:
To force the regeneration of the certificate I delete the pxc-db-ssl and pxc-db-ssl-internal secrets. Certmanager creates immediately the new certificate.
Version:
pxc-operator 1.12.0
pxc-db: 1.14.0
Logs:
pxc-operator:
{“level”:“error”,“ts”:1730707547.317082,“logger”:“perconaxtradbcluster”,“caller”:“pxc/controller.go:1220”,“msg”:“sync users”,“cluster”:“tenant1-pxc-db”,“namespace”:“tenant1”,“error”:“exec syncusers: command terminated with exit code 1 / \nSyncing user accounts from PXC(tenant1-pxc-db-pxc-0.tenant1-pxc-db-pxc.tenant1.svc.cluster.local:3306) to ProxySQL\nAdding user to ProxySQL: clustercheck\n / ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0\nERROR (line:718) : Failed to load user list from ProxySQL database. \n– Please check the ProxySQL connection parameters and status.\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR (line:1553) : Failed to add the user (clustercheck) from PXC to ProxySQL database. \n– Please check the ProxySQL connection parameters and status.\n”,“errorVerbose”:“exec syncusers: command terminated with exit code 1 / \nSyncing user accounts from PXC(tenant1-pxc-db-pxc-0.tenant1-pxc-db-pxc.tenant1.svc.cluster.local:3306) to ProxySQL\nAdding user to ProxySQL: clustercheck\n / ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0\nERROR (line:718) : Failed to load user list from ProxySQL database. \n– Please check the ProxySQL connection parameters and status.\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:6032’ (111)\nERROR (line:1553) : Failed to add the user (clustercheck) from PXC to ProxySQL database. \n– Please check the ProxySQL connection parameters and status.\n\ngithub.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).syncPXCUsersWithProxySQL\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/users.go:969\ngithub.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).resyncPXCUsersWithProxySQL.func1\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:1218\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594”,“stacktrace”:“github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).resyncPXCUsersWithProxySQL.func1\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:1220”}
Expected Result:
I’d like to reload the certificate without downtime
Actual Result:
pxc-db pod is deleted and recreated
Additional Information:
[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]