-
Notifications
You must be signed in to change notification settings - Fork 116
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
pulumi crashes with: panic fatal: An assertion has failed #693
Comments
Very surprising that this has started to happen after changing the CLI version. The crash itself is definitely coming from the kubernetes provider, so I've moved the issue back here for the time being. /cc @pgavlin, @lblackstone It looks like this is a failing assert when trying to calculate the detailed diff to return from the provider. |
to be honest I'm not 100% sure whether this really just occurred because of the CLI update, however we recently upgraded pulumi CLIs locally and in CI to get in #645 and I didn't get this issue before. |
The assertion failing here is pulumi-kubernetes/pkg/provider/provider.go Line 1502 in 9375329
@pgavlin would have the most context on troubleshooting this. |
Yep, looking into it. |
+1 same issue on v0.17.28 |
I have been able to repro this locally. |
Empty `[]interface{}` values were being converted to array property values with a `nil` element, and empty array property values were being coverted to `nil` `[]interface{}` values. These changes fix the converters to return empty but non-nil values in both cases. This is part of the fix for pulumi/pulumi-kubernetes#693.
The repro is pretty simple. First deploy the following:
Then deploy the following, which changes
The empty arrays will end up confusing the diff logic, causing this crash. |
Empty `[]interface{}` values were being converted to array property values with a `nil` element, and empty array property values were being coverted to `nil` `[]interface{}` values. These changes fix the converters to return empty but non-nil values in both cases. This is part of the fix for pulumi/pulumi-kubernetes#693.
Pick up a recent fix to empty array property conversion. Fixes #693.
Pick up a recent fix to empty array property conversion. Fixes #693.
Pick up a recent fix to empty array property conversion. Fixes #693.
Since upgrading some of our stacks from CLI 0.17.25 to v0.17.27 I'm getting in some stacks this rather unhelpful error:
This seems to be happening when it's evaluating the preview of a kubernetes Deployment.
The pulumi kubernetes version is 0.25.5 currently, even though I can reproduce this with multiple pulumi kubernetes versions.
Let me know what other questions you have to get to the bottom of this.
The text was updated successfully, but these errors were encountered: