Repository navigation
Replies: 1 comment
|
Hi @avo-sepp! I'm Dosu and I’m helping the cloudnative-pg team. This recurring issue is likely caused by the replica's data directory or WAL state becoming inconsistent or corrupted during the AKS node pool upgrade and PVC reattachment. When you delete the PVC, CloudNativePG provisions a new, clean volume, which clears the bad state and allows the replica to reinitialize—this matches the operator's restore logic, which cleans up the data directory on certain retriable errors, but only when triggered by a restore failure, not a persistent storage issue (restore logic). This pattern suggests the root cause is either a WAL/data corruption or a PVC (AzureDisk) attachment issue during the disruptive upgrade. This is a known challenge with cloud block storage and stateful workloads on Kubernetes, especially when nodes are replaced and volumes are rapidly detached/reattached (discussion). To move forward:
There are no specific CloudNativePG docs or recent fixes for this scenario, but these steps should help you diagnose and potentially mitigate the issue. If you can share the exact FATAL error, I can help dig deeper into the root cause. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
I have a reoccurring issue, I'm so lost at this point. Please Help.
Our Kubernetes cluster is on for weekly nodepool upgrades. The nodes are completely replaced with new ones. I have
enablePDBset to true, which creates 2 PDBs. One for Primary and one for replicas. My cluster config is 3, 1 primary and 2 replicas.Something happens during the bootup of a replica that causes it to go into a livenessprobe failed state. I get a FATAL error, very similar to the one in this discussion. Actually the cure from this discussion, to delete the PVCs of the failing replica, works. But it's not a solution it's just a fix for something that seems to happen to me every week.
What could I be missing in my setup?
Some points:
I am on AKS, I am using AzureDisk as the PVC storage type. I have WAL enabled. Backups enabled via snapshot. And recovery via CNPG Backup. (I need to switch it to the barman plugin).
I do not have a connection pooler.
I am using it for Grafana and only Grafana. That is the only database assigned to this cluster. Grafana has two replicas and is connection limited to 30.
All reactions