)]}'
{"playbooks/python-tempestconf-tempest-packstack.yaml":[{"author":{"_account_id":16312,"name":"Alfredo Moralejo","email":"amoralej@redhat.com","username":"amoralej"},"change_message_id":"2a5346d976b4f46d4582e72e84d6ea1c177f745a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    # x/packstack project"},{"line_number":16,"context_line":"    - name: Install packstack allinone"},{"line_number":17,"context_line":"      include_role:"},{"line_number":18,"context_line":"        name: packstack-integration-tempest"},{"line_number":19,"context_line":"    # setup-tempest-user, setup-stack-user and setup-devstack-source-dirs"},{"line_number":20,"context_line":"    # are inherited from openstack/devstack"},{"line_number":21,"context_line":"    - name: Setup Stack user"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3fa7e38b_c11428a2","line":18,"updated":"2019-11-12 13:40:11.000000000","message":"This is not working. Note that each task in ansible is executed with a different shell. Can\u0027t we add:\n\nenvironment:\n  COPY_LOGS: true\n\nin this task?","commit_id":"788f301345f2d7cfe4595efd3d7b68f02dc62e60"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"fe651253d5ac993536e9617f867d8b29211a3114","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    # x/packstack project"},{"line_number":16,"context_line":"    - name: Install packstack allinone"},{"line_number":17,"context_line":"      include_role:"},{"line_number":18,"context_line":"        name: packstack-integration-tempest"},{"line_number":19,"context_line":"    # setup-tempest-user, setup-stack-user and setup-devstack-source-dirs"},{"line_number":20,"context_line":"    # are inherited from openstack/devstack"},{"line_number":21,"context_line":"    - name: Setup Stack user"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3fa7e38b_049b2464","line":18,"in_reply_to":"3fa7e38b_c11428a2","updated":"2019-11-13 05:02:56.000000000","message":"Done","commit_id":"788f301345f2d7cfe4595efd3d7b68f02dc62e60"},{"author":{"_account_id":16312,"name":"Alfredo Moralejo","email":"amoralej@redhat.com","username":"amoralej"},"change_message_id":"2a5346d976b4f46d4582e72e84d6ea1c177f745a","unresolved":false,"context_lines":[{"line_number":77,"context_line":"      include_role:"},{"line_number":78,"context_line":"        name: run-tempest"},{"line_number":79,"context_line":"    # Copy openstack logs once tempest run finishes"},{"line_number":80,"context_line":"    - name: Copy openstack services logs once tempest run finish"},{"line_number":81,"context_line":"      shell:"},{"line_number":82,"context_line":"         cmd: |"},{"line_number":83,"context_line":"           set -e"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3fa7e38b_412038f9","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":64},"updated":"2019-11-12 13:40:11.000000000","message":"This task is not executed if previous ones fail so it will not gather logs for failures.","commit_id":"788f301345f2d7cfe4595efd3d7b68f02dc62e60"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"fe651253d5ac993536e9617f867d8b29211a3114","unresolved":false,"context_lines":[{"line_number":77,"context_line":"      include_role:"},{"line_number":78,"context_line":"        name: run-tempest"},{"line_number":79,"context_line":"    # Copy openstack logs once tempest run finishes"},{"line_number":80,"context_line":"    - name: Copy openstack services logs once tempest run finish"},{"line_number":81,"context_line":"      shell:"},{"line_number":82,"context_line":"         cmd: |"},{"line_number":83,"context_line":"           set -e"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3fa7e38b_a4a9f07c","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":64},"in_reply_to":"3fa7e38b_412038f9","updated":"2019-11-13 05:02:56.000000000","message":"Done","commit_id":"788f301345f2d7cfe4595efd3d7b68f02dc62e60"},{"author":{"_account_id":16312,"name":"Alfredo Moralejo","email":"amoralej@redhat.com","username":"amoralej"},"change_message_id":"44f326237823604086e824522a4a66e28a554b5e","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    - name: Install packstack allinone"},{"line_number":9,"context_line":"      include_role:"},{"line_number":10,"context_line":"        name: packstack-integration-tempest"},{"line_number":11,"context_line":"      environment:"},{"line_number":12,"context_line":"        COPY_LOGS: false"},{"line_number":13,"context_line":"    # setup-tempest-user, setup-stack-user and setup-devstack-source-dirs"},{"line_number":14,"context_line":"    # are inherited from openstack/devstack"},{"line_number":15,"context_line":"    - name: Setup Stack user"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_d20aaa25","line":12,"range":{"start_line":11,"start_character":0,"end_line":12,"end_character":24},"updated":"2019-11-13 09:28:32.000000000","message":"according to check jobs, this is not working as expected, it\u0027s collecting logs twice.\n\nAccording to ansible documentation, this is expected [1]. include_ do not pass:\n\n\"All attributes applied to a dynamic include_* would only apply to the include itself, while attributes applied to a static import_* would be inherited by the tasks within.\"\n\n\nCould you replace include_role by import_role here?\n\n[1] https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#dynamic-includes-and-attribute-inheritance","commit_id":"464732dbc70181a4533724a295e580672c1d4533"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"36b176f6e8d7af3239fed3e9bbb7066b5739278e","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    - name: Install packstack allinone"},{"line_number":9,"context_line":"      include_role:"},{"line_number":10,"context_line":"        name: packstack-integration-tempest"},{"line_number":11,"context_line":"      environment:"},{"line_number":12,"context_line":"        COPY_LOGS: false"},{"line_number":13,"context_line":"    # setup-tempest-user, setup-stack-user and setup-devstack-source-dirs"},{"line_number":14,"context_line":"    # are inherited from openstack/devstack"},{"line_number":15,"context_line":"    - name: Setup Stack user"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_6d2e7b43","line":12,"range":{"start_line":11,"start_character":0,"end_line":12,"end_character":24},"in_reply_to":"3fa7e38b_d20aaa25","updated":"2019-11-13 09:53:26.000000000","message":"Done","commit_id":"464732dbc70181a4533724a295e580672c1d4533"},{"author":{"_account_id":16312,"name":"Alfredo Moralejo","email":"amoralej@redhat.com","username":"amoralej"},"change_message_id":"ec3bd9aeb0e694a66c2971fde4070a7edb97efc6","unresolved":false,"context_lines":[{"line_number":81,"context_line":"         executable: /bin/bash"},{"line_number":82,"context_line":"         chdir: \u0027{{ ansible_user_dir }}/workspace/packstack\u0027"},{"line_number":83,"context_line":"      environment: \u0027{{ zuul }}\u0027"},{"line_number":84,"context_line":"      tags: always"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3fa7e38b_053ebbb8","line":84,"range":{"start_line":84,"start_character":6,"end_line":84,"end_character":18},"updated":"2019-11-13 12:41:54.000000000","message":"as per check logs result, this task is not being executed when previous jobs fail even with \"allways\" tag. I think the only way is to use a block and use rescue or make this part of a post-run task.","commit_id":"fdf45ecb891414e758916f0b349e4625361a2167"}]}
