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

Resources with scheduled deletion are getting stuck during deletion #100

Closed
muvaf opened this issue Sep 26, 2022 · 0 comments · Fixed by #101
Closed

Resources with scheduled deletion are getting stuck during deletion #100

muvaf opened this issue Sep 26, 2022 · 0 comments · Fixed by #101
Assignees
Labels
bug Something isn't working

Comments

@muvaf
Copy link
Member

muvaf commented Sep 26, 2022

What happened?

With #97 , we now fill the tfstate with TF ID if it's empty and there is no ongoing operation. However, there are resources, like GCP KMS Keyring, whose deletion doesn't happen immediately. Terraform marks them for scheduled deletion and then removes the object from the tfstate. Since we now fill the id in the next reconcile, it queries the cloud provider and imports the resource whose deletion is scheduled. So, it gets into this loop until the keyring is physically deleted which could take days.

The impact of this bug is limited to only such resources.

How can we reproduce it?

This is the failed Uptest run https://github.com/upbound/official-providers/actions/runs/3128437565

You can run the following command locally after preparing ProviderConfig of GCP:

make uptest-local PROVIDER_NAME=provider-gcp EXAMPLE_LIST=$(find provider-gcp/examples/kms/*.yaml | tr '\n' ',')
@muvaf muvaf added the bug Something isn't working label Sep 26, 2022
@muvaf muvaf self-assigned this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant