{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/173","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/173/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/173/events","html_url":"https://github.com/terraform-providers/terraform-provider-vsphere/issues/173","id":259555579,"number":173,"title":"Crash when running plan on VMs with multiple network interfaces with no gateway set","user":{"login":"icksa","id":1550956,"avatar_url":"https://avatars0.githubusercontent.com/u/1550956?v=4","gravatar_id":"","url":"https://api.github.com/users/icksa","html_url":"https://github.com/icksa","followers_url":"https://api.github.com/users/icksa/followers","following_url":"https://api.github.com/users/icksa/following{/other_user}","gists_url":"https://api.github.com/users/icksa/gists{/gist_id}","starred_url":"https://api.github.com/users/icksa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icksa/subscriptions","organizations_url":"https://api.github.com/users/icksa/orgs","repos_url":"https://api.github.com/users/icksa/repos","events_url":"https://api.github.com/users/icksa/events{/privacy}","received_events_url":"https://api.github.com/users/icksa/received_events","type":"User","site_admin":false},"labels":[{"id":620326258,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":620326910,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/labels/crash","name":"crash","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-21T16:24:25Z","updated_at":"2017-09-26T19:35:57Z","closed_at":null,"author_association":"NONE","body":"Hello:\r\n\r\nI am running into a terraform crash that I can't seem to pin down or work around. I am creating VMs in vsphere. The VMs have two network interfaces attached one of which has no gateway defined. Creating the VM initially is no problem, but running subsequent `terraform plan` commands are producing terraform crashes. The crash.log is here:\r\n\r\nhttps://gist.github.com/icksa/a87c295aa976bcd805981e2be16c03b8#file-crash-log\r\n\r\nThere terraform file is here:\r\n\r\nhttps://gist.github.com/icksa/a87c295aa976bcd805981e2be16c03b8#file-terraform-tf\r\n\r\nThe relevant section of the crash logs appears to be:\r\n```\r\n2017-09-21T09:28:16.960-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: 2017/09/21 09:28:16 [DEBUG] networkInterface: map[string]interface {}{\"key\":4000, \"ipv4_address\":\"10.200.96.51\", \"ipv4_prefix_length\":20, \"label\":\"Stratus6\", \"mac_address\":\"00:50:56:9a:12:f0\"}\r\n2017-09-21T09:28:16.960-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: 2017/09/21 09:28:16 [DEBUG] networks: []map[string]interface {}{map[string]interface {}{\"ipv4_address\":\"10.200.96.51\", \"ipv4_prefix_length\":20, \"label\":\"Stratus6\", \"mac_address\":\"00:50:56:9a:12:f0\", \"key\":4000}, map[string]interface {}{\"label\":\"Stratus3\", \"mac_address\":\"00:50:56:9a:a0:5e\", \"key\":4001, \"ipv4_address\":\"10.200.20.71\", \"ipv4_prefix_length\":22}}\r\n2017-09-21T09:28:16.960-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: 2017/09/21 09:28:16 [DEBUG] ipv4_gateway of device id 5: 10.200.20.5\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: panic: runtime error: index out of range\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4:\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: goroutine 22 [running]:\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: github.com/terraform-providers/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineRead(0x4233d7570, 0x1e8b7e0, 0x42337a8d0, 0x1, 0x29d3aa0)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:1180 +0x46a7\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0x423467740, 0x4233ea370, 0x1e8b7e0, 0x42337a8d0, 0x423387508, 0x423469201, 0x80000000018)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:321 +0x199\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0x423207e30, 0x4233ea320, 0x4233ea370, 0x8422fb4d90, 0x0, 0x18)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:284 +0x9a\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0x423351a20, 0x42311cde0, 0x42311d050, 0x0, 0x0)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: reflect.Value.call(0x42334f200, 0x4233ec640, 0x13, 0x1e9e540, 0x4, 0x422ffcf20, 0x3, 0x3, 0x0, 0x0, ...)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/usr/local/go/src/reflect/value.go:434 +0x906\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: reflect.Value.Call(0x42334f200, 0x4233ec640, 0x13, 0x4233e6f20, 0x3, 0x3, 0x423307020, 0x0, 0x0)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/usr/local/go/src/reflect/value.go:302 +0xa4\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: net/rpc.(*service).call(0x4233aadc0, 0x4234d5400, 0x4233d4710, 0x4233dcc80, 0x423351f80, 0x1b635c0, 0x42311cde0, 0x16, 0x1b63600, 0x42311d050, ...)\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/usr/local/go/src/net/rpc/server.go:381 +0x142\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: created by net/rpc.(*Server).ServeCodec\r\n2017-09-21T09:28:16.963-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.3.0_x4: \t/usr/local/go/src/net/rpc/server.go:475 +0x36b\r\n2017/09/21 09:28:16 [ERROR] root: eval: *terraform.EvalRefresh, err: vsphere_virtual_machine.atl-ch3-vm-mesosworker01: unexpected EOF\r\n2017/09/21 09:28:16 [ERROR] root: eval: *terraform.EvalSequence, err: vsphere_virtual_machine.atl-ch3-vm-mesosworker01: unexpected EOF\r\n2017/09/21 09:28:16 [TRACE] [walkRefresh] Exiting eval tree: vsphere_virtual_machine.atl-ch3-vm-mesosworker01\r\n2017/09/21 09:28:16 [TRACE] dag/walk: upstream errored, not walking \"provider.vsphere (close)\"\r\n2017-09-21T09:28:16.965-0500 [DEBUG] plugin: plugin process exited: path=/Users/milad/git/atlas-terraform/atlas-prod/ch3/vms/mesos-worker/.terraform/plugins/darwin_amd64/terraform-provider-vsphere_v0.3.0_x4\r\n2017/09/21 09:28:16 [DEBUG] plugin: waiting for all plugin processes to complete...\r\n2017-09-21T09:28:16.965-0500 [WARN ] plugin: error closing client during Kill: err=\"connection is shut down\"\r\n```\r\n\r\nI am not sure exactly what is causing this but I would greatly appreciate any help. This crash is happening pretty regularly now...Please let me know what additional information to send.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/comments/332311160","html_url":"https://github.com/terraform-providers/terraform-provider-vsphere/issues/173#issuecomment-332311160","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vsphere/issues/173","id":332311160,"user":{"login":"vancluever","id":10704423,"avatar_url":"https://avatars0.githubusercontent.com/u/10704423?v=4","gravatar_id":"","url":"https://api.github.com/users/vancluever","html_url":"https://github.com/vancluever","followers_url":"https://api.github.com/users/vancluever/followers","following_url":"https://api.github.com/users/vancluever/following{/other_user}","gists_url":"https://api.github.com/users/vancluever/gists{/gist_id}","starred_url":"https://api.github.com/users/vancluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vancluever/subscriptions","organizations_url":"https://api.github.com/users/vancluever/orgs","repos_url":"https://api.github.com/users/vancluever/repos","events_url":"https://api.github.com/users/vancluever/events{/privacy}","received_events_url":"https://api.github.com/users/vancluever/received_events","type":"User","site_admin":false},"created_at":"2017-09-26T19:35:57Z","updated_at":"2017-09-26T19:35:57Z","author_association":"CONTRIBUTOR","body":"Hey @icksa, sorry you are having trouble and the delay in replying!\r\n\r\nThis is indeed the correct place for this question - I am reviewing now and will probably have some questions in a bit. Cheers!\r\n"}}
{"actor":{"display_login":"vancluever"}}