Skip to content

Instantly share code, notes, and snippets.

@pedrohdz
Created December 6, 2018 14:56
Show Gist options
  • Save pedrohdz/0e5287b2fbdd8634a7af9475a8cf1d3c to your computer and use it in GitHub Desktop.
Save pedrohdz/0e5287b2fbdd8634a7af9475a8cf1d3c to your computer and use it in GitHub Desktop.
terraform-provider-azurerm crash when azurerm_route_table name is a space
$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
<= read (data resources)
Terraform will perform the following actions:
<= data.azurerm_route_table.source
id: <computed>
location: <computed>
name: " "
resource_group_name: "testResourceGroup"
route.#: <computed>
subnets.#: <computed>
tags.%: <computed>
+ azurerm_resource_group.test
id: <computed>
location: "westus"
name: "testResourceGroup"
tags.%: <computed>
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_resource_group.test: Creating...
location: "" => "westus"
name: "" => "testResourceGroup"
tags.%: "" => "<computed>"
azurerm_resource_group.test: Creation complete after 2s (ID: /subscriptions/db017fc9-f2f1-484c-826d-...2a2ac/resourceGroups/testResourceGroup)
data.azurerm_route_table.source: Refreshing state...
Error: Error applying plan:
1 error(s) occurred:
* data.azurerm_route_table.source: data.azurerm_route_table.source: unexpected EOF
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
panic: runtime error: invalid memory address or nil pointer dereference
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2638e6c]
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4:
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: goroutine 55 [running]:
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: github.com/terraform-providers/terraform-provider-azurerm/azurerm.dataSourceArmRouteTableRead(0xc000b68c40, 0x2d56820, 0xc0007d4000, 0xc000b68c40, 0x0)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/data_source_route_table.go:82 +0x4fc
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).ReadDataApply(0xc000fee310, 0xc0007c0160, 0x2d56820, 0xc0007d4000, 0xc0000a5898, 0x10be401, 0x29fb900)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:290 +0x88
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).ReadDataApply(0xc00024d9d0, 0xc000784000, 0xc0007c0160, 0xc000069400, 0x18, 0x5201440)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:426 +0x92
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).ReadDataApply(0xc0002e6fa0, 0xc0007f4040, 0xc0007f4110, 0x0, 0x0)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:604 +0x4e
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: reflect.Value.call(0xc000378f60, 0xc0001640e0, 0x13, 0x2d8d43d, 0x4, 0xc00059bf18, 0x3, 0x3, 0xc0002d40c0, 0xc000888030, ...)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/goenv/versions/1.11.1/src/reflect/value.go:447 +0x449
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: reflect.Value.Call(0xc000378f60, 0xc0001640e0, 0x13, 0xc00016bf18, 0x3, 0x3, 0x0, 0x0, 0xc00016bfc0)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/goenv/versions/1.11.1/src/reflect/value.go:308 +0xa4
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: net/rpc.(*service).call(0xc0008ee040, 0xc0000aa4b0, 0xc000912020, 0xc000912030, 0xc0001c2580, 0xc0010a0560, 0x29fb8c0, 0xc0007f4040, 0x16, 0x29fb900, ...)
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/goenv/versions/1.11.1/src/net/rpc/server.go:384 +0x14e
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: created by net/rpc.(*Server).ServeCodec
2018-12-06T15:55:17.540+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: /opt/goenv/versions/1.11.1/src/net/rpc/server.go:481 +0x47e
2018/12/06 15:55:17 [ERROR] root: eval: *terraform.EvalReadDataApply, err: data.azurerm_route_table.source: unexpected EOF
2018/12/06 15:55:17 [ERROR] root: eval: *terraform.EvalSequence, err: data.azurerm_route_table.source: unexpected EOF
2018/12/06 15:55:17 [TRACE] [walkApply] Exiting eval tree: data.azurerm_route_table.source
2018/12/06 15:55:17 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
2018/12/06 15:55:17 [TRACE] dag/walk: upstream errored, not walking "provider.azurerm (close)"
2018/12/06 15:55:17 [TRACE] dag/walk: upstream errored, not walking "root"
2018-12-06T15:55:17.542+0100 [DEBUG] plugin: plugin process exited: path=/Users/pedher/dev/src-avi-tf/tmp/bug_report/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v1.19.0_x4
2018/12/06 15:55:17 [TRACE] Preserving existing state lineage "83ab6e3b-ea58-5162-b715-1d33e05433f6"
2018/12/06 15:55:17 [TRACE] Preserving existing state lineage "83ab6e3b-ea58-5162-b715-1d33e05433f6"
2018/12/06 15:55:17 [TRACE] Preserving existing state lineage "83ab6e3b-ea58-5162-b715-1d33e05433f6"
2018/12/06 15:55:17 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-12-06T15:55:17.545+0100 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 Terraform[1] 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.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment