{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/148","repository_url":"https://api.github.com/repos/mitchellh/vagrant-google","labels_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/148/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/148/events","html_url":"https://github.com/mitchellh/vagrant-google/issues/148","id":180439685,"number":148,"title":"vagrant destroy - should wait for the disk to be deleted, and delete the disk if it's still there","user":{"login":"viktorbenei","id":430618,"avatar_url":"https://avatars.githubusercontent.com/u/430618?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorbenei","html_url":"https://github.com/viktorbenei","followers_url":"https://api.github.com/users/viktorbenei/followers","following_url":"https://api.github.com/users/viktorbenei/following{/other_user}","gists_url":"https://api.github.com/users/viktorbenei/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorbenei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorbenei/subscriptions","organizations_url":"https://api.github.com/users/viktorbenei/orgs","repos_url":"https://api.github.com/users/viktorbenei/repos","events_url":"https://api.github.com/users/viktorbenei/events{/privacy}","received_events_url":"https://api.github.com/users/viktorbenei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-01T05:35:38Z","updated_at":"2016-10-06T14:43:06Z","closed_at":null,"body":"We use this plug in for creating build environments (1000+ / day)  and every week we have a couple of `vagrant destroy` which destroys the instance, but not the related disk. This then results in an error when you try to `vagrant up` with the same ID. \r\n\r\nI'd say this might be a GCE issue and not an issue in this plugin, was just wondering if this plugin could do an additional check for the disk once the instance is deleted, and delete the disk if it still exists. "},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/comments/251983996","html_url":"https://github.com/mitchellh/vagrant-google/issues/148#issuecomment-251983996","issue_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/148","id":251983996,"user":{"login":"viktorbenei","id":430618,"avatar_url":"https://avatars.githubusercontent.com/u/430618?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorbenei","html_url":"https://github.com/viktorbenei","followers_url":"https://api.github.com/users/viktorbenei/followers","following_url":"https://api.github.com/users/viktorbenei/following{/other_user}","gists_url":"https://api.github.com/users/viktorbenei/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorbenei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorbenei/subscriptions","organizations_url":"https://api.github.com/users/viktorbenei/orgs","repos_url":"https://api.github.com/users/viktorbenei/repos","events_url":"https://api.github.com/users/viktorbenei/events{/privacy}","received_events_url":"https://api.github.com/users/viktorbenei/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T14:43:06Z","updated_at":"2016-10-06T14:43:06Z","body":"@Temikus same error (left over disk prevents the plugin to create a new VM with the same name) just happened, although this time it was caused by an \"Internal error\", which left the plugin in the same \"broken\" state as the previous issue (where `vagrant status` reports that the VM is not created, but `vagrant up` fails because the disk already exists):\r\n\r\n```\r\n» 6 Oct 2016 16:30:04.678 ==> REDACTED: -- Autodelete Disk: true\r\n» 6 Oct 2016 16:30:04.678 ==> REDACTED: -- Scopes:\r\n» 6 Oct 2016 16:30:49.197 There was an error talking to Google. The error message is shown\r\n» 6 Oct 2016 16:30:49.350 below:\r\n» 6 Oct 2016 16:30:49.350 Internal Error\r\n```\r\n\r\nafter this subsequent `vagrant up`s fail because the disk already exists:\r\n\r\n```\r\n» 6 Oct 2016 16:31:00.646 ==> REDACTED: -- Autodelete Disk: true\r\n» 6 Oct 2016 16:31:00.646 ==> REDACTED: -- Scopes:\r\n» 6 Oct 2016 16:31:01.395 There was an error talking to Google. The error message is shown\r\n» 6 Oct 2016 16:31:01.549 below:\r\n» 6 Oct 2016 16:31:01.549 The resource 'projects/REDACTED/zones/us-west1-b/disks/REDACTED' already exists\r\n```"}}
{"actor":{"display_login":"viktorbenei"}}