Skip to content
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

[Bug] Provisioning a pinecone.Index if the name already exists results in a panic #100

Open
2 tasks done
jkodroff opened this issue Jun 20, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@jkodroff
Copy link

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

pulumi up panics attempting to create an index with a naming collision.

Expected Behavior

The provider should return a meaningful error message, not panic.

Steps To Reproduce

  1. Create an index in the PineCone console.
  2. Create a pinecone.PineconeIndex with the same name
  3. pulumi up will panic (stack trace below)

Relevant log output

Diagnostics:
  pulumi:pulumi:Stack (ratest-dev):
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x1056d61b8]
    goroutine 82 [running]:
    github.com/pinecone-io/pulumi-pinecone/provider/pkg/pinecone/index.(*PineconeIndex).Create(_, {_, _}, {_, _}, {{0x1400026eb90, 0xf}, 0x180, {0x1400026eb86, 0x6}, ...}, ...)
        /home/runner/work/pulumi-pinecone/pulumi-pinecone/provider/pkg/pinecone/index/index.go:225 +0xee8
    github.com/pulumi/pulumi-go-provider/infer.(*derivedResourceController[...]).Create(0x105ba9d60?, {0x105b9fae0, 0x140003ec510}, {{0x140002940f0, 0x44}, 0x140003ec1b0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/pulumi/[email protected]/infer/resource.go:907 +0x18c
    github.com/pulumi/pulumi-go-provider/middleware/dispatch.Wrap.func6({0x105b9fae0, 0x140003ec510}, {{0x140002940f0, 0x44}, 0x140003ec1b0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/pulumi/[email protected]/middleware/dispatch/dispatch.go:90 +0x130
    github.com/pulumi/pulumi-go-provider/middleware/context.Wrap.func9({0x105b9fae0?, 0x140003ec480?}, {{0x140002940f0, 0x44}, 0x140003ec1b0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/pulumi/[email protected]/middleware/context/context.go:53 +0x80
    github.com/pulumi/pulumi-go-provider/middleware/cancel.Wrap.func10({0x105b9fae0?, 0x140003ec420?}, {{0x140002940f0, 0x44}, 0x140003ec1b0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/pulumi/[email protected]/middleware/cancel/cancel.go:126 +0xa8
    github.com/pulumi/pulumi-go-provider.(*provider).Create(0x14000216360, {0x105b956c8?, 0x140003ec180}, 0x1400009aaf0)
        /home/runner/go/pkg/mod/github.com/pulumi/[email protected]/provider.go:818 +0x20c
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1({0x105b956c8, 0x140003ec180}, {0x105ad1420?, 0x1400009aaf0})
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:593 +0x74
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x105b956c8, 0x140003f4c60}, {0x105ad1420, 0x1400009aaf0}, 0x14000394740, 0x140003c8480)
        /home/runner/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/go/otgrpc/server.go:57 +0x308
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler({0x105b42be0?, 0x14000216360}, {0x105b956c8, 0x140003f4c60}, 0x1400012ea80, 0x1400069bf80)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:595 +0x138
    google.golang.org/grpc.(*Server).processUnaryRPC(0x14000259000, {0x105b956c8, 0x140003f4bd0}, {0x105b9fcc0, 0x14000502ea0}, 0x14000238900, 0x14000224de0, 0x106358980, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1372 +0xc6c
    google.golang.org/grpc.(*Server).handleStream(0x14000259000, {0x105b9fcc0, 0x14000502ea0}, 0x14000238900)
        /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1783 +0xc9c
    google.golang.org/grpc.(*Server).serveStreams.func2.1()
        /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1016 +0x5c
    created by google.golang.org/grpc.(*Server).serveStreams.func2
        /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1027 +0x148

    error: update failed

  pinecone:index:PineconeIndex (pinecone-index):
    error: error reading from server: EOF


### Environment

```markdown
- **OS**:
- **Language version**:
- **Pinecone client version**:

Additional Context

No response

@jkodroff jkodroff added the bug Something isn't working label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant