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

terraform crashes while running 'terraform refresh' after powering off VSphere VM. #70

Closed
hashibot opened this issue Jun 13, 2017 · 1 comment
Labels
bug Type: Bug crash Impact: Crash

Comments

@hashibot
Copy link

This issue was originally opened by @sripadkollur as hashicorp/terraform#10998. It was migrated here as part of the provider split. The original body of the issue is below.


Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v0.8.2

Affected Resource(s)

Please list the resources as a list, for example:

  • Multiple Vsphere resources

Terraform Configuration Files

{
    "provider": {
        "vsphere": {
            "user": "root",
            "password": "****",
            "vsphere_server": "X.X.X.X",
            "allow_unverified_ssl": true,
            "alias": "my_alias"
        }
    },
    "variable": {
        "count": {
            "description": "Number of VMs to create",
            "default": 1
        }
    },
    "resource": {
        "vsphere_virtual_machine": {
            "vsphere_vm": {
                "provider": "vsphere.my_alias",
                "count": "${var.count}",
                "name": "vsphere-vm-${count.index}",
                "vcpu": 2,
                "memory": 4096,
                "datacenter": "MY_DATA_CENTER",
                "cluster": "Dev_Cluster",
                "network_interface": {
                    "label": "MY_NETWORK"
                },
                "disk": {
                    "template": "Demo2_Windows_Template2",
                    "datastore": "SharedDatastore"
                },
                "dns_suffixes": ["mylab.local","mylab.remote"],
                "time_zone": "190"
            }
        }
    }
}

Debug Output

https://gist.github.com/sripadkollur/19799526689746dc45ada3c4cd7eb889

Panic Output

https://gist.github.com/sripadkollur/177e2eb41ff3ded1374b3d072a229fa9

Expected Behavior

The 'terraform refresh' command should not crash, if there is any issue it should display valid error message.

Actual Behavior

Terraform is crashing.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. create a VM on Vsphere provider(May happen on other providers as well . I did not check)
  2. Add a virtual NIC to running Vsphere VM using Vcenter or some other vmware tool.
  3. Power Off the VM
    4 Run terraform refresh

Important Factoids

VMware vCenter server version 5.5.0
vSphere client version 5.5.0

References

None

@hashibot hashibot added bug Type: Bug crash Impact: Crash labels Jun 13, 2017
@vancluever
Copy link
Contributor

Hello!

Looking at the crash logs, and judging from the nature of the issue, I think this should be fixed now that #129 has been merged. If there is anyone watching this issue that has the capabilities to build a custom provider binary can give it a go, that'd be great.

If course, if this does not fix this issue specifically, please open a new issue and reference this one.

Thanks again and sorry for the delays!

@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

2 participants