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 are deleted from state due to identity issues #45

Open
EladGabay opened this issue Sep 9, 2022 · 2 comments
Open

Resources are deleted from state due to identity issues #45

EladGabay opened this issue Sep 9, 2022 · 2 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec

Comments

@EladGabay
Copy link

EladGabay commented Sep 9, 2022

What happened?

Unfortunately there was (/is) a major identity issue in OCI which makes a lot of requests to end up with 404 errors.
In OCI there's no special error code for not authorized, and it's 404 not authorized or not found. That means, permission issues are handled the same as not found.
This leads to deletion of resources from state, then when no more permission issues, we get "already exists" errors.

Steps to reproduce

Create some resource, remove permissions, exec pulumi couple of times, fix permissions and get already exists error.

Expected Behavior

Reuse the existing resource

Actual Behavior

Resources are deleted from state

Output of pulumi about

No response

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@EladGabay EladGabay added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 9, 2022
@jkisk jkisk added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed needs-triage Needs attention from the triage team labels Sep 12, 2022
@jkisk
Copy link

jkisk commented Sep 12, 2022

Thanks for filing bug @EladGabay and linking to upstream @or-shachar for context.

@lblackstone lblackstone added kind/bug Some behavior is incorrect or out of spec and removed kind/bug Some behavior is incorrect or out of spec labels Oct 3, 2022
@aq17
Copy link
Contributor

aq17 commented Jun 20, 2023

Update, this issue is still being tracked upstream: oracle/terraform-provider-oci#1619

@iwahbe iwahbe added the blocked The issue cannot be resolved without 3rd party action. label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

5 participants