pulumi: 2.4.3 and 2.5.0 crash with pulumi v3.177.0
Describe what happened
After update from 2.4.2 to 2.5.0 we can not longer generate a preview. Downgrading “solved” the issue.
@ previewing uppanic: fatal: An assertion has failed: provider missing from step generator providers map
goroutine 127 [running]:
github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)
github.com/pulumi/pulumi/sdk/v3@v3.172.0/go/common/util/contract/failfast.go:23
github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assertf(0x0?, {0x2d1b764?, 0xc001d42c40?}, {0x0?, 0x0?, 0xc001e33850?})
github.com/pulumi/pulumi/sdk/v3@v3.172.0/go/common/util/contract/assert.go:35 +0xe8
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).getProviderResource(0xc0026460f0, {0x2cbd1a9?, 0xc001d7f200?}, {0xc001d42c40?, 0xc001e26e4c?})
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_generator.go:2439 +0xa5
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).AnalyzeResources.func1({0xc001d7f200, 0x37}, 0xc0023de480)
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_generator.go:2705 +0x405
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).AnalyzeResources.(*Map[...]).Range.func2({0x2944fa0?, 0xc0023de480?})
github.com/pulumi/pulumi/pkg/v3/util/gsync/syncmap.go:68 +0x4b
internal/sync.(*HashTrieMap[...]).iter(0x34b1c60, 0xc002518280, 0xc001e33cb8)
internal/sync/hashtriemap.go:512 +0xea
internal/sync.(*HashTrieMap[...]).iter(0x34b1c60, 0xc001427d60, 0xc001e33cb8)
internal/sync/hashtriemap.go:505 +0x65
internal/sync.(*HashTrieMap[...]).Range(0x10bab31?, 0xc002e442a0?)
internal/sync/hashtriemap.go:495 +0x57
sync.(*Map).Range(...)
sync/hashtriemap.go:115
github.com/pulumi/pulumi/pkg/v3/util/gsync.(*Map[...]).Range(...)
github.com/pulumi/pulumi/pkg/v3/util/gsync/syncmap.go:67
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).AnalyzeResources(0xc0026460f0)
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_generator.go:2680 +0xb2
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc00407f410, {0x3434d00, 0xc00407f380})
github.com/pulumi/pulumi/pkg/v3/resource/deploy/deployment_executor.go:376 +0x8d3
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(...)
github.com/pulumi/pulumi/pkg/v3/resource/deploy/deployment.go:624
github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()
github.com/pulumi/pulumi/pkg/v3/engine/deployment.go:373 +0x88
created by github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run in goroutine 1
github.com/pulumi/pulumi/pkg/v3/engine/deployment.go:372 +0x1c6
Sample program
I can work on a smaller reproducer, but that requires a bit of time. Maybe you can see the root cause from the backtrace, I’m not familiar with the pulumi code?
Log output
No response
Affected Resource(s)
No response
Output of pulumi about
CLI
Version 3.177.0
Go Version go1.24.4
Go Compiler gc
Host
OS debian
Version trixie/sid
Arch x86_64
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).
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Add refresh to fuzzing (#19931) Given that we've seen issues like https://github.com/pulumi/pulumi/issues/19879 that depend on --refresh being set, add that to the fuzzing dimensions. — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades Fixes https://github.com/pulumi/pulumi/issues/19879 N.B. Ideally this would be fixed with https://github.com/pulumi/pulumi/issues/15732, bu... — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades Fixes https://github.com/pulumi/pulumi/issues/19879 N.B. Ideally this would be fixed with https://github.com/pulumi/pulumi/issues/15732, bu... — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades Fixes https://github.com/pulumi/pulumi/issues/19879 N.B. Ideally this would be fixed with https://github.com/pulumi/pulumi/issues/15732, bu... — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades Fixes https://github.com/pulumi/pulumi/issues/19879 — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades Fixes https://github.com/pulumi/pulumi/issues/19879 — committed to pulumi/pulumi by Frassle a year ago
- Fix a panic with --target, --refresh and provider upgrades (#19935) Fixes https://github.com/pulumi/pulumi/issues/19879 If we hit the case where the provider resource wasn't registered we should be ... — committed to pulumi/pulumi by Frassle a year ago
Thanks @nierob - it is likely the engine version that matters here and not the provider. The team is looking into it. Thank you
Ah targets, that’s probably the cause, they complicate a lot of the engine internals. We can take a look.