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

Transient error "native provider reuse budget has been exceeded" #348

Closed
ZhiminXiang opened this issue Aug 4, 2023 · 7 comments
Closed

Comments

@ZhiminXiang
Copy link

What happened?

We have seen many transient errors like below

│     message: 'observe failed: cannot schedule a native provider during observe: e2eb787b-fd7f-4297-8110-fa8a64f45146:       │
│       cannot schedule native Terraform provider process: native provider reuse budget                                       │
│       has been exceeded: invocationCount: 112, ttl: 100' 

When this error happened, the Synced status of the related managed resource became unready.
It could last a couple of minutes for a managed resource, and then the resource would be recovered from the state.

This error makes our tests very flaky, and also causes much confusion for our users.

How can we reproduce it?

I am not really sure how to consistently reproduce this issue since the issue is transient.

What environment did it happen in?

  • Crossplane Version: 1.12.0
  • Provider Version: v0.33.0
  • Kubernetes Version: v1.24.14
  • Kubernetes Distribution: GKE
@ZhiminXiang ZhiminXiang added bug Something isn't working needs:triage labels Aug 4, 2023
@jeanduplessis
Copy link
Collaborator

@ZhiminXiang version v0.35.0 of the provider was built with improvements to Upjet that address this error. Could you upgrade your provider and let us know if this is still a problem for you?

@toastwaffle
Copy link

We saw some errors similar to this when we upgraded to v0.35.0, but for us they weren't transient; the provider got completely stuck until we restarted it.

I've created crossplane/upjet#261 to add a little bit of extra logging, as I suspect the inUse count is somehow not getting decremented in some situations.

@machecazzon
Copy link

machecazzon commented Feb 13, 2024

Started to observe this error suddenly as well xpkg.upbound.io/upbound/provider-gcp:v0.38.1

CannotObserveExternalResource
cannot schedule a native provider during observe: 5e656f02-149c-4ff5-9009-dc82b0c91b18: cannot schedule native Terraform provider process: native provider reuse budget has been exceeded: invocationCount: 120, ttl: 100

The only difference on my environment is now use function pipelines 🤔

@toastwaffle
Copy link

Could you upgrade to v0.40.0 or later? The new non-forking architecture mostly solves this I think

@machecazzon
Copy link

Still observing. Thinks cooled down and I had notice that sqladmin api went quota missing due to i believe a wrong project on database resource.

I can surely give v0.41.1 a try. But right now want to observe things a bit as I've never observed this error before changing to pipelines.

@turkenf turkenf removed the community label May 7, 2024
Copy link

github-actions bot commented Aug 6, 2024

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Aug 6, 2024
Copy link

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants