)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add spec on refactor the inventory"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A very hard work with very little rewards."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: If484020420ff17df8ea682c0ceb7450acd0e4325"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"bf659307_abdab347","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":42},"updated":"2018-04-13 10:45:46.000000000","message":"This is not very motivating. ;)","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"}],"specs/rocky/refactor-inventory.rst":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Problem description"},{"line_number":10,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The current OpenStack-Ansible inventory provide many features,"},{"line_number":13,"context_line":"all of them were included into a single dynamic inventory script,"},{"line_number":14,"context_line":"because at the time of its creation, only one inventory was allowed"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_80e95381","line":11,"updated":"2018-04-09 08:50:49.000000000","message":"The problem description could do with re-working to actually describe the background, then define a clear problem. It\u0027s a bit all over the place and use very subjective terms which makes it prone to misinterpretation.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"3dc59b9d59deb6d82ff1b1a663edf6fd5116a1ba","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#. Ansible ships a convenient tool to convert a inventory script into"},{"line_number":38,"context_line":"   a static yaml file. That should be easier to manage for users."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"#. Ansible allows multiple inventories to be provided in a call, by"},{"line_number":41,"context_line":"   merging them together automatically"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"What I am proposing is to use static files for inventory."},{"line_number":44,"context_line":"It is easier for people to edit the inventory, and review it."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_a0a2854a","line":41,"range":{"start_line":40,"start_character":0,"end_line":41,"end_character":38},"updated":"2018-04-05 18:17:09.000000000","message":"Don\u0027t think I saw this mentioned, but is it planned to have some separation (groups/host level) of inventory files?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#. Ansible ships a convenient tool to convert a inventory script into"},{"line_number":38,"context_line":"   a static yaml file. That should be easier to manage for users."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"#. Ansible allows multiple inventories to be provided in a call, by"},{"line_number":41,"context_line":"   merging them together automatically"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"What I am proposing is to use static files for inventory."},{"line_number":44,"context_line":"It is easier for people to edit the inventory, and review it."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_8045d372","line":41,"range":{"start_line":40,"start_character":0,"end_line":41,"end_character":38},"in_reply_to":"bf659307_a0a2854a","updated":"2018-04-09 08:50:49.000000000","message":"\u003e Don\u0027t think I saw this mentioned, but is it planned to have some\n \u003e separation (groups/host level) of inventory files?\n\nOther than line 70 you mean? Can you clarify the question? It seems to me that the approach here is to provide some convenience tooling, but otherwise to let people just use ansible... Therefore we will not need to be concerned with host/group/vars other than our own defaults.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"75277eff027602de1342cc281c077e95b2ecc74b","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#. Ansible ships a convenient tool to convert a inventory script into"},{"line_number":38,"context_line":"   a static yaml file. That should be easier to manage for users."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"#. Ansible allows multiple inventories to be provided in a call, by"},{"line_number":41,"context_line":"   merging them together automatically"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"What I am proposing is to use static files for inventory."},{"line_number":44,"context_line":"It is easier for people to edit the inventory, and review it."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_14760540","line":41,"range":{"start_line":40,"start_character":0,"end_line":41,"end_character":38},"in_reply_to":"bf659307_a0a2854a","updated":"2018-04-06 09:48:01.000000000","message":"I meant here that Ansible CAN do it.\n\nI think the inventory should just hold the host/group relationship.\n\nFor the plan expressed above, it doesn\u0027t plan to separate things into different files for now. But if it\u0027s a yaml file, people can split it the way they want.\n\n\nHost vars/group vars should be put somewhere else, if possible fetched from a var plugin, or better, from an extra vars script when possible to prevent loading.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":50,"context_line":"So I propose the following path:"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"#. Keep the dynamic inventory script for now, but change its scope."},{"line_number":53,"context_line":"   Instead of running the script at every ansible run (which causes some"},{"line_number":54,"context_line":"   issues on the archiving), we *could* use the script to"},{"line_number":55,"context_line":"   generate a \"static\" json file."},{"line_number":56,"context_line":"   This way, the interface doesn\u0027t change directly, and we keep the"},{"line_number":57,"context_line":"   features of the dynamic inventory at the beggining (generation"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_5b124c5a","line":54,"range":{"start_line":53,"start_character":55,"end_line":54,"end_character":26},"updated":"2018-04-09 08:50:49.000000000","message":"This problem has not been described anywhere in the spec. If you reference it, then a problem description should be provided to provide the context.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":52,"context_line":"#. Keep the dynamic inventory script for now, but change its scope."},{"line_number":53,"context_line":"   Instead of running the script at every ansible run (which causes some"},{"line_number":54,"context_line":"   issues on the archiving), we *could* use the script to"},{"line_number":55,"context_line":"   generate a \"static\" json file."},{"line_number":56,"context_line":"   This way, the interface doesn\u0027t change directly, and we keep the"},{"line_number":57,"context_line":"   features of the dynamic inventory at the beggining (generation"},{"line_number":58,"context_line":"   of hostnames and vars for containers which aren\u0027t explicitly"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_3b30b8e8","line":55,"range":{"start_line":55,"start_character":23,"end_line":55,"end_character":27},"updated":"2018-04-09 08:50:49.000000000","message":"Why json? Why not generate a yaml file?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":53,"context_line":"   Instead of running the script at every ansible run (which causes some"},{"line_number":54,"context_line":"   issues on the archiving), we *could* use the script to"},{"line_number":55,"context_line":"   generate a \"static\" json file."},{"line_number":56,"context_line":"   This way, the interface doesn\u0027t change directly, and we keep the"},{"line_number":57,"context_line":"   features of the dynamic inventory at the beggining (generation"},{"line_number":58,"context_line":"   of hostnames and vars for containers which aren\u0027t explicitly"},{"line_number":59,"context_line":"   created by the user)."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_9b21c4a2","line":56,"range":{"start_line":56,"start_character":3,"end_line":56,"end_character":50},"updated":"2018-04-09 08:50:49.000000000","message":"If you\u0027re having to run a script once, versus ansible running it for you, I\u0027d say that\u0027s an interface change... so it\u0027s not clear to me what you mean by \"the interface doesn\u0027t change directly.\"","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   issues on the archiving), we *could* use the script to"},{"line_number":55,"context_line":"   generate a \"static\" json file."},{"line_number":56,"context_line":"   This way, the interface doesn\u0027t change directly, and we keep the"},{"line_number":57,"context_line":"   features of the dynamic inventory at the beggining (generation"},{"line_number":58,"context_line":"   of hostnames and vars for containers which aren\u0027t explicitly"},{"line_number":59,"context_line":"   created by the user)."},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_805b9385","line":57,"range":{"start_line":57,"start_character":44,"end_line":57,"end_character":53},"updated":"2018-04-09 08:50:49.000000000","message":"beginning","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":58,"context_line":"   of hostnames and vars for containers which aren\u0027t explicitly"},{"line_number":59,"context_line":"   created by the user)."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"   That dynamic inventory script could become TOTALLY optional at"},{"line_number":62,"context_line":"   that point: We can document what is required in a build, and"},{"line_number":63,"context_line":"   ask deployers to provide their own group/host mapping."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"   To make sure deployers don\u0027t misunderstand the \"static\" json"},{"line_number":66,"context_line":"   file, and the current json \"cache\" / generated inventory, we"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_7bf390e8","line":63,"range":{"start_line":61,"start_character":0,"end_line":63,"end_character":57},"updated":"2018-04-09 08:50:49.000000000","message":"It is already optional today, so I think this statement is misleading. Deployers already provide their own host/group mappings today, so the intent of the statement is also not clear.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":62,"context_line":"   that point: We can document what is required in a build, and"},{"line_number":63,"context_line":"   ask deployers to provide their own group/host mapping."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"   To make sure deployers don\u0027t misunderstand the \"static\" json"},{"line_number":66,"context_line":"   file, and the current json \"cache\" / generated inventory, we"},{"line_number":67,"context_line":"   should move the files to a \"cache\" folder, and the generated"},{"line_number":68,"context_line":"   inventory (``legacy.json``) into a ``inventory`` folder."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"#. In our code, we can provide a yaml or INI inventory to provide"},{"line_number":71,"context_line":"   a basic skeleton of the groups required to deploy openstack."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_1b1b741b","line":68,"range":{"start_line":65,"start_character":0,"end_line":68,"end_character":59},"updated":"2018-04-09 08:50:49.000000000","message":"What is the purpose of the json files in this proposed path?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"#. In our code, we can provide a yaml or INI inventory to provide"},{"line_number":71,"context_line":"   a basic skeleton of the groups required to deploy openstack."},{"line_number":72,"context_line":"   That would provide some form of convenience when people use"},{"line_number":73,"context_line":"   their own inventory."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"#. We write a tool to cleanup the json from ``legacy.json``"},{"line_number":76,"context_line":"   to ``static.json``. This would help reducing the size of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_1bc93477","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":23},"updated":"2018-04-09 08:50:49.000000000","message":"I think you mean that it would provide a reference, would make the required user-provided inventory smaller (as they would not have to define all the groups we want to reference in simpler ways), and simpler (as the user only has to care about the components he wants in his environment). However, the statement youu\u0027re making here is broad and does really make anything clear about what you\u0027re trying to convey.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":73,"context_line":"   their own inventory."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"#. We write a tool to cleanup the json from ``legacy.json``"},{"line_number":76,"context_line":"   to ``static.json``. This would help reducing the size of"},{"line_number":77,"context_line":"   the inventory. Global variables from"},{"line_number":78,"context_line":"   ``openstack_user_config`` can be moved to ``user_ouc.yml``,"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"#. We add documentation to explain how to convert an inventory"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_dbb73cd8","line":77,"range":{"start_line":76,"start_character":23,"end_line":77,"end_character":17},"updated":"2018-04-09 08:50:49.000000000","message":"Would it? How? There\u0027s no explanation of why the size is a problem, nor is there a description to cover how it could be reduced in size?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9c7f5af540d39c5c85ac948f40a452cf58aa9584","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"#. We write a tool to cleanup the json from ``legacy.json``"},{"line_number":76,"context_line":"   to ``static.json``. This would help reducing the size of"},{"line_number":77,"context_line":"   the inventory. Global variables from"},{"line_number":78,"context_line":"   ``openstack_user_config`` can be moved to ``user_ouc.yml``,"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"#. We add documentation to explain how to convert an inventory"},{"line_number":81,"context_line":"   from json to yaml by calling ``ansible-inventory``."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_1bda9416","line":78,"range":{"start_line":77,"start_character":18,"end_line":78,"end_character":61},"updated":"2018-04-09 08:50:49.000000000","message":"I\u0027m not sure that this would make sense to do, and there\u0027s nothing described in this spec that makes me understand why this would be appropriate versus other placements like group_vars.","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"3dc59b9d59deb6d82ff1b1a663edf6fd5116a1ba","unresolved":false,"context_lines":[{"line_number":83,"context_line":"#. We (optionally) provide a new tool to generate the"},{"line_number":84,"context_line":"   ``static.json`` based on what we learned from users, which"},{"line_number":85,"context_line":"   won\u0027t necessary use the openstack_user_config, conf.d, or"},{"line_number":86,"context_line":"   env.d"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Alternatives"},{"line_number":89,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_004ed1c0","line":86,"updated":"2018-04-05 18:17:09.000000000","message":"Wouldn\u0027t some tooling be required here for users to add/update/remove inventory information without manual editing?\nWould o_u_c still be an interface for making changes once an inventory is made static?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"75277eff027602de1342cc281c077e95b2ecc74b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"#. We (optionally) provide a new tool to generate the"},{"line_number":84,"context_line":"   ``static.json`` based on what we learned from users, which"},{"line_number":85,"context_line":"   won\u0027t necessary use the openstack_user_config, conf.d, or"},{"line_number":86,"context_line":"   env.d"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Alternatives"},{"line_number":89,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bf659307_f4e031cf","line":86,"in_reply_to":"bf659307_004ed1c0","updated":"2018-04-06 09:48:01.000000000","message":"What is planned in this spec is NOT to include this kind of script.\n\nBut I definitely think that it would be valuable, because it brings feature parity.\n\nOn top of that, the tool to cleanup the json probably share some of these components, so we can re-use a library. I am working in secret on\nhttps://github.com/evrardjp/ansible-inventory-manage which has no dependency, and could be used for that.\n\nDo you want this added somewhere?","commit_id":"3644d6a828eefa1b1304b699dcd2a374e6fe6ad3"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":3,"context_line":":date: 2018-04-12 22:00"},{"line_number":4,"context_line":":tags: osa, inventory"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Inventory is currently rotting, is just a big pile of technical"},{"line_number":7,"context_line":"debt, and should be cleaned up. Something must be done."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Problem description"},{"line_number":10,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_8bcc8f89","line":7,"range":{"start_line":6,"start_character":0,"end_line":7,"end_character":55},"updated":"2018-04-13 10:45:46.000000000","message":"The inventory as it stands today has been growing in complexity and has only grown organically since its first implementation in icehouse. Given that Ansible has changed a lot and has added capabilities which were not available in those early versions, it is time to take a step back and look at how it can be re-worked to reduce technical debt and make it easier to maintain.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":24,"context_line":"at a time in an ansible cli call."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"The dynamic inventory shipped by OSA is core of the functionality of"},{"line_number":27,"context_line":"OpenStack-Ansible, yet it didn\u0027t get enough love in the last cycles."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"As a result, the inventory grew and grew over time (changes in the"},{"line_number":30,"context_line":"way we deploy things, adding new groups, adding edge cases),"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_0ba63fc2","line":27,"range":{"start_line":27,"start_character":26,"end_line":27,"end_character":67},"updated":"2018-04-13 10:45:46.000000000","message":"is not well understood, neither by the core maintainers nor by new contributors.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The dynamic inventory shipped by OSA is core of the functionality of"},{"line_number":27,"context_line":"OpenStack-Ansible, yet it didn\u0027t get enough love in the last cycles."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"As a result, the inventory grew and grew over time (changes in the"},{"line_number":30,"context_line":"way we deploy things, adding new groups, adding edge cases),"},{"line_number":31,"context_line":"but nothing cleaned it up."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_2b9c6368","line":29,"range":{"start_line":29,"start_character":27,"end_line":29,"end_character":50},"updated":"2018-04-13 10:45:46.000000000","message":"has grown organically, both in code and in memory usage","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"As a result, the inventory grew and grew over time (changes in the"},{"line_number":30,"context_line":"way we deploy things, adding new groups, adding edge cases),"},{"line_number":31,"context_line":"but nothing cleaned it up."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"However, at this point, because of the lack of tests, it\u0027s too"},{"line_number":34,"context_line":"fragile to touch. Adding tests is unrealisticly hard for legacy code."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_0b8f1f2a","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":25},"updated":"2018-04-13 10:45:46.000000000","message":"and has not seen much maintenance to reduce its scope or the technical debt.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":30,"context_line":"way we deploy things, adding new groups, adding edge cases),"},{"line_number":31,"context_line":"but nothing cleaned it up."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"However, at this point, because of the lack of tests, it\u0027s too"},{"line_number":34,"context_line":"fragile to touch. Adding tests is unrealisticly hard for legacy code."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The problems can therefore be summarized in a few points:"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_eb90ab45","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":69},"updated":"2018-04-13 10:45:46.000000000","message":"At this point, due to a lack of tests and the complexity of the code, it is difficult to work on without causing hidden breakages which are often only found months later.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":36,"context_line":"The problems can therefore be summarized in a few points:"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* The inventory needs to be cleaned up of unnecessary groups and"},{"line_number":39,"context_line":"  assignments, but no one can clean it up"},{"line_number":40,"context_line":"* We have to carry code in openstack-ansible that is not actively"},{"line_number":41,"context_line":"  maintained"},{"line_number":42,"context_line":"* We have to execute code that\u0027s not actively audited, but we"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_6ba49ba6","line":39,"range":{"start_line":39,"start_character":13,"end_line":39,"end_character":41},"updated":"2018-04-13 10:45:46.000000000","message":"remove this, or revise it to sound less accusatory - perhaps something like\n\n, but it is difficult to clean up effectively without causing hidden breakages.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  assignments, but no one can clean it up"},{"line_number":40,"context_line":"* We have to carry code in openstack-ansible that is not actively"},{"line_number":41,"context_line":"  maintained"},{"line_number":42,"context_line":"* We have to execute code that\u0027s not actively audited, but we"},{"line_number":43,"context_line":"  could avoid it with no cost for the end user"},{"line_number":44,"context_line":"* Introducing tests to fix regressions is unlikely due to"},{"line_number":45,"context_line":"  the state of the community (we have too many bugs that"},{"line_number":46,"context_line":"  require fixing, and this would be at the second plan again)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_4ba5179e","line":43,"range":{"start_line":42,"start_character":55,"end_line":43,"end_character":46},"updated":"2018-04-13 10:45:46.000000000","message":"This doesn\u0027t seem to match up with the first part of the statement.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  maintained"},{"line_number":42,"context_line":"* We have to execute code that\u0027s not actively audited, but we"},{"line_number":43,"context_line":"  could avoid it with no cost for the end user"},{"line_number":44,"context_line":"* Introducing tests to fix regressions is unlikely due to"},{"line_number":45,"context_line":"  the state of the community (we have too many bugs that"},{"line_number":46,"context_line":"  require fixing, and this would be at the second plan again)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_0be2bfd5","line":45,"range":{"start_line":44,"start_character":51,"end_line":45,"end_character":28},"updated":"2018-04-13 10:45:46.000000000","message":"What is the \u0027state of the community\u0027? Perhaps better to revise this to:\n\nIntroducing tests to verify regressions was attempted during the Newton, Ocata and Pike development cycles - but that has done nothing more than increase the code complexity and has done nothing to improve the reliability.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* For me, the features to track proper IP assignment is the"},{"line_number":68,"context_line":"  scope of a CMDB/IPAM. We shouldn\u0027t reinvent the wheel there."},{"line_number":69,"context_line":"  Instead this should be spinned out of the inventory."},{"line_number":70,"context_line":"  People should either:"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  * use the old inventory to keep the same features, with"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_4bd3d701","line":69,"range":{"start_line":69,"start_character":25,"end_line":69,"end_character":32},"updated":"2018-04-13 10:45:46.000000000","message":"spun","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":69,"context_line":"  Instead this should be spinned out of the inventory."},{"line_number":70,"context_line":"  People should either:"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  * use the old inventory to keep the same features, with"},{"line_number":73,"context_line":"    the disclaimer this code is deprecated"},{"line_number":74,"context_line":"  * provide their own IP"},{"line_number":75,"context_line":"  * provide their own inventory/lookup to fetch data from"},{"line_number":76,"context_line":"    their IPAM."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_eb074b81","line":73,"range":{"start_line":72,"start_character":53,"end_line":73,"end_character":42},"updated":"2018-04-13 10:45:46.000000000","message":"but we add a warning that the code is deprecated","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  * use the old inventory to keep the same features, with"},{"line_number":73,"context_line":"    the disclaimer this code is deprecated"},{"line_number":74,"context_line":"  * provide their own IP"},{"line_number":75,"context_line":"  * provide their own inventory/lookup to fetch data from"},{"line_number":76,"context_line":"    their IPAM."},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_6bfb3b78","line":74,"range":{"start_line":74,"start_character":4,"end_line":74,"end_character":24},"updated":"2018-04-13 10:45:46.000000000","message":"provide their own IP addresses in a static file","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  * use the old inventory to keep the same features, with"},{"line_number":73,"context_line":"    the disclaimer this code is deprecated"},{"line_number":74,"context_line":"  * provide their own IP"},{"line_number":75,"context_line":"  * provide their own inventory/lookup to fetch data from"},{"line_number":76,"context_line":"    their IPAM."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"  With the generation of IPs outside the scope of the inventory,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_8bf6cf8e","line":75,"range":{"start_line":75,"start_character":22,"end_line":75,"end_character":31},"updated":"2018-04-13 10:45:46.000000000","message":"dynamic inventory script or use a lookup","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  With the generation of IPs outside the scope of the inventory,"},{"line_number":79,"context_line":"  we could simplify the dynamic inventory further."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* For me, the groups like haproxy, haproxy_all, haproxy_hosts"},{"line_number":82,"context_line":"  or haproxy_containers are all confusing."},{"line_number":83,"context_line":"  And it is not even the hardest component we deploy."},{"line_number":84,"context_line":"  We should just have a single group for it, to prevent mistakes."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_cb0e078b","line":82,"range":{"start_line":81,"start_character":26,"end_line":82,"end_character":41},"updated":"2018-04-13 10:45:46.000000000","message":"They are confusing, but they\u0027re only there due to the function of the dynamic inventory. These can all be consolidated into a single group, but then we\u0027d need to move some functions from the inventory into playbooks.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* For me, the groups like haproxy, haproxy_all, haproxy_hosts"},{"line_number":82,"context_line":"  or haproxy_containers are all confusing."},{"line_number":83,"context_line":"  And it is not even the hardest component we deploy."},{"line_number":84,"context_line":"  We should just have a single group for it, to prevent mistakes."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"So, at first we need to keep the same configuration style"},{"line_number":87,"context_line":"(conf.d/env.d/openstack_user_config). The generated json"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_8b248f0e","line":84,"range":{"start_line":84,"start_character":43,"end_line":84,"end_character":64},"updated":"2018-04-13 10:45:46.000000000","message":"This doesn\u0027t match up to the first part of the sentence. The justification should be to reduce confusion. Mistakes were not mentioned before.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":202,"context_line":"   * All changes in groups now needs proper documentation"},{"line_number":203,"context_line":"   * That\u0027s not enough to come with your own inventory"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"#. Keep the conf.d/env.d, and dynamic inventory script for now."},{"line_number":206,"context_line":"   We use it for generating a json that stays static during the"},{"line_number":207,"context_line":"   lifecycle of the cloud, or until re-generated manually."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"   To make sure deployers don\u0027t misunderstand the \"static\" json"},{"line_number":210,"context_line":"   file or confuse it with the current openstack_inventory.json,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_ab11535f","line":207,"range":{"start_line":205,"start_character":0,"end_line":207,"end_character":58},"updated":"2018-04-13 10:45:46.000000000","message":"Is this","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"3ddda10a304427cd3f7950ec38fe0afae6120514","unresolved":false,"context_lines":[{"line_number":202,"context_line":"   * All changes in groups now needs proper documentation"},{"line_number":203,"context_line":"   * That\u0027s not enough to come with your own inventory"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"#. Keep the conf.d/env.d, and dynamic inventory script for now."},{"line_number":206,"context_line":"   We use it for generating a json that stays static during the"},{"line_number":207,"context_line":"   lifecycle of the cloud, or until re-generated manually."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"   To make sure deployers don\u0027t misunderstand the \"static\" json"},{"line_number":210,"context_line":"   file or confuse it with the current openstack_inventory.json,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_9606f21b","line":207,"range":{"start_line":205,"start_character":0,"end_line":207,"end_character":58},"in_reply_to":"bf659307_ab11535f","updated":"2018-04-13 10:47:20.000000000","message":"Is this saying that we change the dynamic inventory into a script which is executed as a one-off?","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a03ce3e482b1e579c0f057c473ea78f0d5ad19ca","unresolved":false,"context_lines":[{"line_number":228,"context_line":"     change to openstack_inventory.json"},{"line_number":229,"context_line":"   * The inventory_manage script becomes useless"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"#. We provide default child mapping: we create the x_all groups"},{"line_number":232,"context_line":"   in an easy to read .ini file in the openstack-ansible repo."},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"   Positive improvements:"},{"line_number":235,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf659307_4b2757c8","line":232,"range":{"start_line":231,"start_character":0,"end_line":232,"end_character":62},"updated":"2018-04-13 10:45:46.000000000","message":"We don\u0027t need to do item 1 if we have this. Perhaps item 1 should move into this item (or after it) and it could then refer to including the built-in inventory into docs without duplicating it.","commit_id":"0e480f268f515c96191400fa81e21806ac0dd766"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Now that we are using Ansible 2.4, we can:"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* Stack inventories together, and therefore we can split inventories"},{"line_number":65,"context_line":"  into smaller inventories if necessary"},{"line_number":66,"context_line":"* Import, and convert inventories to a more readable format."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"What I am proposing is to use static files for inventory."}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_71d9f31f","line":65,"range":{"start_line":64,"start_character":2,"end_line":65,"end_character":39},"updated":"2018-04-24 12:17:20.000000000","message":"nit: repetition - rephrase suggestion:\n\nStack inventories together, and therefore split them into smaller inventories.","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":149,"context_line":"  It fully depends on the inventory."},{"line_number":150,"context_line":"  Large inventories are more likely to lose performance"},{"line_number":151,"context_line":"  by switching to yaml for the same input."},{"line_number":152,"context_line":"* Cleaning up the inventory have a positive performance impact."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"End user impact"},{"line_number":155,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_7147b3bd","line":152,"range":{"start_line":152,"start_character":18,"end_line":152,"end_character":32},"updated":"2018-04-24 12:17:20.000000000","message":"nit: ... inventory may/will have ...","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"No change for the development of roles or playbooks."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"At the same time we are removing technical debt, we are adding new"},{"line_number":174,"context_line":"technical debt by adding these new tools."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"With the hope this tools would be easier to understand, read, review,"},{"line_number":177,"context_line":"and having more tests, it would overall reduce risks for the project."}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_317cdbea","line":174,"range":{"start_line":173,"start_character":0,"end_line":174,"end_character":41},"updated":"2018-04-24 12:17:20.000000000","message":"nit: I don\u0027t think this sentence adds much value, and its structure is confusing. I think the sentence below says enough.","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":174,"context_line":"technical debt by adding these new tools."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"With the hope this tools would be easier to understand, read, review,"},{"line_number":177,"context_line":"and having more tests, it would overall reduce risks for the project."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Dependencies"},{"line_number":180,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_9170470a","line":177,"range":{"start_line":177,"start_character":23,"end_line":177,"end_character":52},"updated":"2018-04-24 12:17:20.000000000","message":"it would reduce the overall risk","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":191,"context_line":"  evrardjp"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Other contributors:"},{"line_number":194,"context_line":"  None for now."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"Work items"},{"line_number":197,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_714ed3c1","line":194,"updated":"2018-04-24 12:17:20.000000000","message":"I\u0027m happy to help with documentation changes and testing.","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":234,"context_line":"     a part of the deploy. We can add health checks easily."},{"line_number":235,"context_line":"   * Our code run only once, during the generation. Therefore we"},{"line_number":236,"context_line":"     are not vulnerable to issues appearing when running"},{"line_number":237,"context_line":"     multiple ansible simulatenously, or other side effects."},{"line_number":238,"context_line":"   * We keep the container name generation, provider networks,"},{"line_number":239,"context_line":"     and IP assignments for free."},{"line_number":240,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_51c4eff4","line":237,"range":{"start_line":237,"start_character":22,"end_line":237,"end_character":36},"updated":"2018-04-24 12:17:20.000000000","message":"nit: simultaneously","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f5b05366ef816b0ebf71502d9c69e9dce0896645","unresolved":false,"context_lines":[{"line_number":240,"context_line":""},{"line_number":241,"context_line":"   Drawbacks:"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"   * Edition of static file will not be in sync with"},{"line_number":244,"context_line":"     conf.d/env.d, but that was already the case with a manual"},{"line_number":245,"context_line":"     change to openstack_inventory.json"},{"line_number":246,"context_line":"   * The inventory_manage script becomes useless"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f6a8fd7_f1b6638a","line":243,"range":{"start_line":243,"start_character":5,"end_line":243,"end_character":12},"updated":"2018-04-24 12:17:20.000000000","message":"rephrase: Hand edits of the static file...","commit_id":"88fe4478a802718e1995a4f75ab9cb6c900ca34b"}]}
