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 finalizer removal on interrupt #71

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

timebertt
Copy link
Member

How to categorize this PR?

/area robustness ops-productivity
/kind bug
/priority normal

What this PR does / why we need it:

When terraformer is interrupted during terraform destroy execution (i.e. because of a timeout in the infrastructure actuator), it won't remove its finalizer from terraform resources (configmaps and secret), even if the terraform execution was successful and no infrastructure resources are left.
Leaking the finalizers will lead to manual ops effort as it will block the shoot's namespace in the seed to be stuck in termination.

Special notes for your reviewer:

Should be cherry-picked to release-v2.1.

Release note:

A bug was fixed that caused terraform to leak its finalizer on ConfigMaps and Secrets in case of an interrupt during `terraform destroy`.

@timebertt timebertt requested a review from a team as a code owner February 16, 2021 08:08
@gardener-robot gardener-robot added area/ops-productivity Operator productivity related (how to improve operations) area/robustness Robustness, reliability, resilience related kind/bug Bug priority/normal needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Feb 16, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Feb 16, 2021
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Feb 16, 2021
@timebertt
Copy link
Member Author

/test

@testmachinery
Copy link

testmachinery bot commented Feb 16, 2021

Testrun: e2e-znr8q
Workflow: e2e-znr8q-wf
Phase: Succeeded

+--------------+--------------+-----------+----------+
|     NAME     |     STEP     |   PHASE   | DURATION |
+--------------+--------------+-----------+----------+
| pod-e2e-test | pod-e2e-test | Succeeded | 3m24s    |
+--------------+--------------+-----------+----------+

Copy link
Member

@vpnachev vpnachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Feb 16, 2021
@timebertt timebertt merged commit 55d401d into gardener:master Feb 16, 2021
@timebertt timebertt deleted the fix/finalizer-removal branch February 16, 2021 10:27
@gardener-robot gardener-robot added priority/3 Priority (lower number equals higher priority) and removed priority/3 Priority (lower number equals higher priority) labels Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ops-productivity Operator productivity related (how to improve operations) area/robustness Robustness, reliability, resilience related kind/bug Bug kind/test Test needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants