{"action":"created","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/5019","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5019/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5019/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5019/events","html_url":"https://github.com/habitat-sh/habitat/pull/5019","id":319620171,"number":5019,"title":"hab subcommand: supportbundle","user":{"login":"jeremymv2","id":1991696,"avatar_url":"https://avatars2.githubusercontent.com/u/1991696?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremymv2","html_url":"https://github.com/jeremymv2","followers_url":"https://api.github.com/users/jeremymv2/followers","following_url":"https://api.github.com/users/jeremymv2/following{/other_user}","gists_url":"https://api.github.com/users/jeremymv2/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremymv2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremymv2/subscriptions","organizations_url":"https://api.github.com/users/jeremymv2/orgs","repos_url":"https://api.github.com/users/jeremymv2/repos","events_url":"https://api.github.com/users/jeremymv2/events{/privacy}","received_events_url":"https://api.github.com/users/jeremymv2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-02T16:16:53Z","updated_at":"2018-05-30T05:40:04Z","closed_at":"2018-05-30T01:57:28Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/habitat-sh/habitat/pulls/5019","html_url":"https://github.com/habitat-sh/habitat/pull/5019","diff_url":"https://github.com/habitat-sh/habitat/pull/5019.diff","patch_url":"https://github.com/habitat-sh/habitat/pull/5019.patch"},"body":"![giphy-2](https://user-images.githubusercontent.com/1991696/39535913-bde1957a-4dfa-11e8-9baf-51db4bed02c3.gif)\r\n\r\nThis introduces a subcommand to `hab-sup` named `gatherlogs` that will capture important supervisor files and tar them up making it easy to send to somebody else for troubleshooting (hopefully not the guy in the gif above).\r\n\r\n🍰 🍰 🍰 🍰 🍰 🍰 \r\n\r\n\r\n### :nut_and_bolt: Description\r\n\r\nThis PR addresses #3168 by:\r\n\r\n* adding a new subcommand `hab sup gatherlogs` to help Support folks troubleshoot\r\n* tarring and gzipping up `/hab/sup`\r\n\r\n### :athletic_shoe: Demo Script\r\n\r\n```bash\r\n✘-1 /mnt/data/home/habitat/components/sup [jeremym2/hab_gather_logs|✚ 1…2]\r\n16:11 $ cargo run -- gatherlogs\r\n   Compiling habitat_sup v0.0.0 (file:///mnt/data/home/habitat/components/sup)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 15.30 secs\r\n     Running `/mnt/data/home/habitat/target/debug/hab-sup gatherlogs`\r\n\r\n★ Finished: /mnt/data/home/habitat/components/sup/gather-logs-20180502161222.tar.gz\r\n✔ /mnt/data/home/habitat/components/sup [jeremym2/hab_gather_logs|✚ 1…3]\r\n16:12 $ file /mnt/data/home/habitat/components/sup/gather-logs-20180502161222.tar.gz\r\n/mnt/data/home/habitat/components/sup/gather-logs-20180502161222.tar.gz: gzip compressed data\r\n✔ /mnt/data/home/habitat/components/sup [jeremym2/hab_gather_logs|✚ 1…3]\r\n16:12 $ tar tvzf /mnt/data/home/habitat/components/sup/gather-logs-20180502161222.tar.gz\r\ndrwxr-xr-x 1001/1001         0 2018-05-02 14:51 hab/sup/\r\ndrwxr-xr-x 1001/1001         0 2018-05-02 14:55 hab/sup/default\r\n-rw-r--r-- 1001/1001        32 2018-05-02 14:51 hab/sup/default/MEMBER_ID\r\ndrwxr-xr-x 1001/1001         0 2018-05-02 14:51 hab/sup/default/composites\r\ndrwxr-xr-x 1001/1001         0 2018-05-02 14:55 hab/sup/default/data\r\n-rw-r--r-- 1001/1001       263 2018-05-02 14:52 hab/sup/default/data/census.dat\r\n-rw-r--r-- 1001/1001       325 2018-05-02 14:52 hab/sup/default/data/butterfly.dat\r\n-rw-r--r-- 1001/1001         2 2018-05-02 14:52 hab/sup/default/data/services.dat\r\n-rw-r--r-- 1001/1001        65 2018-05-02 14:55 hab/sup/default/data/ebb29f8b31034b869cdc91349089f143.rst\r\ndrwxr-xr-x 1001/1001         0 2018-05-02 14:52 hab/sup/default/specs\r\n✔ /mnt/data/home/habitat/components/sup [jeremym2/hab_gather_logs|✚ 1…3]\r\n16:12 $\r\n```\r\n\r\n### Notes 📔 \r\n\r\n * I'd really like the command to be `gather-logs` however I'm blocked by the `clap_app` macro [not supporting hyphens](https://github.com/kbknapp/clap-rs/issues/1129)\r\n* Any suggestions? Or, just go with `gatherlogs`?\r\n\r\n### :white_check_mark: Checklist\r\n\r\n- [x] Code actually executed?\r\n- [x] Vetting performed (unit tests, lint, etc.)?\r\n\r\nSigned-off-by: Jeremy J. Miller <jm@chef.io>"},"comment":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/comments/393036610","html_url":"https://github.com/habitat-sh/habitat/pull/5019#issuecomment-393036610","issue_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5019","id":393036610,"user":{"login":"rsertelon","id":294333,"avatar_url":"https://avatars0.githubusercontent.com/u/294333?v=4","gravatar_id":"","url":"https://api.github.com/users/rsertelon","html_url":"https://github.com/rsertelon","followers_url":"https://api.github.com/users/rsertelon/followers","following_url":"https://api.github.com/users/rsertelon/following{/other_user}","gists_url":"https://api.github.com/users/rsertelon/gists{/gist_id}","starred_url":"https://api.github.com/users/rsertelon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsertelon/subscriptions","organizations_url":"https://api.github.com/users/rsertelon/orgs","repos_url":"https://api.github.com/users/rsertelon/repos","events_url":"https://api.github.com/users/rsertelon/events{/privacy}","received_events_url":"https://api.github.com/users/rsertelon/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T05:40:04Z","updated_at":"2018-05-30T05:40:04Z","author_association":"CONTRIBUTOR","body":"This is marked as closed : thinking-face: is not useful?"}}
{"actor":{"display_login":"rsertelon"}}