{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/352","repository_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples","labels_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/352/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/352/events","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/352","id":221601043,"number":352,"title":"How to remove HDD from virtual machine and delete files from disk with pyvmomi?","user":{"login":"golendukhin","id":16097794,"avatar_url":"https://avatars3.githubusercontent.com/u/16097794?v=3","gravatar_id":"","url":"https://api.github.com/users/golendukhin","html_url":"https://github.com/golendukhin","followers_url":"https://api.github.com/users/golendukhin/followers","following_url":"https://api.github.com/users/golendukhin/following{/other_user}","gists_url":"https://api.github.com/users/golendukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/golendukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golendukhin/subscriptions","organizations_url":"https://api.github.com/users/golendukhin/orgs","repos_url":"https://api.github.com/users/golendukhin/repos","events_url":"https://api.github.com/users/golendukhin/events{/privacy}","received_events_url":"https://api.github.com/users/golendukhin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-13T15:36:46Z","updated_at":"2017-04-13T15:55:09Z","closed_at":null,"body":"I tried code from delete_disk_from_vm.py, but got an error:\r\nCannot remove virtual disk from the virtual machine because it or one of its parent disks is part of a snapshot of the virtual machine.\r\nHow to avoid it?"},"comment":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/comments/293936809","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/352#issuecomment-293936809","issue_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/352","id":293936809,"user":{"login":"prziborowski","id":13127297,"avatar_url":"https://avatars1.githubusercontent.com/u/13127297?v=3","gravatar_id":"","url":"https://api.github.com/users/prziborowski","html_url":"https://github.com/prziborowski","followers_url":"https://api.github.com/users/prziborowski/followers","following_url":"https://api.github.com/users/prziborowski/following{/other_user}","gists_url":"https://api.github.com/users/prziborowski/gists{/gist_id}","starred_url":"https://api.github.com/users/prziborowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prziborowski/subscriptions","organizations_url":"https://api.github.com/users/prziborowski/orgs","repos_url":"https://api.github.com/users/prziborowski/repos","events_url":"https://api.github.com/users/prziborowski/events{/privacy}","received_events_url":"https://api.github.com/users/prziborowski/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T15:55:09Z","updated_at":"2017-04-13T15:55:09Z","body":"Well, the error means that you can't remove the disk without first deleting the snapshot that is also referring to the disk.\r\nThe software doesn't seem to handle disks being detached after a snapshot includes the disk.\r\n(avoid the error would mean deleting the snapshot. I'm not sure if that helps you though)."}}
{"actor":{"display_login":"prziborowski"}}