-
Notifications
You must be signed in to change notification settings - Fork 52
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
Service Account fails to create with non-nil error with nil state
error
#2693
Comments
We suffer from this on an almost daily basis since a couple of weeks.
A retry of the pulumi up than fails with:
Only remedy we have is to manually delete the service account in GCP and then do a pulumi retry. It feels like this just started happening one day without us upgrading the pulumi libraries. So it might be related to a server-side change at GCP. |
Thanks for reporting @wvanderdeijl. Are you also running this in tests or are you seeing these errors in production workflows? I strongly suspect this is indeed GCP API doing something but we might be able to mitigate it. |
This is in production workflows. We do multiple deployments a day. Not all run into this issue, but a significant percentage does. |
non-nil error with nil state
error
This might be version related. I tried with the following simple pulumi (clean) project: import * as gcp from "@pulumi/gcp";
const prefix = 'a';
for (let i =0; i<=75; i++ ) {
new gcp.serviceaccount.Account(`${prefix}account${i}`, { accountId: `${prefix}account${i}` });
} With the freshly installed But when downgrading to Not sure if this is concidence. I haven't tested any of the intermediate versions. |
Interesting, thank you for reporting back @wvanderdeijl. It would be great if this is indeed fixed! |
Describe what happened
The service account resource occasionally fails to create with
non-nil error with nil state
. The account is actually created so further attempts to re-create it cause conflicts. This was reported by users and also affects our tests.I've come across this particular flake a few times now:
#2683
#2530
but those are just the two issues outlining the exact failure. There could be more where the error wasn't noted. We should investigate.
Sample program
See run output in those links.
Log output
No response
Affected Resource(s)
No response
Output of
pulumi about
n/a
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).
The text was updated successfully, but these errors were encountered: