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. #10998

Closed
sripadkollur opened this issue Jan 3, 2017 · 2 comments

Comments

@sripadkollur
Copy link

sripadkollur commented Jan 3, 2017

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

@ex3ndr
Copy link

ex3ndr commented Jan 4, 2017

Looks like my issue #10996 is a same, but powering off is not related to it.

@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
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

4 participants