Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

rancher_volume import crashes Terraform #80

Open
mcanevet opened this issue Jun 18, 2018 · 0 comments
Open

rancher_volume import crashes Terraform #80

mcanevet opened this issue Jun 18, 2018 · 0 comments

Comments

@mcanevet
Copy link
Contributor

$ terraform import rancher_volume.foo 1v5153075
rancher_volume.foo: Importing from ID "1v5153075"...                                                                                                                                                                                                                                                                                                                                                                      
Error: rancher_volume.foo (import id: 1v5153075): import rancher_volume.foo (id: 1v5153075): unexpected EOF                                                                         


panic: runtime error: invalid memory address or nil pointer dereference
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa7f924]                                                            
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: goroutine 65 [running]:
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: github.com/terraform-providers/terraform-provider-rancher/rancher.resourceRancherVolumeImport(0xc42025c230, 0xbae9a0, 0xc4202d9ce0, 0xe, 0xc420304648, 0xc42069c001, 0xb8e420, 0xc420698200)
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-rancher/rancher/resource_rancher_volume.go:195 +0x154
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: github.com/terraform-providers/terraform-provider-rancher/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).ImportState(0xc4202fa770, 0xc4202da190, 0xc42069e070, 0x9, 0x4c13bf, 0xae1d80, 0xae1d80, 0xc4202ae001, 0x7efd1d2a4458)                                                                                                       
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-rancher/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:337 +0x322
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: github.com/terraform-providers/terraform-provider-rancher/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).ImportState(0xc4202ce540, 0xc420698020, 0xc4206981e0, 0x0, 0x0)
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-rancher/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:521 +0x5d
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: reflect.Value.call(0xc4202ccfc0, 0xc4202dc360, 0x13, 0xc7a3f3, 0x4, 0xc4202c6f20, 0x3, 0x3, 0x0, 0x0, ...)                        
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /usr/local/go/src/reflect/value.go:434 +0x905                                                                               
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: reflect.Value.Call(0xc4202ccfc0, 0xc4202dc360, 0x13, 0xc4202d2f20, 0x3, 0x3, 0x0, 0x0, 0x0)                                       
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /usr/local/go/src/reflect/value.go:302 +0xa4                                                                                
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: net/rpc.(*service).call(0xc4202c2840, 0xc4202da140, 0xc4202e43c0, 0xc4202fc380, 0xc4202ceb80, 0xae1d40, 0xc420698020, 0x16, 0xae1d80, 0xc4206981e0, ...)
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /usr/local/go/src/net/rpc/server.go:381 +0x142                                                                              
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4: created by net/rpc.(*Server).ServeCodec                                                                                           
2018-06-18T14:09:03.308+0200 [DEBUG] plugin.terraform-provider-rancher_v1.2.1_x4:       /usr/local/go/src/net/rpc/server.go:475 +0x36b                                                                              
2018/06/18 14:09:03 [ERROR] root: eval: *terraform.EvalImportState, err: import rancher_volume.foo (id: 1v5153075): unexpected EOF                                                                  
2018/06/18 14:09:03 [ERROR] root: eval: *terraform.EvalSequence, err: import rancher_volume.foo (id: 1v5153075): unexpected EOF                                                                     
2018-06-18T14:09:03.309+0200 [DEBUG] plugin: plugin process exited: path=/home/mcanevet/src/github.com/camptocamp/terraform-georchestra/rancher-environments/grandest-prod/.terraform/plugins/linux_amd64/terraform-provider-rancher_v1.2.1_x4
2018/06/18 14:09:03 [TRACE] [walkImport] Exiting eval tree: rancher_volume.foo (import id: 1v5153075)                                                                                               
2018/06/18 14:09:03 [TRACE] dag/walk: upstream errored, not walking "provider.rancher (close)"
2018/06/18 14:09:03 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-06-18T14:09:03.309+0200 [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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
@ghost ghost added bug crash labels Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant