Hi, Recently I'm getting exceptions regarding empt...
# general
g
Hi, Recently I'm getting exceptions regarding empty resource ID. I can create resource but i can't recreate and destroy them. https://github.com/pulumi/pulumi/blob/master/pkg/resource/plugin/provider_plugin.go#L667 https://github.com/pulumi/pulumi/blob/master/pkg/resource/deploy/step.go#L248 I'm wondering if it can be caused by duplicated resource names. Anyone encounterd it? Thanks example message :
Copy code
panic: fatal: An assertion has failed

goroutine 81 [running]:
<http://github.com/pulumi/pulumi/pkg/util/contract.failfast(...)|github.com/pulumi/pulumi/pkg/util/contract.failfast(...)>
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/pkg/util/contract.Assert(...)|github.com/pulumi/pulumi/pkg/util/contract.Assert(...)>
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/pkg/resource/deploy.NewDeleteStep|github.com/pulumi/pulumi/pkg/resource/deploy.NewDeleteStep>(0xc001362180, 0xc0012a5800, 0xc0000c5300, 0x73)
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/step.go:237 +0x261
<http://github.com/pulumi/pulumi/pkg/resource/deploy.(*stepGenerator).GenerateDeletes(0xc0003d30e0|github.com/pulumi/pulumi/pkg/resource/deploy.(*stepGenerator).GenerateDeletes(0xc0003d30e0>, 0xc00007cc00, 0x2, 0x0)
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/step_generator.go:539 +0x884
<http://github.com/pulumi/pulumi/pkg/resource/deploy.(*planExecutor).Execute.func3(0xc001347980|github.com/pulumi/pulumi/pkg/resource/deploy.(*planExecutor).Execute.func3(0xc001347980>, 0xc0009dbba0, 0xc000c2e290, 0x18bfee0, 0xc000c32040, 0x18bfee0, 0xc000c32000, 0x10000, 0x1, 0xc0004e9c20)
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/plan_executor.go:155 +0x3d5
<http://github.com/pulumi/pulumi/pkg/resource/deploy.(*planExecutor).Execute(0xc0009dbba0|github.com/pulumi/pulumi/pkg/resource/deploy.(*planExecutor).Execute(0xc0009dbba0>, 0x18bfee0, 0xc000c32000, 0x18c01e0, 0xc000391810, 0x7fffffff, 0x10000, 0xc0007f5f01, 0x0, 0x0)
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/plan_executor.go:192 +0x511
<http://github.com/pulumi/pulumi/pkg/resource/deploy.(*Plan).Execute(...)|github.com/pulumi/pulumi/pkg/resource/deploy.(*Plan).Execute(...)>
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/plan.go:330
<http://github.com/pulumi/pulumi/pkg/engine.(*planResult).Walk.func1|github.com/pulumi/pulumi/pkg/engine.(*planResult).Walk.func1>(0x18c01e0, 0xc000391810, 0xc000391760, 0x18bfee0, 0xc000c32000, 0x14daf01, 0xc000c2e280, 0xc0013477a0)
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/engine/plan.go:195 +0x13b
created by <http://github.com/pulumi/pulumi/pkg/engine.(*planResult).Walk|github.com/pulumi/pulumi/pkg/engine.(*planResult).Walk>
        /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/engine/plan.go:186 +0x11b
b
empty resource id is
""
?
g
every resource has some id, but can it be duplicated?
b
Hi @gray-lawyer-89054 Is this something you can reproduce? I am going to be in that part of the codebase very soon (like later today) so if it's something you can reproduce then I can do something about it
g
basically it happens every time when i call pulumi destroy in my project but I can't point when this started. I'll try to find reproduce steps
b
Thanks - please let me know if you find something
w
Could you open an issue even ahead of having a complete repro? This is definitely a bug we want to fix - at the very least to provide a better error message earlier.
Opened https://github.com/pulumi/pulumi/issues/3059. If you have any more details - please do add them there.