{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/3943","labels_url":"https://api.github.com/repos/openshift/origin/issues/3943/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/3943/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/3943/events","html_url":"https://github.com/openshift/origin/pull/3943","id":97928179,"number":3943,"title":"deploy: Support viewing the logs of a deployment","user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":52,"created_at":"2015-07-29T12:51:04Z","updated_at":"2015-09-30T12:22:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/3943","html_url":"https://github.com/openshift/origin/pull/3943","diff_url":"https://github.com/openshift/origin/pull/3943.diff","patch_url":"https://github.com/openshift/origin/pull/3943.patch"},"body":"This PR adds support for getting the logs out of a deployment (only what's in the deployer pod for now) via: \r\n```\r\n$ oc deploy DEPLOYMENTCONFIG --logs\r\n```\r\nThere is also the option to pick one older dc version and show its logs via the `--version` flag, eg. \r\n```\r\n$ oc deploy DC --logs --version=1\r\n``` \r\nwill return the logs of the first deployment of DC if the deployer pod exists (failed) or a success message otherwise (note that in case of deployment pruning or manual deletion of a failed deployer pod, the successful message report becomes incosistent - this screams for another way of storing logs).\r\n\r\nFixes #3544"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/144378814","html_url":"https://github.com/openshift/origin/pull/3943#issuecomment-144378814","issue_url":"https://api.github.com/repos/openshift/origin/issues/3943","id":144378814,"user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T12:22:24Z","updated_at":"2015-09-30T12:22:24Z","body":"> @kargakis remind me what this is waiting for? \r\n\r\n@smarterclayton's approval since it touches the API\r\n\r\n> Does it still need that upstream?\r\n\r\nYes, otherwise the conversion will panic.\r\n"}}