Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cluster phase change should not interrupt the hibernation processing #3970

Merged
merged 6 commits into from
Mar 13, 2024

Conversation

YanniHu1996
Copy link
Contributor

@YanniHu1996 YanniHu1996 commented Mar 1, 2024

This patch fix a corner case that during hibernation, instance pod has
been deleted but cluster status still have hibernation condition
k8s.enterprisedb.io/hibernation set to state=false. Also in this patch,
we enfored the hibernation annotation k8s.enterprisedb.io/hibernation
can only accept on and off value in webhook.

closes #3965

@github-actions github-actions bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.21 release-1.22 labels Mar 1, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

❗ 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

@YanniHu1996 YanniHu1996 force-pushed the dev/3965 branch 3 times, most recently from 6cea92b to 31d86cf Compare March 1, 2024 03:56
@YanniHu1996
Copy link
Contributor Author

@litaocdl litaocdl changed the title fix: Do not interrupt hibernate in progress, even if the cluster is unhealthy fix: cluster phase change should not interrupt the hibernate processing Mar 13, 2024
@litaocdl litaocdl changed the title fix: cluster phase change should not interrupt the hibernate processing fix: cluster phase change should not interrupt the hibernation processing Mar 13, 2024
@armru armru force-pushed the dev/3965 branch 2 times, most recently from 2a555db to fe96fd8 Compare March 13, 2024 10:39
YanniHu1996 and others added 4 commits March 13, 2024 20:23
Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
@litaocdl
Copy link
Collaborator

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Mar 13, 2024
@litaocdl litaocdl merged commit 30d6f56 into cloudnative-pg:main Mar 13, 2024
26 of 27 checks passed
@litaocdl litaocdl deleted the dev/3965 branch March 13, 2024 12:34
litaocdl added a commit that referenced this pull request Mar 13, 2024
This patch fix a corner case that during hibernation, instance pod has
been deleted but cluster status still have hibernation condition
`k8s.enterprisedb.io/hibernation` set to state=false. Also in this
patch, we enfored the hibernation annotation `k8s.enterprisedb.io/hibernation`
can only accept `on` and `off` value in webhook.

closes #3965

Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Tao Li <tao.li@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
litaocdl added a commit that referenced this pull request Mar 13, 2024
This patch fix a corner case that during hibernation, instance pod has
been deleted but cluster status still have hibernation condition
`k8s.enterprisedb.io/hibernation` set to state=false. Also in this
patch, we enfored the hibernation annotation `k8s.enterprisedb.io/hibernation`
can only accept `on` and `off` value in webhook.

closes #3965

Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Tao Li <tao.li@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
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 ok to merge 👌 This PR can be merged release-1.21 release-1.22
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: the process of hibernation is stuck in the unhealthy phase
4 participants