)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8c8231cfaf1a5f39340ce5981229aa4556d7ba26","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Cleanup environment before bootstrap-ansible in upgrades"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A change has been made to the inventory generation tool-kit to cater for"},{"line_number":10,"context_line":"container migrations to on metal. This change will ensure existing"},{"line_number":11,"context_line":"contianer properities are respected when updating inventory."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I0fd3a8803bf345ccad07dc97968e104cd0a7bf70"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_075b5c54","line":10,"range":{"start_line":9,"start_character":60,"end_line":10,"end_character":32},"updated":"2018-01-19 10:10:06.000000000","message":"I\u0027m not really seeing how this patch correlates to what the commit message is saying here. What exactly is providing a migration? I see that the inventory is being changed, but not any form of migration.","commit_id":"81b3e49c7077a8db7d3494820346856809e1e84b"}],"scripts/run-upgrade.sh":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"94aca47076ecbf5257f4348d307124f2ed496b96","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    # Unset environment variables used by the override_folder"},{"line_number":166,"context_line":"    # plugin to set paths for group and host vars since the"},{"line_number":167,"context_line":"    # default locations have changed between Ocata and Pike."},{"line_number":168,"context_line":"    unset GROUP_VARS_PATH"},{"line_number":169,"context_line":"    unset HOST_VARS_PATH"},{"line_number":170,"context_line":"    unset ANSIBLE_INVENTORY"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    # Remove existing previous version openstack-ansible.rc before"},{"line_number":173,"context_line":"    # rebootstrapping openstack-ansible"}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f91af0f_2ac9f524","line":170,"range":{"start_line":168,"start_character":0,"end_line":170,"end_character":27},"updated":"2018-01-08 11:13:03.000000000","message":"The openstack-ansible wrapper is not used to bootstrap the roles:\n\nhttps://github.com/openstack/openstack-ansible/blob/master/scripts/bootstrap-ansible.sh#L290\n\nSo it\u0027s likely that the only requirement to unset before executing it would be ANSIBLE_INVENTORY, but that should not be needed as the inventory is provided in the CLI path:\n\nhttps://github.com/openstack/openstack-ansible/blob/master/scripts/bootstrap-ansible.sh#L291\n\nI am happy for a backup of previous things to happen, but I don\u0027t like that we wipe the /etc/ansible/roles folder quite as much. I hope we can find a solution to the problem outlined in the bug that\u0027s less disruptive to the workflow.","commit_id":"0f89bf0948b4d858d37ca1da53501b829b30196f"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"078aa4d0b96ffae6ebe3a9d1aa07b8d47aa41da8","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    # Unset environment variables used by the override_folder"},{"line_number":166,"context_line":"    # plugin to set paths for group and host vars since the"},{"line_number":167,"context_line":"    # default locations have changed between Ocata and Pike."},{"line_number":168,"context_line":"    unset GROUP_VARS_PATH"},{"line_number":169,"context_line":"    unset HOST_VARS_PATH"},{"line_number":170,"context_line":"    unset ANSIBLE_INVENTORY"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    # Remove existing previous version openstack-ansible.rc before"},{"line_number":173,"context_line":"    # rebootstrapping openstack-ansible"}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f91af0f_90615008","line":170,"range":{"start_line":168,"start_character":0,"end_line":170,"end_character":27},"in_reply_to":"9f91af0f_2ac9f524","updated":"2018-01-08 13:15:37.000000000","message":"Would you be okay with a more surgical removal of the plugins role?\n\nBecause this is the only thing that gets auto loaded whether or not you use the wrapper: the other roles are only loaded when called because they either don\u0027t have plugins or those plugins are modules fully loaded when called.\n\nBut when you think about it, for that last case, this can cause us other issues: What if a module (maybe not shipped by us, but in the same folder /etc/ansible) was used (during the bootstrap process at least) and problematic? This is why I thought we should clean up, for safety.\n\nAll of this can go away if we are checking the roles inside the current playbook directory for self-containment.","commit_id":"0f89bf0948b4d858d37ca1da53501b829b30196f"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"0a9914b4deeaad521d2c50800414288b49c7a464","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    unset ANSIBLE_INVENTORY"},{"line_number":166,"context_line":"    # Archive previous version artifacts"},{"line_number":167,"context_line":"    cp /usr/local/bin/openstack-ansible.rc /openstack/previous-openstack-ansible.rc"},{"line_number":168,"context_line":"    tar zcf /openstack/previous-ansible-folder.tar.gz /etc/ansible/"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    \"${SCRIPTS_PATH}/bootstrap-ansible.sh\""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f96bb07_863ed2be","line":168,"updated":"2018-01-17 15:34:31.000000000","message":"we might as well include /etc/openstack_deploy in this tarball. something like should also negate the need to copy the rc file.\n\n  tar zcf /openstack/previous-ansible-folder.tar.gz /etc/ansible /etc/openstack_deploy /openstack/previous-openstack-ansible.rc","commit_id":"7744e1de1fe6c7d2764c62e11192828f662cf0c2"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a2961ed50d97e4aa08946b65f3952820ef1eea90","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    pre_flight"},{"line_number":163,"context_line":"    check_for_current"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    unset ANSIBLE_INVENTORY"},{"line_number":166,"context_line":"    # Archive previous version artifacts"},{"line_number":167,"context_line":"    tar zcf /openstack/previous-ansible.tar.gz /etc/ansible /etc/openstack_deploy /usr/local/bin/openstack-ansible.rc"},{"line_number":168,"context_line":""}],"source_content_type":"text/x-sh","patch_set":10,"id":"7f96bb07_27b6988c","line":165,"range":{"start_line":165,"start_character":4,"end_line":165,"end_character":27},"updated":"2018-01-19 10:07:43.000000000","message":"Why is this necessary? bootstrap-ansible sets the inventory on the CLI. I\u0027d suggest adding a comment above the line to explain why it\u0027s there for future reference.","commit_id":"81b3e49c7077a8db7d3494820346856809e1e84b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a2961ed50d97e4aa08946b65f3952820ef1eea90","unresolved":false,"context_lines":[{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    unset ANSIBLE_INVENTORY"},{"line_number":166,"context_line":"    # Archive previous version artifacts"},{"line_number":167,"context_line":"    tar zcf /openstack/previous-ansible.tar.gz /etc/ansible /etc/openstack_deploy /usr/local/bin/openstack-ansible.rc"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"    \"${SCRIPTS_PATH}/bootstrap-ansible.sh\""},{"line_number":170,"context_line":""}],"source_content_type":"text/x-sh","patch_set":10,"id":"7f96bb07_87668c29","line":167,"range":{"start_line":167,"start_character":23,"end_line":167,"end_character":46},"updated":"2018-01-19 10:07:43.000000000","message":"Perhaps this should be timestamped or something to keep the history of configuration/inventory intact?","commit_id":"81b3e49c7077a8db7d3494820346856809e1e84b"}]}
