{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/92","repository_url":"https://api.github.com/repos/vmware/docker-volume-vsphere","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/92/comments","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/92/events","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/92","id":136564663,"number":92,"title":"preempt (force detach) existing volume","user":{"login":"pdhamdhere","id":16676511,"avatar_url":"https://avatars.githubusercontent.com/u/16676511?v=3","gravatar_id":"","url":"https://api.github.com/users/pdhamdhere","html_url":"https://github.com/pdhamdhere","followers_url":"https://api.github.com/users/pdhamdhere/followers","following_url":"https://api.github.com/users/pdhamdhere/following{/other_user}","gists_url":"https://api.github.com/users/pdhamdhere/gists{/gist_id}","starred_url":"https://api.github.com/users/pdhamdhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdhamdhere/subscriptions","organizations_url":"https://api.github.com/users/pdhamdhere/orgs","repos_url":"https://api.github.com/users/pdhamdhere/repos","events_url":"https://api.github.com/users/pdhamdhere/events{/privacy}","received_events_url":"https://api.github.com/users/pdhamdhere/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/kind/Feature","name":"kind/Feature","color":"207de5"},{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/P1","name":"P1","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones/2","html_url":"https://github.com/vmware/docker-volume-vsphere/milestones/v1%20GA","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones/2/labels","id":1584322,"number":2,"title":"v1 GA","description":"General Availability - this is when we claim v1 is ready","creator":{"login":"msterin","id":4379889,"avatar_url":"https://avatars.githubusercontent.com/u/4379889?v=3","gravatar_id":"","url":"https://api.github.com/users/msterin","html_url":"https://github.com/msterin","followers_url":"https://api.github.com/users/msterin/followers","following_url":"https://api.github.com/users/msterin/following{/other_user}","gists_url":"https://api.github.com/users/msterin/gists{/gist_id}","starred_url":"https://api.github.com/users/msterin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msterin/subscriptions","organizations_url":"https://api.github.com/users/msterin/orgs","repos_url":"https://api.github.com/users/msterin/repos","events_url":"https://api.github.com/users/msterin/events{/privacy}","received_events_url":"https://api.github.com/users/msterin/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":18,"state":"open","created_at":"2016-02-15T21:32:16Z","updated_at":"2016-06-27T10:18:42Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":11,"created_at":"2016-02-26T01:11:53Z","updated_at":"2016-06-27T21:35:52Z","closed_at":null,"body":"Here is the use case I was trying;\r\n\r\nSetup postgres on VM1.\r\n1.  docker volume create --driver=vmdk --name=postgresvol-02 -o size=1gb\r\n2. docker run --name postgres-02 -v postgresvol-02:/var/lib/data -e POSTGRES_PASSWORD=secretpass -e PGDATA=/var/lib/data/db -d postgres\r\n3. docker rm -f postgres-02 <<<Killed the container. But forgot -v i.e. detach volume\r\n\r\nOn VM2\r\n4. docker run --name postgres-02 -v postgresvol-02:/var/lib/data -e POSTGRES_PASSWORD=secretpass -e PGDATA=/var/lib/data/db -d postgres\r\n\r\nFailed to attach postgres-02 since it is already attached to VM1.\r\n\r\nIt would be nice if there is a way to say preempt postgresvol-02 and attach to my node.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments/228883049","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/92#issuecomment-228883049","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/92","id":228883049,"user":{"login":"msterin","id":4379889,"avatar_url":"https://avatars.githubusercontent.com/u/4379889?v=3","gravatar_id":"","url":"https://api.github.com/users/msterin","html_url":"https://github.com/msterin","followers_url":"https://api.github.com/users/msterin/followers","following_url":"https://api.github.com/users/msterin/following{/other_user}","gists_url":"https://api.github.com/users/msterin/gists{/gist_id}","starred_url":"https://api.github.com/users/msterin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msterin/subscriptions","organizations_url":"https://api.github.com/users/msterin/orgs","repos_url":"https://api.github.com/users/msterin/repos","events_url":"https://api.github.com/users/msterin/events{/privacy}","received_events_url":"https://api.github.com/users/msterin/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T21:35:52Z","updated_at":"2016-06-27T21:35:52Z","body":"Update: refnt cannot help here.The use case is - Docker container was running with a volume, and VM crashed. Volume is still attached, but internally, in the VM, is not used (that is if VM is running)\r\n\r\nSuggested behavior: something like  `vmdkops_admin volume detach --name <volume_name>`\r\n* scan registered VMs for this volume (using PriopertyCollector)\r\n* if the volumes is attached to a powered off VM, detach and report\r\n* if the volume is attached to a powered off VM, request confirmation (or --force option) , then reconfigure / detach and report\r\n\r\n//CC @andrewjstone \r\n"}}
{"actor":{"display_login":"msterin"}}