Skip to content

feat: keep track of the PG system ID in the status - #7717

Merged
mnencia merged 3 commits into
cloudnative-pg:mainfrom
leonardoce:systemid
Jun 6, 2025
Merged

mnencia merged 3 commits into
cloudnative-pg:mainfrom
leonardoce:systemid

Conversation

@leonardoce

@leonardoce leonardoce commented Jun 3, 2025 •

Copy link
Copy Markdown
Contributor

This patch add field names .status.SystemID, that keeps track of the system ID reported by the PostgreSQL instances.

The new field is set only if the reported system ID is consistent across all the instances. If there is no reported system ID or if there are inconsistencies, the field set to empty.

A new condition keeps track of the consistency status.

Closes: #7716

@leonardoce
leonardoce requested a review from jsilvela as a code owner June 3, 2025 14:34
@leonardoce
leonardoce requested a review from a team June 3, 2025 14:34
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Jun 3, 2025
@github-actions

github-actions Bot commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation 📖 Improvements or additions to documentation enhancement 🪄 New feature or request labels Jun 3, 2025
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 4, 2025
@armru

armru commented Jun 4, 2025

Copy link
Copy Markdown
Member

/test limit=local depth=4 tl=push

@github-actions

github-actions Bot commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

@armru
armru force-pushed the systemid branch 4 times, most recently from 8db4d46 to 09980c6 Compare June 4, 2025 12:28
@armru

armru commented Jun 4, 2025

Copy link
Copy Markdown
Member

/test limit=local depth=push tl=4

@github-actions

github-actions Bot commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 4, 2025
@armru

armru commented Jun 5, 2025

Copy link
Copy Markdown
Member

/test limit=local

@github-actions

github-actions Bot commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

@mnencia

mnencia commented Jun 5, 2025

Copy link
Copy Markdown
Member

/test

@github-actions

github-actions Bot commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Jun 5, 2025
leonardoce and others added 3 commits June 6, 2025 13:56
This patch add field names `.status.SystemID`, that keeps track of the
system ID reported by the PostgreSQL instances.

The new field is set only if the reported system ID is consistent across
all the instances. If there is no reported system ID or if there are
inconsistencies, the field set to empty.

A new condition keeps track of the consistency status.

Closes: cloudnative-pg#7716

Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>

chore: fix doc and refinements of reasons

Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
@mnencia
mnencia merged commit 447a079 into cloudnative-pg:main Jun 6, 2025
cnpg-bot pushed a commit that referenced this pull request Jun 6, 2025
This patch add field names `.status.SystemID`, that keeps track of the
system ID reported by the PostgreSQL instances.

The new field is set only if the reported system ID is consistent across
all the instances. If there is no reported system ID or if there are
inconsistencies, the field set to empty.

A new condition keeps track of the consistency status.

Closes: #7716

Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 447a079)
mnencia pushed a commit that referenced this pull request Jun 9, 2025
This patch add field names `.status.SystemID`, that keeps track of the
system ID reported by the PostgreSQL instances.

The new field is set only if the reported system ID is consistent across
all the instances. If there is no reported system ID or if there are
inconsistencies, the field set to empty.

A new condition keeps track of the consistency status.

Closes: #7716

Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 447a079)
mnencia pushed a commit that referenced this pull request Jun 9, 2025
This patch add field names `.status.SystemID`, that keeps track of the
system ID reported by the PostgreSQL instances.

The new field is set only if the reported system ID is consistent across
all the instances. If there is no reported system ID or if there are
inconsistencies, the field set to empty.

A new condition keeps track of the consistency status.

Closes: #7716

Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 447a079)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases documentation 📖 Improvements or additions to documentation enhancement 🪄 New feature or request lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: PostgreSQL system identifier in the cluster status

4 participants