{"action":"created","issue":{"url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/1","labels_url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/1/comments","events_url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/1/events","html_url":"https://github.com/ClusterHQ/powerstrip-flocker/issues/1","id":58579271,"number":1,"title":"powerstrip-flocker doesn't stop user from ripping volumes out from under running containers","user":{"login":"lukemarsden","id":264658,"avatar_url":"https://avatars.githubusercontent.com/u/264658?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemarsden","html_url":"https://github.com/lukemarsden","followers_url":"https://api.github.com/users/lukemarsden/followers","following_url":"https://api.github.com/users/lukemarsden/following{/other_user}","gists_url":"https://api.github.com/users/lukemarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemarsden/subscriptions","organizations_url":"https://api.github.com/users/lukemarsden/orgs","repos_url":"https://api.github.com/users/lukemarsden/repos","events_url":"https://api.github.com/users/lukemarsden/events{/privacy}","received_events_url":"https://api.github.com/users/lukemarsden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-23T12:25:37Z","updated_at":"2015-06-19T05:48:24Z","closed_at":null,"body":"Currently it's possible for \"user error\" (start container α with volume A on host 1, start container β with volume A on host 2 without stopping container α first) to cause this adapter to cause volumes to be ripped out from underneath running containers, because it hasn't made flocker aware of when a container is running using a volume.\r\n\r\nIn my experience this makes docker grumpy and in need of a restart.\r\n\r\nIt should be possible to fix this once https://clusterhq.atlassian.net/browse/FLOC-1425 is delivered by making powerstrip-flocker toggle on and off the lease boolean on the flocker volumes api when the container is started/stopped.\r\n\r\nFor completeness, the lease should probably be dropped when the container terminates on its own, which would require something like https://github.com/progrium/docker-plugins since this information is not available to powerstrip-style hooks (can't add post hooks to docker events stream)."},"comment":{"url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/comments/113382380","html_url":"https://github.com/ClusterHQ/powerstrip-flocker/issues/1#issuecomment-113382380","issue_url":"https://api.github.com/repos/ClusterHQ/powerstrip-flocker/issues/1","id":113382380,"user":{"login":"lukemarsden","id":264658,"avatar_url":"https://avatars.githubusercontent.com/u/264658?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemarsden","html_url":"https://github.com/lukemarsden","followers_url":"https://api.github.com/users/lukemarsden/followers","following_url":"https://api.github.com/users/lukemarsden/following{/other_user}","gists_url":"https://api.github.com/users/lukemarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemarsden/subscriptions","organizations_url":"https://api.github.com/users/lukemarsden/orgs","repos_url":"https://api.github.com/users/lukemarsden/repos","events_url":"https://api.github.com/users/lukemarsden/events{/privacy}","received_events_url":"https://api.github.com/users/lukemarsden/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T05:48:24Z","updated_at":"2015-06-19T05:48:24Z","body":"This has been superceded by https://github.com/ClusterHQ/flocker-docker-plugin/issues/7"}}