Repository navigation
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Member
Author
|
/test |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/38253624002 |
gabriele-wolfox
approved these changes
Oct 12, 2026
Contributor
|
/test |
Contributor
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/38392518396 |
leonardoce
approved these changes
Oct 13, 2026
While an instance is fenced or restarting, its status probe masks the connection error and only reads the role from the data directory, so it reports no system ID. After a demotion every instance is in that state at once, the operator sets ConsistentSystemID to False (NotFound), and the passes that follow find nothing new to write, so the condition stays stale until an unrelated event touches the Cluster. Read the system identifier from pg_control in that case, which does not need a running PostgreSQL. The instances keep reporting it through fencing and restarts. A cluster fenced on purpose now reports ConsistentSystemID as True instead of False, since its system ID is known and consistent. Closes #11602 Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
mnencia
approved these changes
Oct 14, 2026
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
…11645) The status probe read the system ID with SQL. A fenced or restarting instance can't run SQL, so it reported none. After a demotion all instances are in that state, so the operator set ConsistentSystemID to False (NotFound) and did not update it until another event touched the Cluster. Read the ID from pg_control instead, which doesn't need a running PostgreSQL. A cluster fenced on purpose now reports ConsistentSystemID as True. Closes #11602 Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> (cherry picked from commit 9db8760)
mnencia
added a commit
that referenced
this pull request
Oct 15, 2026
…11645) The status probe read the system ID with SQL. A fenced or restarting instance can't run SQL, so it reported none. After a demotion all instances are in that state, so the operator set ConsistentSystemID to False (NotFound) and did not update it until another event touched the Cluster. Read the ID from pg_control instead, which doesn't need a running PostgreSQL. A cluster fenced on purpose now reports ConsistentSystemID as True. Closes #11602 Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> (cherry picked from commit 9db8760) Signed-off-by: Marco Nenciarini <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The status probe read the system ID with SQL. A fenced or restarting instance can't run SQL, so it reported none. After a demotion all instances are in that state, so the operator set ConsistentSystemID to False (NotFound) and did not update it until another event touched the Cluster.
Read the ID from pg_control instead, which doesn't need a running PostgreSQL. A cluster fenced on purpose now reports ConsistentSystemID as True.
Closes #11602
Alternative to #11603, which requeues the reconciliation.