{"action":"opened","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/112","labels_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/112/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant-google/issues/112/events","html_url":"https://github.com/mitchellh/vagrant-google/issues/112","id":112009156,"number":112,"title":"Automatically remove disk if instance failed to create","user":{"login":"p0deje","id":665846,"avatar_url":"https://avatars.githubusercontent.com/u/665846?v=3","gravatar_id":"","url":"https://api.github.com/users/p0deje","html_url":"https://github.com/p0deje","followers_url":"https://api.github.com/users/p0deje/followers","following_url":"https://api.github.com/users/p0deje/following{/other_user}","gists_url":"https://api.github.com/users/p0deje/gists{/gist_id}","starred_url":"https://api.github.com/users/p0deje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0deje/subscriptions","organizations_url":"https://api.github.com/users/p0deje/orgs","repos_url":"https://api.github.com/users/p0deje/repos","events_url":"https://api.github.com/users/p0deje/events{/privacy}","received_events_url":"https://api.github.com/users/p0deje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-18T09:05:08Z","updated_at":"2015-10-18T09:05:08Z","closed_at":null,"body":"There is a corner case which may happen with the following steps:\r\n\r\n1. Vagrantfile is configured to automatically create a disk.\r\n2. User runs `vagrant up`.\r\n3. vagrant-google creates disk.\r\n4. vagrant-google tries to create instance, but something goes wrong (e.g. \"Backend error\").\r\n\r\nSince instance is not created, disk should be properly removed. Subsequent attempts to create instance fail because disk with the same ID is already present.\r\n\r\n```\r\n/var/lib/jenkins/vagrant_home/gems/gems/fog-google-0.0.9/lib/fog/google.rb:232:in `build_excon_response': The resource 'projects/pr-1069/zones/us-central1-b/disks/example' already exists (Fog::Errors::Error)\r\n```\r\n\r\nI'm willing to fix the issue, but not sure how it should be properly handled."}}