Skip to content

fix(fencing): remove pod existence check from FencingMetadataExecutor#10035

Merged
mnencia merged 2 commits intomainfrom
dev/10034
Feb 27, 2026
Merged

fix(fencing): remove pod existence check from FencingMetadataExecutor#10035
mnencia merged 2 commits intomainfrom
dev/10034

Conversation

@mnencia
Copy link
Member

@mnencia mnencia commented Feb 20, 2026

Remove the pod existence check from the executor, as fencing operates on a Cluster-level annotation and should not depend on pod existence. Move instance validation to the kubectl plugin fencingOn command instead.

Closes #10034

@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.27 release-1.28 labels Feb 20, 2026
@github-actions
Copy link
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

@mnencia mnencia marked this pull request as ready for review February 20, 2026 16:33
@mnencia mnencia requested a review from a team as a code owner February 20, 2026 16:33
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug 🐛 Something isn't working labels Feb 20, 2026
@mnencia
Copy link
Member Author

mnencia commented Feb 20, 2026

/test

@github-actions
Copy link
Contributor

@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/22232434210

@mnencia mnencia force-pushed the dev/10034 branch 2 times, most recently from d4c534d to 538d89c Compare February 20, 2026 17:12
@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Feb 21, 2026
@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 Feb 23, 2026
mnencia and others added 2 commits February 27, 2026 10:31
Remove the pod existence check from the executor, as fencing
operates on a Cluster-level annotation and should not depend on
pod existence. Move instance validation to the kubectl plugin
fencingOn command instead.

Closes #10034

Signed-off-by: Marco Nenciarini <[email protected]>
Add tests for fencingOn and fencingOff functions covering known/unknown
instance validation, wildcard fencing, and the edge case where an instance
is no longer in InstanceNames but still fenced.

Signed-off-by: Armando Ruocco <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 27, 2026
@mnencia mnencia merged commit 3d6e698 into main Feb 27, 2026
33 of 36 checks passed
@mnencia mnencia deleted the dev/10034 branch February 27, 2026 14:31
cnpg-bot pushed a commit that referenced this pull request Feb 27, 2026
…#10035)

Remove the pod existence check from the executor, as fencing operates on
a Cluster-level annotation and should not depend on pod existence. Move
instance validation to the kubectl plugin fencingOn command instead.

Closes #10034

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 3d6e698)
cnpg-bot pushed a commit that referenced this pull request Feb 27, 2026
…#10035)

Remove the pod existence check from the executor, as fencing operates on
a Cluster-level annotation and should not depend on pod existence. Move
instance validation to the kubectl plugin fencingOn command instead.

Closes #10034

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 3d6e698)
cnpg-bot pushed a commit that referenced this pull request Feb 27, 2026
…#10035)

Remove the pod existence check from the executor, as fencing operates on
a Cluster-level annotation and should not depend on pod existence. Move
instance validation to the kubectl plugin fencingOn command instead.

Closes #10034

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 3d6e698)
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 bug 🐛 Something isn't working lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged release-1.25 release-1.27 release-1.28 size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot unfence an instance whose pod no longer exists

4 participants