Hi guys I recently discovered pretty big bug, I am...
# general
f
Hi guys I recently discovered pretty big bug, I am using @Pulumi/rancher2@3.6.1 and @pulumi/pulumi@3.24.1 There's currently no posibility to create rancher2Provider, can anyone help on this ? And I am trying to create Rancher2 provider like this: (this is the only code block, I have and it doesn't work)
Copy code
import * as rancher2 from '@pulumi/rancher2'

const rancher2ProviderBootstrap = new rancher2.Provider(
    'ComponentResource::AwsClusterK3s::rancher2Provider',
    {
        apiUrl: `<https://test.test.com>`,
        bootstrap: true,
        timeout: '5m',
    },
)
And when I run pulumi up or pulumi preview I get this error
Copy code
goroutine 71 [running]:
panic: fatal: An assertion has failed

goroutine 71 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
        /Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)>
        /Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.mustNewReference({0xc00030c0e0|github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.mustNewReference({0xc00030c0e0>, 0x6a}, {0x1ffccaa, 0x24})
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/providers/reference.go:134 +0xce
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.(*Registry).Check(0xc000e61d60|github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.(*Registry).Check(0xc000e61d60>, {0xc00030c0e0, 0x6a}, 0x0, 0xc0010ea8d0, 0x0, 0xc000128000)
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/providers/registry.go:284 +0x40e
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc00083c6c0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc00083c6c0>, {0x190d74b4960, 0xc0004e4c60})
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:427 +0x10fb
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc00083c6c0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc00083c6c0>, {0x190d74b4960, 0xc0004e4c60})
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:185 +0x46
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc0004b1248|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc0004b1248>, {0x235e820, 0xc0004e4c60})
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:413 +0xe5
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc000f0f260|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc000f0f260>, 0xc0004b1248, 0xc000dd8f10, {0x23902f0, 0xc0001a0dc0}, 0x0, 0x0, {0x2390398, 0xc001005800})
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:250 +0x273
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc0004b1248|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc0004b1248>, {0x2390398, 0xc001005800}, {{0x190d74b26d8, 0xc000183080}, 0x7fffffff, 0x0, 0x0, {0x0, 0x0, ...}, ...}, ...)
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:266 +0x95f
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(0xc000602dc0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(0xc000602dc0>, {0x2390398, 0xc001005800}, {{0x190d74b26d8, 0xc000183080}, 0x7fffffff, 0x0, 0x0, {0x0, 0x0, ...}, ...}, ...)
        /Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment.go:447 +0xd0
<http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()>
        /Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:269 +0x250
created by <http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run>
        /Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:252 +0x371
Created also stack overflow question - https://stackoverflow.com/questions/71037919/pulumi-rancher2-provider-creation-is-throwing-error
s
Hey Roman. Could you submit an issue on GitHub for this? We have a triage process that will get some eyeballs on this soon. https://github.com/pulumi/pulumi-rancher2/issues
f
Hi, here's the link to the issue -> https://github.com/pulumi/pulumi/issues/8949 it is created inside core pulumi lib, because I think it can be also problem for all packages and not only on this specific provider.