Repository navigation
fix: ignore internal configs in config hash calculation - #8868
Merged
Merged
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Contributor
|
/test |
Contributor
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18564351972 |
armru
approved these changes
Oct 16, 2025
Member
|
/test limit=local |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18565137488 |
leonardoce
approved these changes
Oct 20, 2025
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 20, 2025
Closes #8371 Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit 076273e)
4 tasks done
mnencia
added a commit
that referenced
this pull request
Mar 22, 2026
…es (#10342) When upgrading from an operator version that includes cnpg.* parameters in the PostgreSQL configuration hash to one that excludes them (change introduced in #8868), pods running the old and new operator end up computing different hashes for the same effective configuration. The uniformity check in reconcilePods then blocks indefinitely, waiting for all pods to report the same hash, but that can never happen because the remaining pods still use the old algorithm. Neither the rolling update nor the in-place instance manager upgrade can run, since both live behind the blocked check. The fix introduces `isConfigNonUniformityFromUpgrade()`, which groups pods by their operator version and checks whether the hash split aligns exactly with the version split. If every pod running the same operator version agrees on its hash, but different versions disagree, the non-uniformity is structural and will never self-resolve. In that case we skip the wait and let `handleRollingUpdate` proceed. The operator version key combines both the bootstrap controller image (changes on rolling updates) and the executable hash (changes on in-place upgrades), so the deadlock is detected regardless of the upgrade strategy. When the non-uniformity is from normal config propagation (pods on the same operator version reporting different hashes), the function returns false and the existing wait-for-uniformity behavior is preserved. This keeps the fix scoped strictly to the operator upgrade deadlock scenario, with no change in behavior during normal operations. Closes: #10348 Assisted-by: Claude Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]>
cnpg-bot
pushed a commit
that referenced
this pull request
Mar 22, 2026
…es (#10342) When upgrading from an operator version that includes cnpg.* parameters in the PostgreSQL configuration hash to one that excludes them (change introduced in #8868), pods running the old and new operator end up computing different hashes for the same effective configuration. The uniformity check in reconcilePods then blocks indefinitely, waiting for all pods to report the same hash, but that can never happen because the remaining pods still use the old algorithm. Neither the rolling update nor the in-place instance manager upgrade can run, since both live behind the blocked check. The fix introduces `isConfigNonUniformityFromUpgrade()`, which groups pods by their operator version and checks whether the hash split aligns exactly with the version split. If every pod running the same operator version agrees on its hash, but different versions disagree, the non-uniformity is structural and will never self-resolve. In that case we skip the wait and let `handleRollingUpdate` proceed. The operator version key combines both the bootstrap controller image (changes on rolling updates) and the executable hash (changes on in-place upgrades), so the deadlock is detected regardless of the upgrade strategy. When the non-uniformity is from normal config propagation (pods on the same operator version reporting different hashes), the function returns false and the existing wait-for-uniformity behavior is preserved. This keeps the fix scoped strictly to the operator upgrade deadlock scenario, with no change in behavior during normal operations. Closes: #10348 Assisted-by: Claude Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> (cherry picked from commit 324709c)
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.
Closes #8371