)]}'
{"roles/gather-pod-logs/tasks/main.yaml":[{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"b264a244e04c744d85cb658244be148e0edc10e6","unresolved":false,"context_lines":[{"line_number":38,"context_line":"              kubectl logs ${POD} -n ${NAMESPACE} -c ${CONTAINER} \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/${CONTAINER}.txt\""},{"line_number":39,"context_line":"            done"},{"line_number":40,"context_line":"            if [ ${POD} \u003d \u0027shaker-run-tests\u0027 ]; then"},{"line_number":41,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.html \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.html\""},{"line_number":42,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.json \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.json\""},{"line_number":43,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /opt/shaker/shaker.conf \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker.conf\""},{"line_number":44,"context_line":"            fi"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_4aaec72f","line":41,"range":{"start_line":41,"start_character":27,"end_line":41,"end_character":31},"updated":"2018-10-10 23:36:18.000000000","message":"should remove this as we aren\u0027t doing interactive tty exec.","commit_id":"62fe4f578e85cbb5ed8494360b0939b7586ee339"},{"author":{"_account_id":27589,"name":"Deepak Tiwari","email":"deepak.tiwari@aricent.com","username":"deepak.tiwari"},"change_message_id":"7b68df204b1eabb5e50458534445d518149faff1","unresolved":false,"context_lines":[{"line_number":38,"context_line":"              kubectl logs ${POD} -n ${NAMESPACE} -c ${CONTAINER} \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/${CONTAINER}.txt\""},{"line_number":39,"context_line":"            done"},{"line_number":40,"context_line":"            if [ ${POD} \u003d \u0027shaker-run-tests\u0027 ]; then"},{"line_number":41,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.html \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.html\""},{"line_number":42,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.json \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.json\""},{"line_number":43,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /opt/shaker/shaker.conf \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker.conf\""},{"line_number":44,"context_line":"            fi"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_903ddabd","line":41,"range":{"start_line":41,"start_character":27,"end_line":41,"end_character":31},"in_reply_to":"3f79a3b5_4aaec72f","updated":"2018-10-11 18:41:52.000000000","message":"ok","commit_id":"62fe4f578e85cbb5ed8494360b0939b7586ee339"},{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"b264a244e04c744d85cb658244be148e0edc10e6","unresolved":false,"context_lines":[{"line_number":37,"context_line":"              mkdir -p \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}\""},{"line_number":38,"context_line":"              kubectl logs ${POD} -n ${NAMESPACE} -c ${CONTAINER} \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/${CONTAINER}.txt\""},{"line_number":39,"context_line":"            done"},{"line_number":40,"context_line":"            if [ ${POD} \u003d \u0027shaker-run-tests\u0027 ]; then"},{"line_number":41,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.html \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.html\""},{"line_number":42,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.json \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.json\""},{"line_number":43,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /opt/shaker/shaker.conf \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker.conf\""},{"line_number":44,"context_line":"            fi"},{"line_number":45,"context_line":"          }"},{"line_number":46,"context_line":"          export -f get_pod_logs"},{"line_number":47,"context_line":"          get_namespaces | \\"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_0a276fca","line":44,"range":{"start_line":40,"start_character":1,"end_line":44,"end_character":14},"updated":"2018-10-10 23:36:18.000000000","message":"should this logic be moved into a shaker-specific script? If we put all the log pull logic of components into this script, it is going to grow and expand.","commit_id":"62fe4f578e85cbb5ed8494360b0939b7586ee339"},{"author":{"_account_id":27589,"name":"Deepak Tiwari","email":"deepak.tiwari@aricent.com","username":"deepak.tiwari"},"change_message_id":"7b68df204b1eabb5e50458534445d518149faff1","unresolved":false,"context_lines":[{"line_number":37,"context_line":"              mkdir -p \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}\""},{"line_number":38,"context_line":"              kubectl logs ${POD} -n ${NAMESPACE} -c ${CONTAINER} \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/${CONTAINER}.txt\""},{"line_number":39,"context_line":"            done"},{"line_number":40,"context_line":"            if [ ${POD} \u003d \u0027shaker-run-tests\u0027 ]; then"},{"line_number":41,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.html \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.html\""},{"line_number":42,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /tmp/shaker-result.json \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker-result.json\""},{"line_number":43,"context_line":"              kubectl exec -it ${POD} -n ${NAMESPACE} cat /opt/shaker/shaker.conf \u003e \"{{ logs_dir }}/pod-logs/${NAMESPACE}/${POD}/shaker.conf\""},{"line_number":44,"context_line":"            fi"},{"line_number":45,"context_line":"          }"},{"line_number":46,"context_line":"          export -f get_pod_logs"},{"line_number":47,"context_line":"          get_namespaces | \\"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_7d525638","line":44,"range":{"start_line":40,"start_character":1,"end_line":44,"end_character":14},"in_reply_to":"3f79a3b5_0a276fca","updated":"2018-10-11 18:41:52.000000000","message":"I also wanted it that way, but I wasn\u0027t sure if collecting logs is possible there via osh gate scripts. But I rechecked it and have uploaded a new patchset which collects logs for osh charts (right now only shaker, in future more charts can add to that playbook). https://review.openstack.org/#/c/602050/\n\nIf this works, I shall abandon this commit","commit_id":"62fe4f578e85cbb5ed8494360b0939b7586ee339"}]}
