)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0a01771d79e9f7fe68c9ab6d215ada850b25c5ee","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     evansash \u003cevansash@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-07-05 09:46:36 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP] Partially supports Multi-arch design"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I5e298ce52b8abc0b883b10baca81ca6c497ffbb9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aa78d24_90b831e7","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":42},"updated":"2016-07-05 14:43:24.000000000","message":"Need to work on this commit message.\n\nThe title is good.  But an explanation of what it does is necessary.  In this case, you are starting to store off the CPU architecture and a server that will act as the repo build server for that architecture.\n\nNeeds a \u0027Partially-Implements: bp/multi-arch-repo\u0027","commit_id":"47e6a06a0626701825b4918071d3d41ec9331835"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"28cbd469d1c687158acecd3a6c323cc64ad8159a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     evansash \u003cevansash@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-07-05 15:49:13 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP] Partially supports Multi-arch design and"},{"line_number":8,"context_line":" Partially-Implements: bp/multi-arch-repo"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"-Store CPU architecture and a server which"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1aa78d24_c20bd8d4","line":7,"range":{"start_line":7,"start_character":6,"end_line":7,"end_character":46},"updated":"2016-07-06 13:01:37.000000000","message":"Title should probably be \"Build cpu arch to repo build server map\"","commit_id":"8c1fd78ecce8e4e65a4abbc81cb1626e608f11c4"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"28cbd469d1c687158acecd3a6c323cc64ad8159a","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2016-07-05 15:49:13 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP] Partially supports Multi-arch design and"},{"line_number":8,"context_line":" Partially-Implements: bp/multi-arch-repo"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"-Store CPU architecture and a server which"},{"line_number":11,"context_line":"will act as the repo build server for that architecture."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1aa78d24_025b20f7","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":41},"updated":"2016-07-06 13:01:37.000000000","message":"This should go at the end.  Should be below the description (a new line between the description and a new line between it and the Change-Id)","commit_id":"8c1fd78ecce8e4e65a4abbc81cb1626e608f11c4"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"28cbd469d1c687158acecd3a6c323cc64ad8159a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"[WIP] Partially supports Multi-arch design and"},{"line_number":8,"context_line":" Partially-Implements: bp/multi-arch-repo"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"-Store CPU architecture and a server which"},{"line_number":11,"context_line":"will act as the repo build server for that architecture."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I5e298ce52b8abc0b883b10baca81ca6c497ffbb9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1aa78d24_c2d91859","line":11,"range":{"start_line":10,"start_character":0,"end_line":11,"end_character":56},"updated":"2016-07-06 13:01:37.000000000","message":"No dash needed.  Should line up to use the full 72 characters line width.\n\nTitles can be 50 characters long (and shouldn\u0027t end with a period).\n\nDescriptions can be 72 characters wide.\n\nSee the \u0027Summary of Git commit message structure\u0027\n\nhttps://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"8c1fd78ecce8e4e65a4abbc81cb1626e608f11c4"}],"playbooks/repo-build.yml":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0a01771d79e9f7fe68c9ab6d215ada850b25c5ee","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Save ansible_architecture to cpu_arch"},{"line_number":17,"context_line":"  hosts: repo_all"},{"line_number":18,"context_line":"  gather_facts: true"},{"line_number":19,"context_line":"  pre_tasks:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1aa78d24_b09a8d61","line":16,"range":{"start_line":16,"start_character":8,"end_line":16,"end_character":45},"updated":"2016-07-05 14:43:24.000000000","message":"Maybe...\"Save repo build server for a given cpu_arch\"","commit_id":"47e6a06a0626701825b4918071d3d41ec9331835"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0a01771d79e9f7fe68c9ab6d215ada850b25c5ee","unresolved":false,"context_lines":[{"line_number":17,"context_line":"  hosts: repo_all"},{"line_number":18,"context_line":"  gather_facts: true"},{"line_number":19,"context_line":"  pre_tasks:"},{"line_number":20,"context_line":"    - name: Add hosts"},{"line_number":21,"context_line":"      debug:"},{"line_number":22,"context_line":"        msg: \"Adding Hosts\""},{"line_number":23,"context_line":"    - name: Generate cpu_arch_list"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1aa78d24_90867111","line":20,"range":{"start_line":20,"start_character":12,"end_line":20,"end_character":21},"updated":"2016-07-05 14:43:24.000000000","message":"Is this pre task \"Add hosts\" needed for anything?","commit_id":"47e6a06a0626701825b4918071d3d41ec9331835"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0a01771d79e9f7fe68c9ab6d215ada850b25c5ee","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    - name: Add hosts"},{"line_number":21,"context_line":"      debug:"},{"line_number":22,"context_line":"        msg: \"Adding Hosts\""},{"line_number":23,"context_line":"    - name: Generate cpu_arch_list"},{"line_number":24,"context_line":"      set_fact:  \"{{ cpu_arch_list | default({}) | combine( { {{ ansible_architecture }}: {{ ansible_host }} }) }}\""},{"line_number":25,"context_line":"      with_items: \"{{ cpu_arch_list }}\""},{"line_number":26,"context_line":"      when: \"{{ ansible_architecture }} not in cpu_arch_list\""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1aa78d24_104601bf","line":23,"range":{"start_line":23,"start_character":0,"end_line":23,"end_character":34},"updated":"2016-07-05 14:43:24.000000000","message":"Looks like you\u0027re failing the tests because this fact is not yet defined.  Maybe that should be the pre-task instead of Add hosts?  Something that saves that fact.\n\n\nError Message: \n2016-07-05 14:32:31.369206 | TASK [Generate cpu_arch_list] **************************************************\n2016-07-05 14:32:31.378649 | [DEPRECATION WARNING]: Skipping task due to undefined Error, in the future this\n2016-07-05 14:32:31.378695 |  will be a fatal error.: \u0027cpu_arch_list\u0027 is undefined.","commit_id":"47e6a06a0626701825b4918071d3d41ec9331835"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0a01771d79e9f7fe68c9ab6d215ada850b25c5ee","unresolved":false,"context_lines":[{"line_number":21,"context_line":"      debug:"},{"line_number":22,"context_line":"        msg: \"Adding Hosts\""},{"line_number":23,"context_line":"    - name: Generate cpu_arch_list"},{"line_number":24,"context_line":"      set_fact:  \"{{ cpu_arch_list | default({}) | combine( { {{ ansible_architecture }}: {{ ansible_host }} }) }}\""},{"line_number":25,"context_line":"      with_items: \"{{ cpu_arch_list }}\""},{"line_number":26,"context_line":"      when: \"{{ ansible_architecture }} not in cpu_arch_list\""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1aa78d24_30221d01","line":24,"range":{"start_line":24,"start_character":21,"end_line":24,"end_character":34},"updated":"2016-07-05 14:43:24.000000000","message":"We may want to change this name.\n\ncpu_arch_to_repo_build maybe?","commit_id":"47e6a06a0626701825b4918071d3d41ec9331835"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"28cbd469d1c687158acecd3a6c323cc64ad8159a","unresolved":false,"context_lines":[{"line_number":25,"context_line":"      with_items: \"{{ ansible_architecture }}\""},{"line_number":26,"context_line":"      #with_items: \"{{ repo_build_list }}\""},{"line_number":27,"context_line":"      #when: \"{{ ansible_architecture }} not in repo_build_list\""},{"line_number":28,"context_line":"     - name: Print repo_build_list"},{"line_number":29,"context_line":"      debug: \"msg\u003d\u0027repo_build_list {{ ansible_architecture.stdout }}\u0027\""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"- name: Build new repo packages for a given release"},{"line_number":32,"context_line":"  hosts: repo_all[0]"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"1aa78d24_0285e005","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":70},"updated":"2016-07-06 13:01:37.000000000","message":"Your spacing is off on this...  That may be in part why you hit this issue:\n\n2016-07-05 20:12:10.294079 | The error appears to have been in \u0027/home/jenkins/workspace/gate-openstack-ansible-dsvm-commit/playbooks/repo-build.yml\u0027: line 28, column 6, but may\n2016-07-05 20:12:10.294138 | be elsewhere in the file depending on the exact syntax problem.","commit_id":"8c1fd78ecce8e4e65a4abbc81cb1626e608f11c4"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"dc19386d8b4ef74446797ecd9cbde3b8e604d598","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    - name: Generate repo_build_list"},{"line_number":24,"context_line":"      set_fact:  \"{{ repo_build_list | default({}) | combine( {ansible_architecture: ansible_host} ) }}\""},{"line_number":25,"context_line":"      with_items: \"{{ ansible_architecture }}\""},{"line_number":26,"context_line":"    - name: Print repo_build_list"},{"line_number":27,"context_line":"      debug: \"msg\u003d\u0027repo_build_list {{ ansible_architecture.stdout }}\u0027\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- name: Build new repo packages for a given release"},{"line_number":30,"context_line":"  hosts: repo_all[0]"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"1aa78d24_1d2fc4a1","line":27,"range":{"start_line":26,"start_character":0,"end_line":27,"end_character":70},"updated":"2016-07-07 11:41:13.000000000","message":"I think this needs to be the following (and this step is what is failing the build).\n\n- name: Print repo_build_list\n  debug: var\u003ditem.stdout\n  with_items: repo_build_list\n\nThe ansible_architecture that you\u0027re printing now is probably not what you want, as that would just be x86_64 or ppc64le.  I think you want to output the dictionary contents...which means you need to loop through it (I think).","commit_id":"5141c3a8f2e04dd11a179f005d5bc52f6894847b"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e3f980e6a1acddf1a9579ac3bf8de413ab92ca6a","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    cpu_arch: \"{{ansible_architecture}}\""},{"line_number":21,"context_line":"  pre_tasks:"},{"line_number":22,"context_line":"    - name: Register repo_build_list output"},{"line_number":23,"context_line":"      shell: \"{{ item }}\""},{"line_number":24,"context_line":"      register: repo_build_list"},{"line_number":25,"context_line":"      with_items: \"{{ ansible_architecture }}\""},{"line_number":26,"context_line":"    - debug: var\u003drepo_build_list"},{"line_number":27,"context_line":"    - name: Generate repo_build_list"},{"line_number":28,"context_line":"      set_fact:  \"{{ repo_build_list | default({}) | combine( {ansible_architecture: ansible_host} ) }}\""}],"source_content_type":"text/x-yaml","patch_set":9,"id":"1aa78d24_d2c9665c","line":25,"range":{"start_line":23,"start_character":0,"end_line":25,"end_character":46},"updated":"2016-07-08 12:48:16.000000000","message":"So this fails because it is trying to run the shell command \u0027{{ item }}\u0027\n\nThis is failing because item is coming back as \u0027x86_64\u0027\n\nSo think of this as running the command \u0027x86_64\u0027 from the command line.","commit_id":"d3b751d7314096480a363c4d8398a3863b408733"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"1ad199e1f7b62de5fb64e4c122632968547f54dc","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Save ansible_architecture to cpu_arch"},{"line_number":17,"context_line":"  hosts: repo_all"},{"line_number":18,"context_line":"  gather_facts: true"}],"source_content_type":"text/x-yaml","patch_set":10,"id":"1aa78d24_5b9d8a58","line":15,"updated":"2016-07-08 14:40:58.000000000","message":"So I think you want an initial rule here that saves the repo_build_master.  The repo_build_master is the thing that all of the other repo_build servers will sync back to.\n\nThe repo_build_master is repo_all[0], but should probably be set.","commit_id":"2a2fde0c3aa43d822a2df5e3f5c6e2075bc8fa21"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"1ad199e1f7b62de5fb64e4c122632968547f54dc","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Save ansible_architecture to cpu_arch"},{"line_number":17,"context_line":"  hosts: repo_all"},{"line_number":18,"context_line":"  gather_facts: true"},{"line_number":19,"context_line":"  pre_tasks:"},{"line_number":20,"context_line":"    - name: Register repo_build_list output"},{"line_number":21,"context_line":"      shell: \"echo \u0027{{ ansible_architecture }}\u0027\""}],"source_content_type":"text/x-yaml","patch_set":10,"id":"1aa78d24_7bafa67d","line":18,"range":{"start_line":18,"start_character":2,"end_line":18,"end_character":20},"updated":"2016-07-08 14:40:58.000000000","message":"We discussed but I think you need to do serial: 1 here.  That will make each host report back one at a time.  Which is a bit annoying...but that way you don\u0027t have four or five hosts stomping on each other.","commit_id":"2a2fde0c3aa43d822a2df5e3f5c6e2075bc8fa21"},{"author":{"_account_id":22030,"name":"Ashana Evans","email":"evansash@us.ibm.com","username":"evansash"},"change_message_id":"cb185bbc818b4ece7e03df27309f72a7d26a56ee","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Save ansible_architecture to cpu_arch"},{"line_number":17,"context_line":"  hosts: repo_all"},{"line_number":18,"context_line":"  gather_facts: true"},{"line_number":19,"context_line":"  pre_tasks:"},{"line_number":20,"context_line":"    - name: Register repo_build_list output"},{"line_number":21,"context_line":"      shell: \"echo \u0027{{ ansible_architecture }}\u0027\""}],"source_content_type":"text/x-yaml","patch_set":10,"id":"1aa78d24_551d4e65","line":18,"range":{"start_line":18,"start_character":2,"end_line":18,"end_character":20},"in_reply_to":"1aa78d24_7bafa67d","updated":"2016-07-11 13:35:17.000000000","message":"Done","commit_id":"2a2fde0c3aa43d822a2df5e3f5c6e2075bc8fa21"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"1ad199e1f7b62de5fb64e4c122632968547f54dc","unresolved":false,"context_lines":[{"line_number":22,"context_line":"      register: repo_build_list"},{"line_number":23,"context_line":"    - debug: var\u003drepo_build_list"},{"line_number":24,"context_line":"    - name: Generate repo_build_list"},{"line_number":25,"context_line":"      set_fact:  \"{{ repo_build_list | default({}) | combine( {ansible_architecture: ansible_host} ) }}\""},{"line_number":26,"context_line":"      with_items: \"{{ ansible_architecture }}\""},{"line_number":27,"context_line":"    - name: Print repo_build_list"},{"line_number":28,"context_line":"      debug: \"msg\u003d \u0027{{ repo_build_list.stdout }}\u0027\""}],"source_content_type":"text/x-yaml","patch_set":10,"id":"1aa78d24_3b119eb0","line":25,"range":{"start_line":25,"start_character":6,"end_line":25,"end_character":14},"updated":"2016-07-08 14:40:58.000000000","message":"Another thing we discussed.  Facts are stored per host.  So this is only setting the repo_build_list fact for the host this is running on.\n\nIf I have 30 hosts, each will have their own repo_build_list variable, but it will only contain themselves.\n\nYou need to use delegate_fact.  This will send the fact result back to something else.  I think that the data should go back to the repo_build_master.\n\nWhat I\u0027m not sure about is whether or not the combine will work properly.  Will it just replace the fact on the master with the data from this client server...or will it properly set the fact.\n\nInformation on delegation is here:  http://docs.ansible.com/ansible/playbooks_delegation.html#delegation","commit_id":"2a2fde0c3aa43d822a2df5e3f5c6e2075bc8fa21"}]}
