{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8492","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8492/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8492/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8492/events","html_url":"https://github.com/ManageIQ/manageiq/pull/8492","id":153334154,"number":8492,"title":"[WIP] Log stdout of an ansible tower job when it fails","user":{"login":"bzwei","id":7047579,"avatar_url":"https://avatars.githubusercontent.com/u/7047579?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwei","html_url":"https://github.com/bzwei","followers_url":"https://api.github.com/users/bzwei/followers","following_url":"https://api.github.com/users/bzwei/following{/other_user}","gists_url":"https://api.github.com/users/bzwei/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwei/subscriptions","organizations_url":"https://api.github.com/users/bzwei/orgs","repos_url":"https://api.github.com/users/bzwei/repos","events_url":"https://api.github.com/users/bzwei/events{/privacy}","received_events_url":"https://api.github.com/users/bzwei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/wip","name":"wip","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-05T21:50:19Z","updated_at":"2016-05-06T17:35:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/8492","html_url":"https://github.com/ManageIQ/manageiq/pull/8492","diff_url":"https://github.com/ManageIQ/manageiq/pull/8492.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/8492.patch"},"body":"The output from an AnsibleTower job can be very long. We decide not to store it in VMDB. But when an AnsibleTower provisioning job fails, how can we help the user to find the reason? This work is to save the output of failed jobs to evm log.\r\n\r\n1. Add getting stdout method to AnsibleTower/Job class, and expose it to automate service model.\r\n2. At check_provisioned step, log the output to evm log\r\n3. As an example, user can choose to log output from succeeded jobs\r\n4. Enhance Job/Status message so that it says job instead of stack.  "},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/217508937","html_url":"https://github.com/ManageIQ/manageiq/pull/8492#issuecomment-217508937","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8492","id":217508937,"user":{"login":"bzwei","id":7047579,"avatar_url":"https://avatars.githubusercontent.com/u/7047579?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwei","html_url":"https://github.com/bzwei","followers_url":"https://api.github.com/users/bzwei/followers","following_url":"https://api.github.com/users/bzwei/following{/other_user}","gists_url":"https://api.github.com/users/bzwei/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwei/subscriptions","organizations_url":"https://api.github.com/users/bzwei/orgs","repos_url":"https://api.github.com/users/bzwei/repos","events_url":"https://api.github.com/users/bzwei/events{/privacy}","received_events_url":"https://api.github.com/users/bzwei/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T17:35:48Z","updated_at":"2016-05-06T17:35:48Z","body":"@mkanoor no stderr output."}}