Skip to content

Instantly share code, notes, and snippets.

@maitreya-source
Created July 12, 2021 15:34
Show Gist options
  • Save maitreya-source/8a0bc8296d217dce7a07df6b06f0a1a6 to your computer and use it in GitHub Desktop.
Save maitreya-source/8a0bc8296d217dce7a07df6b06f0a1a6 to your computer and use it in GitHub Desktop.
Debug log for issue : Azure to GCP google_storage_transfer_job terraform crash #9547
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# google_storage_bucket.blob-backup-bucket will be created
+ resource "google_storage_bucket" "blob-backup-bucket" {
+ bucket_policy_only = (known after apply)
+ force_destroy = false
+ id = (known after apply)
+ location = "US"
+ name = "azureblob"
+ project = "someproject"
+ self_link = (known after apply)
+ storage_class = "NEARLINE"
+ uniform_bucket_level_access = (known after apply)
+ url = (known after apply)
}
# google_storage_bucket_iam_member.blob-backup-bucket will be created
+ resource "google_storage_bucket_iam_member" "blob-backup-bucket" {
+ bucket = "azureblob"
+ etag = (known after apply)
+ id = (known after apply)
+ member = "serviceAccount:project-<some-project-number>@storage-transfer-service.iam.gserviceaccount.com"
+ role = "roles/storage.admin"
}
# google_storage_transfer_job.azure-to-gcp-new will be created
+ resource "google_storage_transfer_job" "azure-to-gcp-new" {
+ creation_time = (known after apply)
+ deletion_time = (known after apply)
+ description = "Storage Migrate from Az to GCP"
+ id = (known after apply)
+ last_modification_time = (known after apply)
+ name = (known after apply)
+ project = "someproject"
+ status = "ENABLED"
+ schedule {
+ schedule_end_date {
+ day = 15
+ month = 1
+ year = 2019
}
+ schedule_start_date {
+ day = 9
+ month = 7
+ year = 2021
}
+ start_time_of_day {
+ hours = 23
+ minutes = 30
+ nanos = 0
+ seconds = 0
}
}
+ transfer_spec {
+ azure_blob_storage_data_source {
+ container = "somenewcontainer"
+ path = (known after apply)
+ storage_account = "test"
+ azure_credentials {
+ sas_token = (sensitive value)
}
}
+ gcs_data_sink {
+ bucket_name = "azureblob"
}
+ transfer_options {
+ delete_objects_unique_in_sink = false
}
}
}
Plan: 3 to add, 0 to change, 0 to destroy.
google_storage_bucket.blob-backup-bucket: Creating...
google_storage_bucket.blob-backup-bucket: Creation complete after 1s [id=azureblob-maitreyam]
google_storage_bucket_iam_member.blob-backup-bucket: Creating...
google_storage_bucket_iam_member.blob-backup-bucket: Creation complete after 6s [id=b/azureblob-maitreyam/roles/storage.admin/serviceAccount:project-68322335026@storage-transfer-service.iam.gserviceaccount.com]
google_storage_transfer_job.azure-to-gcp-new: Creating...
Stack trace from the terraform-provider-google_v3.74.0_x5 plugin:
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 283 [running]:
github.com/hashicorp/terraform-provider-google/google.expandAzureBlobStorageData(...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_storage_transfer_job.go:849
github.com/hashicorp/terraform-provider-google/google.expandTransferSpecs(0xc0011220b0, 0x1, 0x1, 0x2737860)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_storage_transfer_job.go:924 +0xe39
github.com/hashicorp/terraform-provider-google/google.resourceStorageTransferJobCreate(0xc001096d80, 0x2db4b60, 0xc00067ac00, 0x2, 0xffffffffffffffff)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_storage_transfer_job.go:442 +0x2fd
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc000b8a7e0, 0x32ad100, 0xc001081d80, 0xc001096d80, 0x2db4b60, 0xc00067ac00, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:318 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000b8a7e0, 0x32ad100, 0xc001081d80, 0xc000da9a40, 0xc001116660, 0x2db4b60, 0xc00067ac00, 0x0, 0x0, 0x0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:456 +0x67b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00000c9f0, 0x32ad100, 0xc001081d80, 0xc000fdfae0, 0xc001081d80, 0x2d01020, 0xc001095600)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:955 +0x8ef
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc001116fa0, 0x32ad1a8, 0xc001081d80, 0xc000da98f0, 0xc001116fa0, 0xc0010956e0, 0xc00114fba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/server/server.go:332 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x2d01020, 0xc001116fa0, 0x32ad1a8, 0xc0010956e0, 0xc000fba540, 0x0, 0x32ad1a8, 0xc0010956e0, 0xc0014a2a00, 0x6d0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001ed880, 0x32e5d58, 0xc000222f00, 0xc00109cea0, 0xc00069e9f0, 0x40de7c0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1286 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0001ed880, 0x32e5d58, 0xc000222f00, 0xc00109cea0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1609 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc00019ce00, 0xc0001ed880, 0x32e5d58, 0xc000222f00, 0xc00109cea0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:934 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:932 +0x1fd
Error: The terraform-provider-google_v3.74.0_x5 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment