{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/7206","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/7206/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/7206/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/7206/events","html_url":"https://github.com/hashicorp/terraform/pull/7206","id":160779544,"number":7206,"title":"vSphere Provider - Fix destroy when vm is powered off or has no networks","user":{"login":"dkalleg","id":17752190,"avatar_url":"https://avatars.githubusercontent.com/u/17752190?v=3","gravatar_id":"","url":"https://api.github.com/users/dkalleg","html_url":"https://github.com/dkalleg","followers_url":"https://api.github.com/users/dkalleg/followers","following_url":"https://api.github.com/users/dkalleg/following{/other_user}","gists_url":"https://api.github.com/users/dkalleg/gists{/gist_id}","starred_url":"https://api.github.com/users/dkalleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkalleg/subscriptions","organizations_url":"https://api.github.com/users/dkalleg/orgs","repos_url":"https://api.github.com/users/dkalleg/repos","events_url":"https://api.github.com/users/dkalleg/events{/privacy}","received_events_url":"https://api.github.com/users/dkalleg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/vsphere","name":"provider/vsphere","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-16T22:59:05Z","updated_at":"2016-06-20T21:19:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/7206","html_url":"https://github.com/hashicorp/terraform/pull/7206","diff_url":"https://github.com/hashicorp/terraform/pull/7206.diff","patch_url":"https://github.com/hashicorp/terraform/pull/7206.patch"},"body":"This patch adds a wait when powering on a vm so setupVirtualMachine does\r\nnot return until the vm is actually powered on.  This allows other\r\nfunctions to work off the assumption that the current state of the vm\r\nis not in flux. During resourceVSphereVirtualMachineRead(), the wait for\r\nIP would cause a hang for any VM with no network interfaces or for vms\r\nthat had been powered off for any reason.  This also means that the user\r\ncould not delete a vm with no network interfaces or that is powered off.\r\nChecking power state before trying to check for network interfaces.\r\nResolves https://github.com/hashicorp/terraform/issues/7168"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/227272757","html_url":"https://github.com/hashicorp/terraform/pull/7206#issuecomment-227272757","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/7206","id":227272757,"user":{"login":"thetuxkeeper","id":4076916,"avatar_url":"https://avatars.githubusercontent.com/u/4076916?v=3","gravatar_id":"","url":"https://api.github.com/users/thetuxkeeper","html_url":"https://github.com/thetuxkeeper","followers_url":"https://api.github.com/users/thetuxkeeper/followers","following_url":"https://api.github.com/users/thetuxkeeper/following{/other_user}","gists_url":"https://api.github.com/users/thetuxkeeper/gists{/gist_id}","starred_url":"https://api.github.com/users/thetuxkeeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetuxkeeper/subscriptions","organizations_url":"https://api.github.com/users/thetuxkeeper/orgs","repos_url":"https://api.github.com/users/thetuxkeeper/repos","events_url":"https://api.github.com/users/thetuxkeeper/events{/privacy}","received_events_url":"https://api.github.com/users/thetuxkeeper/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T21:19:09Z","updated_at":"2016-06-20T21:19:09Z","body":"@dkalleg : that's strange. that was the reason why I put the `property.DefaultCollector` after the `WaitForNetIP` call in `Read()` (was the other way round before the `WaitForNetIP` PR and had this exact problem). That needs some more testing or at least logs since it's not intended that we need to call it twice. It makes it just harder for future changes (bigger refactoring or stuff like that).\r\nBut I don't think it's a blocker for this PR. We can think about it in another issue/PR. Will try to reproduce it, when I have time."}}
{"actor":{"display_login":"thetuxkeeper"}}