Community Note
- Please vote on this issue by adding a ๐ reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v0.13.1
- provider registry.terraform.io/terraform-providers/stackpath v1.3.2
Affected Resource(s)
- stackpath_compute_workload
Terraform Configuration Files
Debug Output
stackpath_compute_workload.workloadname: Importing from ID "0a61802e-1edf-4d4d-9d15-686e327433b9"...
stackpath_compute_workload.workloadname: Import prepared!
Prepared stackpath_compute_workload for import
stackpath_compute_workload.workloadname: Refreshing state... [id=0a61802e-1edf-4d4d-9d15-686e327433b9]
Error: rpc error: code = Unavailable desc = transport is closing
panic: runtime error: index out of range [0] with length 0
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2:
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: goroutine 15 [running]:
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath.flattenComputeMatchExpressionsOrdered(0xc000917618, 0x11, 0xc000462c40, 0xc0007b8e40, 0x1, 0x4, 0x11, 0xc0005a8000, 0xc000917668)
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath/structure_core.go:107 +0x5d4
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath.flattenComputeWorkloadTarget(0xc0008823a8, 0x8, 0xc00079be3e, 0x2, 0xc000462c40, 0xc0007b8da0, 0x8)
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath/structure_compute_workload.go:505 +0x3cd
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath.flattenComputeWorkloadTargets(0x1d122de, 0x6, 0xc000462c40, 0xc00060d020, 0xc0000e0b60, 0x0, 0x0)
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath/structure_compute_workload.go:489 +0x51c
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath.flattenComputeWorkload(0xc000462c40, 0xc000136ee0, 0x0, 0x0)
2020-09-10T12:24:28.793-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath/structure_compute_workload.go:346 +0x8c3
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath.resourceComputeWorkloadRead(0xc000462c40, 0x1bb27a0, 0xc0002e2800, 0xc000462c40, 0x0)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/terraform-providers/terraform-provider-stackpath/stackpath/resource_stackpath_compute_workload.go:431 +0x23f
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000090ab0, 0xc00047d090, 0x1bb27a0, 0xc0002e2800, 0xc000123848, 0x0, 0x0)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/[email protected]/helper/schema/resource.go:460 +0x119
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ReadResource(0xc000181500, 0x1f88900, 0xc00034b860, 0xc00074a900, 0xc000181500, 0xc00034b860, 0xc000643b78)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/[email protected]/internal/helper/plugin/grpc_provider.go:525 +0x3d8
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ReadResource_Handler(0x1cd1c00, 0xc000181500, 0x1f88900, 0xc00034b860, 0xc00074a8a0, 0x0, 0x1f88900, 0xc00034b860, 0xc0004b60f0, 0xed)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: github.com/hashicorp/[email protected]/internal/tfplugin5/tfplugin5.pb.go:3269 +0x217
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/grpc.(*Server).processUnaryRPC(0xc000782a80, 0x1f93380, 0xc000783e00, 0xc000230800, 0xc00008a6f0, 0x27565b0, 0x0, 0x0, 0x0)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/[email protected]/server.go:1024 +0x501
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/grpc.(*Server).handleStream(0xc000782a80, 0x1f93380, 0xc000783e00, 0xc000230800, 0x0)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/[email protected]/server.go:1313 +0xd3d
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0000363c0, 0xc000782a80, 0x1f93380, 0xc000783e00, 0xc000230800)
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/[email protected]/server.go:722 +0xa1
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: created by google.golang.org/grpc.(*Server).serveStreams.func1
2020-09-10T12:24:28.794-0700 [DEBUG] plugin.terraform-provider-stackpath_v1.3.2: google.golang.org/[email protected]/server.go:720 +0xa1
2020-09-10T12:24:28.796-0700 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020/09/10 12:24:28 [ERROR] eval: *terraform.EvalRefresh, err: rpc error: code = Unavailable desc = transport is closing
2020/09/10 12:24:28 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2020/09/10 12:24:28 [TRACE] [walkImport] Exiting eval tree: import stackpath_compute_workload.workloadname result
2020/09/10 12:24:28 [TRACE] vertex "import stackpath_compute_workload.workloadname result": visit complete
2020/09/10 12:24:28 [TRACE] vertex "stackpath_compute_workload.workloadname (import id "0a61802e-1edf-4d4d-9d15-686e327433b9")": dynamic subgraph encountered errors
2020/09/10 12:24:28 [TRACE] vertex "stackpath_compute_workload.workloadname (import id "0a61802e-1edf-4d4d-9d15-686e327433b9")": visit complete
2020-09-10T12:24:28.796-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/terraform-providers/stackpath/1.3.2/darwin_amd64/terraform-provider-stackpath_v1.3.2 pid=20263 error="exit status 2"
2020/09/10 12:24:28 [TRACE] dag/walk: upstream of "provider["registry.terraform.io/terraform-providers/stackpath"] (close)" errored, so skipping
2020/09/10 12:24:28 [TRACE] dag/walk: upstream of "root" errored, so skipping
2020/09/10 12:24:28 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2020/09/10 12:24:28 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
2020-09-10T12:24:28.798-0700 [DEBUG] plugin: plugin exited
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform1 so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
SECURITY WARNING: the "crash.log" file that was created may contain
sensitive information that must be redacted before it is safe to share
on the issue tracker.
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Panic Output
crash.log
Expected Behavior
Successful workload import
Actual Behavior
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform1 so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
SECURITY WARNING: the "crash.log" file that was created may contain
sensitive information that must be redacted before it is safe to share
on the issue tracker.
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Steps to Reproduce
tterraform import stackpath_compute_workload.workloadname xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Important Factoids
N/A
References
hashicorp/terraform#26088