{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/5867","labels_url":"https://api.github.com/repos/ceph/ceph/issues/5867/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/5867/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/5867/events","html_url":"https://github.com/ceph/ceph/pull/5867","id":105765974,"number":5867,"title":"ceph-disk: Add destroy and deactivate option","user":{"login":"Vicente-Cheng","id":1615081,"avatar_url":"https://avatars.githubusercontent.com/u/1615081?v=3","gravatar_id":"","url":"https://api.github.com/users/Vicente-Cheng","html_url":"https://github.com/Vicente-Cheng","followers_url":"https://api.github.com/users/Vicente-Cheng/followers","following_url":"https://api.github.com/users/Vicente-Cheng/following{/other_user}","gists_url":"https://api.github.com/users/Vicente-Cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/Vicente-Cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vicente-Cheng/subscriptions","organizations_url":"https://api.github.com/users/Vicente-Cheng/orgs","repos_url":"https://api.github.com/users/Vicente-Cheng/repos","events_url":"https://api.github.com/users/Vicente-Cheng/events{/privacy}","received_events_url":"https://api.github.com/users/Vicente-Cheng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/core","name":"core","color":"0052cc"},{"url":"https://api.github.com/repos/ceph/ceph/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"dachary","id":433594,"avatar_url":"https://avatars.githubusercontent.com/u/433594?v=3","gravatar_id":"","url":"https://api.github.com/users/dachary","html_url":"https://github.com/dachary","followers_url":"https://api.github.com/users/dachary/followers","following_url":"https://api.github.com/users/dachary/following{/other_user}","gists_url":"https://api.github.com/users/dachary/gists{/gist_id}","starred_url":"https://api.github.com/users/dachary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dachary/subscriptions","organizations_url":"https://api.github.com/users/dachary/orgs","repos_url":"https://api.github.com/users/dachary/repos","events_url":"https://api.github.com/users/dachary/events{/privacy}","received_events_url":"https://api.github.com/users/dachary/received_events","type":"User","site_admin":false},"milestone":null,"comments":65,"created_at":"2015-09-10T09:13:12Z","updated_at":"2015-11-17T07:29:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/5867","html_url":"https://github.com/ceph/ceph/pull/5867","diff_url":"https://github.com/ceph/ceph/pull/5867.diff","patch_url":"https://github.com/ceph/ceph/pull/5867.patch"},"body":"    Ref: http://tracker.ceph.com/issues/7454\r\n    Implement ceph-disk destroy feature (including deactivate and destroy).\r\n\r\n    This implementation not including drain (set CRUSH weight to 0)\r\n    I don't know how to confirm that drain is done.\r\n\r\n    Destroy osd will split two stage. \r\n    First stage is deactiveate:\r\n        - stop ceph-osd service if needed (If osd still in osd map, make it out first)\r\n        - remove 'ready', 'active', and INIT-specific files\r\n        - remove gpt partition type and change partition name (prevent triggered by udev)\r\n        - create deactive flag\r\n        - umount device and remove mount point\r\n\r\n    Second stage is destroy:\r\n        - remove OSD from CRUSH map\r\n        - remove OSD cephx key\r\n        - deallocate OSD ID\r\n        - destroy data (with --zap option)\r\n\r\nIf you have any questions, feel free to let me know.\r\nThanks!\r\n\r\nSigned-off-by: Vicente Cheng <freeze.bilsted@gmail.com>"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/157298742","html_url":"https://github.com/ceph/ceph/pull/5867#issuecomment-157298742","issue_url":"https://api.github.com/repos/ceph/ceph/issues/5867","id":157298742,"user":{"login":"loic-bot","id":9638672,"avatar_url":"https://avatars.githubusercontent.com/u/9638672?v=3","gravatar_id":"","url":"https://api.github.com/users/loic-bot","html_url":"https://github.com/loic-bot","followers_url":"https://api.github.com/users/loic-bot/followers","following_url":"https://api.github.com/users/loic-bot/following{/other_user}","gists_url":"https://api.github.com/users/loic-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-bot/subscriptions","organizations_url":"https://api.github.com/users/loic-bot/orgs","repos_url":"https://api.github.com/users/loic-bot/repos","events_url":"https://api.github.com/users/loic-bot/events{/privacy}","received_events_url":"https://api.github.com/users/loic-bot/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T07:29:19Z","updated_at":"2015-11-17T07:29:19Z","body":"SUCCESS: http://jenkins.ceph.dachary.org/job/ceph/9352/\n* SUCCESS http://jenkins.ceph.dachary.org/job/ceph/LABELS=centos-7&&x86_64/9352/\n"}}