Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vSphere Provider: unexpected EOF #195

Closed
hashibot opened this issue Oct 10, 2017 · 3 comments
Closed

vSphere Provider: unexpected EOF #195

hashibot opened this issue Oct 10, 2017 · 3 comments
Labels
bug Type: Bug crash Impact: Crash

Comments

@hashibot
Copy link

This issue was originally opened by @johnjelinek as hashicorp/terraform#16303. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

terraform -v
Terraform v0.10.6

Terraform Configuration Files

Note: The values have been truncated

# Configure the VMware vSphere Provider
provider "vsphere" {
  user           = ""
  password       = ""
  vsphere_server = ""

  # if you have a self-signed cert
  allow_unverified_ssl = true
}

# Create a virtual machine within the folder
resource "vsphere_virtual_machine" "base" {
  name   = ""
  vcpu   = 2
  memory = 4096
  dns_suffixes = [""]
  domain = ""
  dns_servers = [""]
  datacenter = ""
  resource_pool = ""
  time_zone = "America/Chicago"

  network_interface {
    label = "VM Network"
  }

  disk {
    template = ""
    datastore = ""
  }
}

Crash Output

Error refreshing state: 1 error(s) occurred:

* vsphere_virtual_machine.base: 1 error(s) occurred:

* vsphere_virtual_machine.base: vsphere_virtual_machine.base: unexpected EOF
panic: runtime error: index out of range
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: goroutine 71 [running]:
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: github.com/terraform-providers/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineRead(0xc4201d4700, 0x1c60cc0, 0xc420174ac0, 0x1, 0x2a16da0)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:1216 +0x4929
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc42005d200, 0xc420176e10, 0x1c60cc0, 0xc420174ac0, 0xc4204e67a0, 0xc42051f101, 0x80000000018)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:321 +0x199
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc42052c000, 0xc420176dc0, 0xc420176e10, 0x30021e8, 0x0, 0x18)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:284 +0x9a
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc42017f440, 0xc42016f150, 0xc42016f3f0, 0x0, 0x0)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: reflect.Value.call(0xc42036b680, 0xc420528050, 0x13, 0x1ec89ea, 0x4, 0xc42026bf20, 0x3, 0x3, 0x0, 0x0, ...)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /usr/local/go/src/reflect/value.go:434 +0x906
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: reflect.Value.Call(0xc42036b680, 0xc420528050, 0x13, 0xc420479f20, 0x3, 0x3, 0xc42005d500, 0x1, 0xc42048a430)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /usr/local/go/src/reflect/value.go:302 +0xa4
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: net/rpc.(*service).call(0xc420058540, 0xc420162140, 0xc4201800b0, 0xc420184480, 0xc420172ce0, 0x1b88dc0, 0xc42016f150, 0x16, 0x1b88e00, 0xc42016f3f0, ...)
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /usr/local/go/src/net/rpc/server.go:381 +0x142
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4: created by net/rpc.(*Server).ServeCodec
2017-10-10T17:38:19.508-0500 [DEBUG] plugin.terraform-provider-vsphere_v0.4.1_x4:       /usr/local/go/src/net/rpc/server.go:475 +0x36b
2017/10/10 17:38:19 [ERROR] root: eval: *terraform.EvalRefresh, err: vsphere_virtual_machine.base: unexpected EOF
2017/10/10 17:38:19 [ERROR] root: eval: *terraform.EvalSequence, err: vsphere_virtual_machine.base: unexpected EOF
2017/10/10 17:38:19 [TRACE] [walkRefresh] Exiting eval tree: vsphere_virtual_machine.base
2017/10/10 17:38:19 [TRACE] dag/walk: upstream errored, not walking "provider.vsphere (close)"
2017/10/10 17:38:19 [DEBUG] plugin: waiting for all plugin processes to complete...
2017-10-10T17:38:19.510-0500 [DEBUG] plugin: plugin process exited: path=/me/.terraform/plugins/darwin_amd64/terraform-provider-vsphere_v0.4.1_x4
2017-10-10T17:38:19.510-0500 [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

Expected Behavior

Should not have crashed and the VM should be destroyed.

Actual Behavior

Crashed

Steps to Reproduce

  1. terraform destroy

Important Factoids

The VM is still there, but I did manually power it off.

@vancluever
Copy link
Contributor

Hey @johnjelinek, I think this might have been fixed with #198. This is in master now but should be released tomorrow or Friday.

If it is not much trouble, would you please try your issue again with a custom built provider binary to see that resolves the issue for you? This can help us confirm that the issue will be fixed in the next release.

Thanks!

@johnjelinek
Copy link

confirmed, this does not crash in master.

@vancluever
Copy link
Contributor

Sweet! Closing this now then 🙂

@ghost ghost locked and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: Bug crash Impact: Crash
Projects
None yet
Development

No branches or pull requests

3 participants