pulumi-gcp: Adding 'website' configuration to GCS bucket causes panic

GCP project currently hosts 3 buckets set with FQDNs and the ‘allUsers’ permission making them public. Request from software team that 404 responses are routed to ‘index.html’.

Implement the following change in my Pulumi code (website section added to bucket creation):

const bucket = new gcp.storage.Bucket(bucketName, {
            name: bucketName,
            project,
            cors: corsPolicy,
            websites: [
                {
                    notFoundPage,
                    mainPageSuffix
                }
            ]
        });

Pulumi preview shows the addition of the websites. pulumi up -y however results in the below:

Diagnostics:
  gcp:storage:Bucket (caseypayments.mindbody.io):
    error: Plan apply failed: all SubConns are in TransientFailure, latest connection error: <nil>

  gcp:compute:ProjectMetadata (default-metadata):
    error: Plan apply failed: transport is closing

  gcp:dns:RecordSet (origin-signin.casey.arcusplatform.io.):
    error: all SubConns are in TransientFailure, latest connection error: <nil>

  gcp:storage:Bucket (signin.casey.arcusplatform.io):
    error: Plan apply failed: transport is closing

  pulumi:pulumi:Stack (viserion-casey-robertson):
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x24ee67f]
    goroutine 153 [running]:
    github.com/pulumi/pulumi-gcp/vendor/github.com/terraform-providers/terraform-provider-google-beta/google-beta.resourceStorageBucketUpdate(0xc000157960, 0x2a7a6c0, 0xc000284820, 0x24, 0x4555700)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_storage_bucket.go:395 +0xfff
    github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000444800, 0xc000a4d450, 0xc0006dcd20, 0x2a7a6c0, 0xc000284820, 0x1, 0xc00084d688, 0xc00084d6a0)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:292 +0x264
    github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000445300, 0xc00084d868, 0xc000a4d450, 0xc0006dcd20, 0x0, 0x0, 0x0)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:285 +0x18f
    github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi-terraform/pkg/tfbridge.(*Provider).Update(0xc0002e2b40, 0x320b5a0, 0xc0006b4e70, 0xc000a4d400, 0xc0002e2b40, 0x2a69c01, 0xc000612200)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi-terraform/pkg/tfbridge/provider.go:721 +0x70c
    github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Update_Handler.func1(0x320b5a0, 0xc0006b4e70, 0x2d2b660, 0xc000a4d400, 0x2d6aa60, 0x4553fa0, 0x320b5a0, 0xc0006b4e70)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go/provider.pb.go:1367 +0x86
    github.com/pulumi/pulumi-gcp/vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x320b5a0, 0xc0006b4300, 0x2d2b660, 0xc000a4d400, 0xc000793e60, 0xc000793e80, 0x0, 0x0, 0x31c2e60, 0xc00025be20)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/server.go:61 +0x360
    github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Update_Handler(0x2db54e0, 0xc0002e2b40, 0x320b5a0, 0xc0006b4300, 0xc000a4d3b0, 0xc0002c0c00, 0x320b5a0, 0xc0006b4300, 0xc000a53200, 0x45d)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/github.com/pulumi/pulumi/sdk/proto/go/provider.pb.go:1369 +0x158
    github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc.(*Server).processUnaryRPC(0xc000001800, 0x321bce0, 0xc0004ba900, 0xc0001fc200, 0xc00033b110, 0x4526d40, 0x0, 0x0, 0x0)
        /home/travis/gopath/src/github.com/pulumi/pulumi-gcp/vendor/google.golang.org/grpc/server.go:971 +0x470

Deleting and recreating the bucket and/or writing a simple bucket-only stack from scratch does not exhibit this issue.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 25 (12 by maintainers)

Most upvoted comments

Thanks @casey-robertson - I will try and recreate it and work out what is happening