)]}'
{"specs/mitaka-template.rst":[{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"0074936bc62a4be4b11adca3ff5cee2720f57285","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Example Spec - The title of your blueprint"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Include the URL of your launchpad blueprint:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"https://blueprints.launchpad.net/tripleo"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a1a9d01_07037d10","line":11,"updated":"2015-09-28 15:30:16.000000000","message":"Note if we land https://review.openstack.org/#/c/221810/ then the mitaka specific spec template won\u0027t be needed anymore.","commit_id":"bf0438a0dd4487bfe94912fec9cf5ba9d80c3116"}],"specs/mitaka/tripleo-overcloud-deployment-library.rst":[{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"b3f5b52656f882c46ef383aa7ca17e9e6062af35","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"However, from a UI perspective, although the workflow is straightforward, it is  not simple.  Here are some of the complications that arise:"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":" * Some of the business logic in this workflow is not currently supported by a REST API, makiing it difficult for a UI to duplicate - especially if that UI is not Python-based."},{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."},{"line_number":23,"context_line":" * The CLI approach allows open-ended flexibility (the CLI doesn\u0027t care where the templates come from) that is detrimental for a UI (the UI user doesn\u0027t care where the templates are stored, but consistency in approach is desirable to prevent divergence among UIs)."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_bae9841c","line":21,"updated":"2015-09-03 11:55:30.000000000","message":"s/makiing/making/","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"31bc1a58b457d5b9c763174394a95f61f06f0818","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"However, from a UI perspective, although the workflow is straightforward, it is  not simple.  Here are some of the complications that arise:"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":" * Some of the business logic in this workflow is not currently supported by a REST API, makiing it difficult for a UI to duplicate - especially if that UI is not Python-based."},{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."},{"line_number":23,"context_line":" * The CLI approach allows open-ended flexibility (the CLI doesn\u0027t care where the templates come from) that is detrimental for a UI (the UI user doesn\u0027t care where the templates are stored, but consistency in approach is desirable to prevent divergence among UIs)."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_f5038fb6","line":21,"in_reply_to":"da20952f_bae9841c","updated":"2015-09-03 12:18:20.000000000","message":"Thanks!  I\u0027ll fix this now.","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"b3f5b52656f882c46ef383aa7ca17e9e6062af35","unresolved":false,"context_lines":[{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."},{"line_number":23,"context_line":" * The CLI approach allows open-ended flexibility (the CLI doesn\u0027t care where the templates come from) that is detrimental for a UI (the UI user doesn\u0027t care where the templates are stored, but consistency in approach is desirable to prevent divergence among UIs)."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"There is a need to create common code that accomodates the flexibility of the CLI with the ease-of-use needs of UI consumers."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed Change"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_5ad94882","line":25,"updated":"2015-09-03 11:55:30.000000000","message":"s/accomodates/accommodates/","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"31bc1a58b457d5b9c763174394a95f61f06f0818","unresolved":false,"context_lines":[{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."},{"line_number":23,"context_line":" * The CLI approach allows open-ended flexibility (the CLI doesn\u0027t care where the templates come from) that is detrimental for a UI (the UI user doesn\u0027t care where the templates are stored, but consistency in approach is desirable to prevent divergence among UIs)."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"There is a need to create common code that accomodates the flexibility of the CLI with the ease-of-use needs of UI consumers."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed Change"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_b52c374b","line":25,"in_reply_to":"da20952f_5ad94882","updated":"2015-09-03 12:18:20.000000000","message":"Ditto.","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"7102560f85d8814a4415bdbe7979c413c8a244d4","unresolved":false,"context_lines":[{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The tripleo-common library functions needed are:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_9f2cb24b","line":48,"updated":"2015-09-03 11:34:44.000000000","message":"Would be cool to get advanced profile matching somewhere around this as well. It\u0027s going to be pretty simple code that will take all ironic nodes, a plan (?) or something like eDeploy state file, and will go through nodes, assigning profiles.","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"31bc1a58b457d5b9c763174394a95f61f06f0818","unresolved":false,"context_lines":[{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The tripleo-common library functions needed are:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."}],"source_content_type":"text/x-rst","patch_set":4,"id":"da20952f_55f59bc8","line":48,"in_reply_to":"da20952f_9f2cb24b","updated":"2015-09-03 12:18:20.000000000","message":"You\u0027re right; it\u0027s something that we\u0027d like to add, but we thought that it might make sense to separate that work into a later phase.","commit_id":"0ab92bc6527376a7102a5810f40795db047d0e02"},{"author":{"_account_id":8532,"name":"Ryan Brady","email":"rbrady@redhat.com","username":"rbrady"},"change_message_id":"187e088ae16454247da6065f32acbad0719e4155","unresolved":false,"context_lines":[{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":" * **Deployment Options**"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"   * **get_deployment_options(plan_name)**: Determine available deployment options by retrieving plan_name\u0027s templates from Swift and using the proposed Heat resource-capabilities API (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)."}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_94181086","line":52,"updated":"2015-09-03 14:33:48.000000000","message":"We have a create but no edit or delete.  Can we add a delete here?\n\n * **delete_plan(plan_name)**: Deletes a plan by deleting a Swift container matching plan_name.","commit_id":"763b4a08908b08e6df9c06db5041a3a3549944bd"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"a174e68c97e100044bc33bcb8812b26c19fc3b6b","unresolved":false,"context_lines":[{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":" * **Deployment Options**"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"   * **get_deployment_options(plan_name)**: Determine available deployment options by retrieving plan_name\u0027s templates from Swift and using the proposed Heat resource-capabilities API (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)."}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_fe07de1a","line":52,"in_reply_to":"da20952f_94181086","updated":"2015-09-03 17:55:14.000000000","message":"Sure, I\u0027ll add that in.","commit_id":"763b4a08908b08e6df9c06db5041a3a3549944bd"},{"author":{"_account_id":8532,"name":"Ryan Brady","email":"rbrady@redhat.com","username":"rbrady"},"change_message_id":"187e088ae16454247da6065f32acbad0719e4155","unresolved":false,"context_lines":[{"line_number":89,"context_line":"Performance Impact"},{"line_number":90,"context_line":"------------------"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"None"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other Deployer Impact"},{"line_number":95,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_abbcd46c","line":92,"updated":"2015-09-03 14:33:48.000000000","message":"Do we want to note here that we expect a positive performance impact? Do we want to note that performance is going to be treated as a feature and not an afterthought?","commit_id":"763b4a08908b08e6df9c06db5041a3a3549944bd"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"a174e68c97e100044bc33bcb8812b26c19fc3b6b","unresolved":false,"context_lines":[{"line_number":89,"context_line":"Performance Impact"},{"line_number":90,"context_line":"------------------"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"None"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other Deployer Impact"},{"line_number":95,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_1920ac9a","line":92,"in_reply_to":"da20952f_abbcd46c","updated":"2015-09-03 17:55:14.000000000","message":"I\u0027m not sure there will be a positive performance impact, as we\u0027re just trying to formalize various tripleo deployment procedures within a library.","commit_id":"763b4a08908b08e6df9c06db5041a3a3549944bd"},{"author":{"_account_id":8532,"name":"Ryan Brady","email":"rbrady@redhat.com","username":"rbrady"},"change_message_id":"5639ca35cda4ea2d90a12b5a16d31ea909da2499","unresolved":false,"context_lines":[{"line_number":90,"context_line":"------------------"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"None"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other Deployer Impact"},{"line_number":95,"context_line":"---------------------"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_77ea0311","line":93,"updated":"2015-09-04 01:28:29.000000000","message":"Fair enough, while I can add a more detailed performance spec later - I think it\u0027s imperative we treat performance as a feature upstream and ensure we\u0027re profiling / capturing performance metrics as early on in the development process as we can before we add enough code it becomes expensive or intensive to fix.  A previous complaint about the current tuskar-ui was how slow it was.","commit_id":"763b4a08908b08e6df9c06db5041a3a3549944bd"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Library support for TripleO Overcloud Deployment"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"We need a TripleO library that supports the overcloud deployment workflow."},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Problem Description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_791ad570","line":4,"updated":"2015-09-04 20:17:38.000000000","message":"please wrap all the lines at 80 chars, it makes it much easier to read and review :)","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Library support for TripleO Overcloud Deployment"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"We need a TripleO library that supports the overcloud deployment workflow."},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Problem Description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_508c40d6","line":4,"in_reply_to":"da20952f_791ad570","updated":"2015-09-08 04:22:53.000000000","message":"Whoops, fixed.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This workflow is already supported by the CLI."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"However, from a UI perspective, although the workflow is straightforward, it is  not simple.  Here are some of the complications that arise:"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":" * Some of the business logic in this workflow is not currently supported by a REST API, making it difficult for a UI to duplicate - especially if that UI is not Python-based."},{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_99c24952","line":19,"updated":"2015-09-04 20:17:38.000000000","message":"I was having trouble following your points a bit until I realized that (I think) you\u0027re referring to the UI as a *G*UI.\n\nIs that correct?\n\nTechnically, a CLI is also a UI (and is often referred to as such), and a CLI is one implementation of a UI flow.\n\nSo, at first I thought you were talking about:\n\n* a UI workflow\n* a CLI implementation of that workflow\n* some other implementation of that workflow (GUI)\n\nBut, I think you\u0027re actually talking about CLI and GUI here, both implementing the \"overcloud deployment workflow\".\n\ncan you add some clarity around this point?","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This workflow is already supported by the CLI."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"However, from a UI perspective, although the workflow is straightforward, it is  not simple.  Here are some of the complications that arise:"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":" * Some of the business logic in this workflow is not currently supported by a REST API, making it difficult for a UI to duplicate - especially if that UI is not Python-based."},{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_90adf832","line":19,"in_reply_to":"da20952f_07dbfe4f","updated":"2015-09-08 04:22:53.000000000","message":"Whoops, good point.  I\u0027ve updated references to \u0027UI\u0027 with \u0027GUI\u0027.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":11997,"name":"Lennart Regebro","email":"lregebro@redhat.com","username":"lregebro"},"change_message_id":"224ca6659a871bc52d70be6c806fa96f817c5094","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This workflow is already supported by the CLI."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"However, from a UI perspective, although the workflow is straightforward, it is  not simple.  Here are some of the complications that arise:"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":" * Some of the business logic in this workflow is not currently supported by a REST API, making it difficult for a UI to duplicate - especially if that UI is not Python-based."},{"line_number":22,"context_line":" * If the TripleO overcloud deployment workflow changes, it is easy for the CLI and UI approach to end up on divergent paths - a dangerous situation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_07dbfe4f","line":19,"in_reply_to":"da20952f_99c24952","updated":"2015-09-07 14:01:35.000000000","message":"Yeah, let\u0027s call the web interface \"GUI\" (or possibly wen interface, but it\u0027s too long), and use \"UI\" for any implementation.\n\nIt\u0027s notable in this section you get the feeling that the CLI would not have the problems with the workflow that a GUI would have, but indeed the problems are similar. \n\nThe CLI should become a consumer of the common API, just like any UI.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"In order to solve this problem, we propose the following:"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  * Encapsulate the business logic involved in the overcloud deploy workflow within the tripleo-common library."},{"line_number":33,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from UI consumers - for example, template storage."},{"line_number":34,"context_line":"  * Create a TripleO REST API with CORS support to allow UIs to easily access this workflow logic."},{"line_number":35,"context_line":"  * Update the CLI to use these APIs to prevent divergence with UIs."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_3983fd57","line":32,"updated":"2015-09-04 20:17:38.000000000","message":"*overcloud deployment workflow","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"In order to solve this problem, we propose the following:"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  * Encapsulate the business logic involved in the overcloud deploy workflow within the tripleo-common library."},{"line_number":33,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from UI consumers - for example, template storage."},{"line_number":34,"context_line":"  * Create a TripleO REST API with CORS support to allow UIs to easily access this workflow logic."},{"line_number":35,"context_line":"  * Update the CLI to use these APIs to prevent divergence with UIs."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_106808f4","line":32,"in_reply_to":"da20952f_3983fd57","updated":"2015-09-08 04:22:53.000000000","message":"Done","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  * Encapsulate the business logic involved in the overcloud deploy workflow within the tripleo-common library."},{"line_number":33,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from UI consumers - for example, template storage."},{"line_number":34,"context_line":"  * Create a TripleO REST API with CORS support to allow UIs to easily access this workflow logic."},{"line_number":35,"context_line":"  * Update the CLI to use these APIs to prevent divergence with UIs."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_f9c6e59a","line":34,"updated":"2015-09-04 20:17:38.000000000","message":"up until this point, it was a little unclear if you were proposing just a library or an API.\n\nI think this makes it clear that you are proposing an API.\n\nplease clear up that point, since the spec is titled with \"library\" as is the header.\n\nAn API might be contentious as well, so we could start with the library, and do the API in a 2nd spec, but feel free to leave this as-is for now to see what others think","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  * Encapsulate the business logic involved in the overcloud deploy workflow within the tripleo-common library."},{"line_number":33,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from UI consumers - for example, template storage."},{"line_number":34,"context_line":"  * Create a TripleO REST API with CORS support to allow UIs to easily access this workflow logic."},{"line_number":35,"context_line":"  * Update the CLI to use these APIs to prevent divergence with UIs."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_907418cf","line":34,"in_reply_to":"da20952f_f9c6e59a","updated":"2015-09-08 04:22:53.000000000","message":"I\u0027ve added in \u0027API\u0027 to the title.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_39de9d11","line":39,"updated":"2015-09-04 20:17:38.000000000","message":"Can you not call this a \"plan\", so as to avoid confusion with the previous tuskar plan?\n\nUnless your intent is to indeed redefine \"plan\" going forward. In which case, I think you could clear up the confusion by explicitly stating it\u0027s new definition.\n\nIf that wasn\u0027t your intent, then let\u0027s just come up with a new name for this copy of the templates. You could just call them \"deployment templates\"","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_5051a02e","line":39,"in_reply_to":"da20952f_39de9d11","updated":"2015-09-08 04:22:53.000000000","message":"I\u0027ve added a definition of \u0027plan\u0027 above.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_994329af","line":40,"updated":"2015-09-04 20:17:38.000000000","message":"\"options\" is too ambiguous here IMO.\n\nHow about something like:\n\n\"The user defines values for the template resource types given by...\"\n\nTry to reuse the terms from\nhttp://docs.openstack.org/developer/heat/template_guide/composition.html\nso it\u0027s clear what is being talked about.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":37,"context_line":"The first two points deserve further explanation.  First, let us lay out the proposed UI workflow:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_04044912","line":40,"in_reply_to":"da20952f_994329af","updated":"2015-09-08 04:22:53.000000000","message":"Done","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_991a49c5","line":41,"updated":"2015-09-04 20:17:38.000000000","message":"Roles, as the tuskar concept, no longer exist, but the tripleo-heat-templates are still structured around roles, which I think is how most people refer to them (even without tuskar).\n\n\nI would also add a list item here saying the above 2 items can be repeated multiple times. So, maybe make this a numbered list so you can refer to the numbers.\n\nGiven that the resource definitions and parameter values can be done several times, I\u0027d talk about the versioning aspect that we want to achieve as well. As the ability to rollback/forward is part of the workflow.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":" * A deployment plan is initially created by pushing the entire tripleo-heat-template tree into a data store."},{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_04a0c9f2","line":41,"in_reply_to":"da20952f_991a49c5","updated":"2015-09-08 04:22:53.000000000","message":"I\u0027ve added in the \u0027repeat\u0027 step you mention - but left out the versioning aspect, as I think that\u0027s a step beyond what we want to accomplish with this particular spec.  Let me know if you think that\u0027s wrong.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_59f4b159","line":43,"updated":"2015-09-04 20:17:38.000000000","message":"talking about endpoints initialization is probably not needed here. especially since we\u0027re considering moving that piece to the puppet manifests directly.\n\nI would just say \"any needed post deployment configuration is completed\".\n\nAnd, that\u0027s an important point to maybe draw extra attention to: whatever post-deploy config is needed, will be part of this library.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":40,"context_line":" * The user specifies deployment options given by Heat template capabilities.  This results in an updated resource registry in an environment file saved to the data store."},{"line_number":41,"context_line":" * Now that the deployment options are specified, the user can configure deployment parameters given by Heat.  Edited parameters are updated and an updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist as an independently modeled concept, but can still be derived from available Heat parameters."},{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_e4835554","line":43,"in_reply_to":"da20952f_59f4b159","updated":"2015-09-08 04:22:53.000000000","message":"Done","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The tripleo-common library functions needed are:"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_fc401361","line":45,"updated":"2015-09-04 20:17:38.000000000","message":"Why is swift the best choice here? Is it just the reasoning to \"use openstack\"?\n\nI actually think that git might make bootstrapping this effort much easier to get going.\n\nAnyway, I think swift adds some complication (dependencies, credentials, tenants, etc), that maybe we could do without","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":42,"context_line":" * With configuration complete, the user triggers the deployment of the overcloud.  The templates and environment file are taken from the data store and sent to Heat."},{"line_number":43,"context_line":" * Once overcloud deployment is complete, the overcloud endpoints are initialized."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the template data store.  If a UI wishes to allow users to edit these templates (and store versions in, say, git), they can still do so; however it is up to the UI to ensure that these templates end up in the correct location in Swift."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The tripleo-common library functions needed are:"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_44b7a120","line":45,"in_reply_to":"da20952f_fc401361","updated":"2015-09-08 04:22:53.000000000","message":"\u0027Use OpenStack\u0027 is part of it, but also because in my head it feels like git is an extra dependency in a way that Swift is not (since it\u0027s part of OpenStack and installed with the undercloud).","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."},{"line_number":52,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container matching plan_name."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":" * **Deployment Options**"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_2700b400","line":52,"updated":"2015-09-04 20:17:38.000000000","message":"ok, so now it\u0027s clear you did intend to call it a \"plan\" :).\n\nI guess what I\u0027m asking is....how is a plan different from a cp\u0027d directory of templates? I think it might be confusing.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":49,"context_line":" * **Plan Creation**"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift container matching plan_name, and placing the tripleo-heat-templates and an environment file into it."},{"line_number":52,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container matching plan_name."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":" * **Deployment Options**"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_249dcd65","line":52,"in_reply_to":"da20952f_2700b400","updated":"2015-09-08 04:22:53.000000000","message":"I\u0027ve added a definition of \u0027plan\u0027, let me know if you think it\u0027s insufficient.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"7a936cbe8fd01a299f7ca3349deaa518fec0a029","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":" * **Deployment**"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"   * **deploy_plan(plan_name)**: Retrieve plan_name\u0027s templates and environment file from Swift and use them in a Heat API call to create the overcloud stack.  Perform any needed pre-processing of the template."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":" * **Post-Deploy**"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_c76698ec","line":67,"updated":"2015-09-04 20:17:38.000000000","message":"what would be an example of pre-processing?\n\nsomething like generating passwords and saving those back to an environment file?\n\ncan you be more specific? I\u0027m not clear how this step fits in.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"de1e7a04041824a2706d96c77ce2b72512ef1424","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":" * **Deployment**"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"   * **deploy_plan(plan_name)**: Retrieve plan_name\u0027s templates and environment file from Swift and use them in a Heat API call to create the overcloud stack.  Perform any needed pre-processing of the template."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":" * **Post-Deploy**"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da20952f_84ce1958","line":67,"in_reply_to":"da20952f_c76698ec","updated":"2015-09-08 04:22:53.000000000","message":"Added a reference to Heat\u0027s required template file dictionary.","commit_id":"afe0025aafa3b79def77c3fa60d42f9ebb6d9a73"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"cbc17275da55520a897a9c13447ae02c5d97f420","unresolved":false,"context_lines":[{"line_number":71,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the"},{"line_number":72,"context_line":"template data store.  If a GUI wishes to allow users to edit these templates (and"},{"line_number":73,"context_line":"store versions in, say, git), they can still do so; however it is up to the GUI"},{"line_number":74,"context_line":"to ensure that these templates end up in the correct location in Swift."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"The tripleo-common library functions needed are:"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_9a440eb8","line":74,"updated":"2015-09-08 20:32:53.000000000","message":"I don\u0027t think I agree with this last bit.  The GUI should not be talking directly to swift at all, that should be abstracted away behind the API so we can swap out swift for a Git repo or what-have-you.\n\nI don\u0027t want to bang that drum too much, but I think it\u0027s crucial that people can version control their templates so that if they make a change and it goes bad, they can just revert to a known-good configuration.  To enable that, it seems to me that we need to decouple the template storage from the CLI/GUI so that the storage backend is just a setting in the TripleO service\u0027s configuration file.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e4b333d7ff29441e3f2478365c5d4d31adf7557f","unresolved":false,"context_lines":[{"line_number":71,"context_line":"In order to fulfill this workflow, we propose to promote the use of Swift as the"},{"line_number":72,"context_line":"template data store.  If a GUI wishes to allow users to edit these templates (and"},{"line_number":73,"context_line":"store versions in, say, git), they can still do so; however it is up to the GUI"},{"line_number":74,"context_line":"to ensure that these templates end up in the correct location in Swift."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"The tripleo-common library functions needed are:"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_b771df46","line":74,"in_reply_to":"da20952f_9a440eb8","updated":"2015-09-09 04:36:16.000000000","message":"I completely misspoke here.  The intention is for the GUI to *never* talk directly to Swift; as you say, that should be an abstraction that may later be swapped out.\n\nMy explanation here was an attempt to explain that if it\u0027s accepted that we abstract the data store to be Swift, people can still use something like git; they just have to take responsibility for sticking things in Swift.\n\nBut I think your explanation - that we\u0027ll abstract away the Swift usage, and accommodate for future development switching the data store - is the better text to use.  I\u0027ll update.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"cbc17275da55520a897a9c13447ae02c5d97f420","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Security Impact"},{"line_number":136,"context_line":"---------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None, as we are simply increasing the exposure of the business logic that TripleO"},{"line_number":139,"context_line":"already uses."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Other End User Impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_bf6b041f","line":138,"updated":"2015-09-08 20:32:53.000000000","message":"If we do indeed add a REST API, then I disagree with this.  That increases our attack surface significantly, and we have to start caring a lot more about security vulnerabilities in our code and the code we consume.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e4b333d7ff29441e3f2478365c5d4d31adf7557f","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Security Impact"},{"line_number":136,"context_line":"---------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None, as we are simply increasing the exposure of the business logic that TripleO"},{"line_number":139,"context_line":"already uses."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Other End User Impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_57b403d3","line":138,"in_reply_to":"da20952f_bf6b041f","updated":"2015-09-09 04:36:16.000000000","message":"From my point of view we\u0027re not really doing anything that couldn\u0027t already be done through the proper sequencing of non-TripleO APIs.  I guess it\u0027s a fair point that we\u0027re exposing that workflow quite a bit, so I\u0027ll add some text here around that.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"cbc17275da55520a897a9c13447ae02c5d97f420","unresolved":false,"context_lines":[{"line_number":181,"context_line":" * Develop the tripleo-common library to provide the functionality described"},{"line_number":182,"context_line":"   above."},{"line_number":183,"context_line":" * Create a corresponding TripleO REST API."},{"line_number":184,"context_line":" * Update the CLI to use the new API."},{"line_number":185,"context_line":" * Add the appropriate tests to the TripleO CI."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_3fba9472","line":184,"updated":"2015-09-08 20:32:53.000000000","message":"For the sake of everyone\u0027s sanity, can we make this step 2?  So essentially make this look like:\n\n* Copy code from CLI to tripleo-common\n* Have CLI use tripleo-common Python API directly (which implies removing the duplicated code from the CLI)\n* REST API\n* Have the CLI stop calling Python code directly and use the REST API instead\n\nI\u0027m just concerned that if we try to do the whole thing in one big shot we\u0027re going to get into a situation where we\u0027re doing dual maintenance on the CLI and the new API for a long time.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e4b333d7ff29441e3f2478365c5d4d31adf7557f","unresolved":false,"context_lines":[{"line_number":181,"context_line":" * Develop the tripleo-common library to provide the functionality described"},{"line_number":182,"context_line":"   above."},{"line_number":183,"context_line":" * Create a corresponding TripleO REST API."},{"line_number":184,"context_line":" * Update the CLI to use the new API."},{"line_number":185,"context_line":" * Add the appropriate tests to the TripleO CI."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_d7c81359","line":184,"in_reply_to":"da20952f_3fba9472","updated":"2015-09-09 04:36:16.000000000","message":"Fair enough - I\u0027ll update.","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"cbc17275da55520a897a9c13447ae02c5d97f420","unresolved":false,"context_lines":[{"line_number":204,"context_line":""},{"line_number":205,"context_line":"The new REST API will have to be well-documented and meet OpenStack standards."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"References"},{"line_number":208,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_ff389cf0","line":207,"updated":"2015-09-08 20:32:53.000000000","message":"Might be worth dropping a link to the api-wg here for reference: https://github.com/openstack/api-wg","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e4b333d7ff29441e3f2478365c5d4d31adf7557f","unresolved":false,"context_lines":[{"line_number":204,"context_line":""},{"line_number":205,"context_line":"The new REST API will have to be well-documented and meet OpenStack standards."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"References"},{"line_number":208,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da20952f_d7f6d38f","line":207,"in_reply_to":"da20952f_ff389cf0","updated":"2015-09-09 04:36:16.000000000","message":"Done","commit_id":"fdeffaf769878c3f385559ccee91bc3c57c0b90b"},{"author":{"_account_id":17888,"name":"Florian Fuchs","email":"f@florianfuchs.com","username":"flfuchs"},"change_message_id":"0ec02c17e4a9bb8636a8ddaccc20c616aff04e3d","unresolved":false,"context_lines":[{"line_number":127,"context_line":"APIs\".  This means that GUIs should, in theory, be able to duplicate overcloud"},{"line_number":128,"context_line":"deployment simply by using available OpenStack API calls."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"In practice this has proven not to be case, resulting in GUIs lagging behind CLI"},{"line_number":131,"context_line":"deployment capabilities.  In addition the usage of OpenStack APIs has proven to"},{"line_number":132,"context_line":"be highly specific.  TripleO may be far more appealing if it shields this inner"},{"line_number":133,"context_line":"complexity in favor of presenting end users with a simplified interface."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da20952f_58abc7d6","line":130,"updated":"2015-09-09 10:44:11.000000000","message":"*not to be the case","commit_id":"7f74d052d8fd6a9faac534d25acd48a3d139f64f"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"1106c762140b7a04f5e97d2446367003b2c7f31e","unresolved":false,"context_lines":[{"line_number":127,"context_line":"APIs\".  This means that GUIs should, in theory, be able to duplicate overcloud"},{"line_number":128,"context_line":"deployment simply by using available OpenStack API calls."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"In practice this has proven not to be case, resulting in GUIs lagging behind CLI"},{"line_number":131,"context_line":"deployment capabilities.  In addition the usage of OpenStack APIs has proven to"},{"line_number":132,"context_line":"be highly specific.  TripleO may be far more appealing if it shields this inner"},{"line_number":133,"context_line":"complexity in favor of presenting end users with a simplified interface."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da20952f_a7a2f698","line":130,"in_reply_to":"da20952f_58abc7d6","updated":"2015-09-09 14:58:38.000000000","message":"Whoops - fixed.","commit_id":"7f74d052d8fd6a9faac534d25acd48a3d139f64f"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"60fe800ae2886625010c938b73419467497b6f48","unresolved":false,"context_lines":[{"line_number":161,"context_line":"Right now, changing the overcloud deployment workflow results in stress due to"},{"line_number":162,"context_line":"the need to individually update both the CLI and GUI code.  Converging the two"},{"line_number":163,"context_line":"makes this a far easier proposition."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Implementation"},{"line_number":166,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_6467e6ea","line":164,"updated":"2015-09-10 00:35:13.000000000","message":"please add a note here about developers being responsible for keeping CI updated with the current changes, and helping to unbreak/unwedge CI as needed\n\nthis takes a non-trivial amount of time, some may even say significant, so I think it\u0027s important to call attention to this and make sure everyone is on board with committing the time necessary to make this new code a first class citizen in CI. And that also means helping out with CI issues that could be unrelated to this new code, since a working CI environment will be necessary to iterate on the new code.","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"27a93a205b63db8f22601dfce72c2aa2d2e313ca","unresolved":false,"context_lines":[{"line_number":161,"context_line":"Right now, changing the overcloud deployment workflow results in stress due to"},{"line_number":162,"context_line":"the need to individually update both the CLI and GUI code.  Converging the two"},{"line_number":163,"context_line":"makes this a far easier proposition."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Implementation"},{"line_number":166,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_514861cc","line":164,"in_reply_to":"da20952f_6467e6ea","updated":"2015-09-10 04:01:53.000000000","message":"Done","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"60fe800ae2886625010c938b73419467497b6f48","unresolved":false,"context_lines":[{"line_number":184,"context_line":" * Update the CLI to use the tripleo-common library."},{"line_number":185,"context_line":" * Create a corresponding TripleO REST API."},{"line_number":186,"context_line":" * Update the CLI to use the new API."},{"line_number":187,"context_line":" * Add the appropriate tests to the TripleO CI."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"Dependencies"},{"line_number":190,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_04bcead9","line":187,"updated":"2015-09-10 00:35:13.000000000","message":"as i interpret how the work will happen based on the spec, CI should be testing the proposed changes and considered voting on all the patches that implement this spec from day 1, since CI already uses the CLI. So, as code is ported into tripleo-common from the CLI, it must pass CI.\n\nIf there are any code changes that require CI changes, there must be corresponding CI updates as well.\n\nLater, as the CLI is ported to use the API, CI will be testing those changes as well.\n\nI just wanted to make sure everyone was on the same page on this point, so if that\u0027s not the intent, please clarify :).","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"27a93a205b63db8f22601dfce72c2aa2d2e313ca","unresolved":false,"context_lines":[{"line_number":184,"context_line":" * Update the CLI to use the tripleo-common library."},{"line_number":185,"context_line":" * Create a corresponding TripleO REST API."},{"line_number":186,"context_line":" * Update the CLI to use the new API."},{"line_number":187,"context_line":" * Add the appropriate tests to the TripleO CI."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"Dependencies"},{"line_number":190,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_f10df58f","line":187,"in_reply_to":"da20952f_04bcead9","updated":"2015-09-10 04:01:53.000000000","message":"That\u0027s definitely fair.  I\u0027ve separated out the last \u0027CI\u0027 line and turned it into a more global statement.","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"60fe800ae2886625010c938b73419467497b6f48","unresolved":false,"context_lines":[{"line_number":204,"context_line":"Documentation Impact"},{"line_number":205,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The new REST API will have to be well-documented and meet OpenStack standards."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"References"},{"line_number":210,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_24e6ce44","line":207,"updated":"2015-09-10 00:35:13.000000000","message":"In addition to any published docs from the tripleo-common repository (or new repositories), there will likely be updates needed for the tripleo-docs repo as well.","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"27a93a205b63db8f22601dfce72c2aa2d2e313ca","unresolved":false,"context_lines":[{"line_number":204,"context_line":"Documentation Impact"},{"line_number":205,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The new REST API will have to be well-documented and meet OpenStack standards."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"References"},{"line_number":210,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_51fb8147","line":207,"in_reply_to":"da20952f_24e6ce44","updated":"2015-09-10 04:01:53.000000000","message":"Done","commit_id":"730758ac3ce2f0cc3019e05e92bb527180fe082e"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":81,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":82,"context_line":"     environment file into it."},{"line_number":83,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":84,"context_line":"     matching plan_name."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_e51c0bc4","line":82,"updated":"2015-09-11 14:45:24.000000000","message":"The only gap I see here is if the templates aren\u0027t available at create time or if they are updated. Let me explain each:\n\n- We can probably make due with saying you need all of the templates at creation time to start with. But keep in mind the case of how a third party would add in their stuff. They\u0027ll have to tie into this creation step rather than having a later step (thinking of more of a plugin-like packaging there). Depending on where in the installation process/workflow the UI creates the plan, this could be tricky.\n\n- What do we do when we change the templates but have an existing plan? This is basically any sort of upgrade scenario, where you don\u0027t want to tear down the entire cloud. That brings in difficulties around how to track if those changes have been made live, resolving the differences in the environment file needs against the existing environment file, etc.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"ccbd0f1c195363b569da986df8b7ae34336d55d8","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":81,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":82,"context_line":"     environment file into it."},{"line_number":83,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":84,"context_line":"     matching plan_name."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_ce5f9e73","line":82,"in_reply_to":"da20952f_ae07cf6e","updated":"2015-09-11 19:06:43.000000000","message":"I don\u0027t think expecting the templates to be available at create time is terrible, given that\u0027s how it is now; 3rd parties simply have to create a new plan.  I\u0027m aiming for feature parity with this spec, with added functionality coming later.\n\nThe update issue is trickier.  This isn\u0027t something that the Tuskar-UI supports right now, so I was hoping to delay that work for later.  Would it be sufficient to specify that we\u0027d create Swift containers with the object versioning flag on for the future?","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"af347bdacd486953cc146f0aaa10c3479f29cb5e","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":81,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":82,"context_line":"     environment file into it."},{"line_number":83,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":84,"context_line":"     matching plan_name."},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_ae07cf6e","line":82,"in_reply_to":"da20952f_e51c0bc4","updated":"2015-09-11 16:27:12.000000000","message":"Hmm, fair point.  We are certainly going to need an update_plan function to update a plan to newer heat templates.  I think that takes care of the third-party integration problem too.\n\nI guess this kind of goes back to my original point that Git should be the production backend - in that case you could have updated the templates in Git manually, but it would be way better to have that abstracted behind the API.  And in that case we likely need a rollback_plan to revert to an older revision, although it would have to be optional since I don\u0027t think we want to implement version control via Swift containers.\n\nIn general I think that these sorts of changes should be additive, which makes it relatively easy to update the environment file for new templates.  In the case of a parameter deletion (which we should do as little as possible anyway, and only after a deprecation period), we can either just remove the obsolete params, or notify the user about them so they can remove them manually.\n\nTangent: We really need a deprecation mechanism for Heat templates.  Something like the oslo.config deprecation stuff.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":92,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":93,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":94,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":95,"context_line":"     Then update the environment file in Swift."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":" * **Deployment Configuration**"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_05f6df5c","line":95,"updated":"2015-09-11 14:45:24.000000000","message":"There\u0027s a gap somewhere between this and updating the parameters, assuming we\u0027re going to allow multiple passes through this workflow (or even the ability to go back to a step and change your mind).\n\nIf I previously selected type A which then later caused me to set a value for X and Y in the environment (in update_deployment_parameters), what happens when I go back to this step and select type B (which only requires value Z)? When are X and Y deleted from the environment file?","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"af347bdacd486953cc146f0aaa10c3479f29cb5e","unresolved":false,"context_lines":[{"line_number":92,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":93,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":94,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":95,"context_line":"     Then update the environment file in Swift."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":" * **Deployment Configuration**"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_8b5bdd53","line":95,"in_reply_to":"da20952f_05f6df5c","updated":"2015-09-11 16:27:12.000000000","message":"Wouldn\u0027t it be the responsibility of the deployer to make sure their parameters are sane?  You can\u0027t leave a top-level parameter unset anyway (it will at least have a default value), so completely eliminating params from the environment file doesn\u0027t seem like something we need to worry too much about (except in the possible case where a param is removed from the templates, but that seems easy enough to handle).\n\nWe can certainly have some validation to say \"if driver A is selected, make sure X and Y have non-default values\", but I think that\u0027s kind of orthogonal to this.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"ccbd0f1c195363b569da986df8b7ae34336d55d8","unresolved":false,"context_lines":[{"line_number":92,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":93,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":94,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":95,"context_line":"     Then update the environment file in Swift."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":" * **Deployment Configuration**"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_315b1f24","line":95,"in_reply_to":"da20952f_8b5bdd53","updated":"2015-09-11 19:06:43.000000000","message":"This seems like a validation issue; perhaps it makes sense to have a validate_plan function that takes the plan from swift and runs Heat validation?  I\u0027ll add that in.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":103,"context_line":"   * **update_deployment_parameters(plan_name, deployment_parameters)**:"},{"line_number":104,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the parameters"},{"line_number":105,"context_line":"     according to the values passed in by deployment_parameters.  Then update the"},{"line_number":106,"context_line":"     environment file in Swift."},{"line_number":107,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles by"},{"line_number":108,"context_line":"     retrieving plan_name\u0027s deployment parameters and deriving available roles"},{"line_number":109,"context_line":"     from parameter names."}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_058d7fd2","line":106,"updated":"2015-09-11 14:45:24.000000000","message":"See my comment above. It\u0027s possible this step could carry in a culling of no longer used parameters.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":106,"context_line":"     environment file in Swift."},{"line_number":107,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles by"},{"line_number":108,"context_line":"     retrieving plan_name\u0027s deployment parameters and deriving available roles"},{"line_number":109,"context_line":"     from parameter names."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":" * **Deployment**"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_4575b7c8","line":109,"updated":"2015-09-11 14:45:24.000000000","message":"Can you provide a more concrete example for how this is done? Perhaps redefining \"role\" in this spec would be useful, since I\u0027m not sure how we\u0027d go from parameter names to a set of all roles.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"af347bdacd486953cc146f0aaa10c3479f29cb5e","unresolved":false,"context_lines":[{"line_number":106,"context_line":"     environment file in Swift."},{"line_number":107,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles by"},{"line_number":108,"context_line":"     retrieving plan_name\u0027s deployment parameters and deriving available roles"},{"line_number":109,"context_line":"     from parameter names."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":" * **Deployment**"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_79af43e3","line":109,"in_reply_to":"da20952f_4575b7c8","updated":"2015-09-11 16:27:12.000000000","message":"I actually don\u0027t think this would be all that difficult.  Right now you would just look at the top-level ResourceGroup types in overcloud_without_mergepy and that gets you your roles.  If (and this is a big \"if\") we\u0027ve been consistent in our parameter naming, you can derive a lot from there.\n\nWorst case is we have to define roles explicitly instead of deriving them though.  I\u0027d call that an implementation detail, as long as we\u0027re all good with the basic idea of roles (and given the way the templates work right now, I think we have to be).\n\nThat said, I think the concept of monolithic roles will hopefully become less and less relevant as we make the Heat templates composable and allow alternate collections of services.  At some point the whole role thing will need a re-think, but I\u0027m not sure we know what that looks like right now.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"ccbd0f1c195363b569da986df8b7ae34336d55d8","unresolved":false,"context_lines":[{"line_number":106,"context_line":"     environment file in Swift."},{"line_number":107,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles by"},{"line_number":108,"context_line":"     retrieving plan_name\u0027s deployment parameters and deriving available roles"},{"line_number":109,"context_line":"     from parameter names."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":" * **Deployment**"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_ee2aa27d","line":109,"in_reply_to":"da20952f_79af43e3","updated":"2015-09-11 19:06:43.000000000","message":"I was actually thinking you\u0027d derive the roles from parameters - ones that have both count and flavor and image, say - since that seems to be what a UI \u0027expects\u0027 from a role.   bnemec\u0027s suggestion makes a lot of sense too.  I\u0027ll mention both possibilities and leave it as an implementation detail... ?","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":113,"context_line":"   * **deploy_plan(plan_name)**: Retrieve plan_name\u0027s templates and environment"},{"line_number":114,"context_line":"     file from Swift and use them in a Heat API call to create the overcloud"},{"line_number":115,"context_line":"     stack.  Perform any needed pre-processing of the templates, such as the"},{"line_number":116,"context_line":"     template file dictionary needed by Heat."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":" * **Post-Deploy**"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_a531330d","line":116,"updated":"2015-09-11 14:45:24.000000000","message":"What\u0027s returned to the user/client, a stack ID and then they poll Heat themselves?","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"af347bdacd486953cc146f0aaa10c3479f29cb5e","unresolved":false,"context_lines":[{"line_number":113,"context_line":"   * **deploy_plan(plan_name)**: Retrieve plan_name\u0027s templates and environment"},{"line_number":114,"context_line":"     file from Swift and use them in a Heat API call to create the overcloud"},{"line_number":115,"context_line":"     stack.  Perform any needed pre-processing of the templates, such as the"},{"line_number":116,"context_line":"     template file dictionary needed by Heat."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":" * **Post-Deploy**"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_d9ca0fa0","line":116,"in_reply_to":"da20952f_a531330d","updated":"2015-09-11 16:27:12.000000000","message":"Seems reasonable to me.  This is a case where client-specific behavior is going to be needed - a GUI deployment tool is probably going to do a different thing than the CLI to monitor deployment progress.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"ccbd0f1c195363b569da986df8b7ae34336d55d8","unresolved":false,"context_lines":[{"line_number":113,"context_line":"   * **deploy_plan(plan_name)**: Retrieve plan_name\u0027s templates and environment"},{"line_number":114,"context_line":"     file from Swift and use them in a Heat API call to create the overcloud"},{"line_number":115,"context_line":"     stack.  Perform any needed pre-processing of the templates, such as the"},{"line_number":116,"context_line":"     template file dictionary needed by Heat."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":" * **Post-Deploy**"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_dab67d88","line":116,"in_reply_to":"da20952f_d9ca0fa0","updated":"2015-09-11 19:06:43.000000000","message":"Yep - that was the plan.  I\u0027ll add some text here.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"a91c2ef9020ade4b19047306f54a4aa19b9bf9df","unresolved":false,"context_lines":[{"line_number":163,"context_line":"makes this a far easier proposition."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Another important item to note is that we will need to keep the TripleO CI"},{"line_number":166,"context_line":"updated with changes, and will be responsible for fixing the CI as needed."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_450a9727","line":166,"updated":"2015-09-11 14:45:24.000000000","message":"You could also echo your sentiment above about non-Python developers needing to replicate all of this logic as well.","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"af347bdacd486953cc146f0aaa10c3479f29cb5e","unresolved":false,"context_lines":[{"line_number":163,"context_line":"makes this a far easier proposition."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Another important item to note is that we will need to keep the TripleO CI"},{"line_number":166,"context_line":"updated with changes, and will be responsible for fixing the CI as needed."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_39c46b5e","line":166,"in_reply_to":"da20952f_450a9727","updated":"2015-09-11 16:27:12.000000000","message":"FWIW, I would actually consider third-party client libraries to be end users, not developers, of this, so I wouldn\u0027t put that here. /splitting hairs :-)","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"ccbd0f1c195363b569da986df8b7ae34336d55d8","unresolved":false,"context_lines":[{"line_number":163,"context_line":"makes this a far easier proposition."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Another important item to note is that we will need to keep the TripleO CI"},{"line_number":166,"context_line":"updated with changes, and will be responsible for fixing the CI as needed."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_fa94a1e8","line":166,"in_reply_to":"da20952f_450a9727","updated":"2015-09-11 19:06:43.000000000","message":"In theory, that\u0027s taken care of once the API portion of this is done (whenever it is), right?","commit_id":"fb9fd1b34c5fa2c05bf6d9f3d9f5930ce69095af"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"1ee895385e81ec99d60a7ffc61c1db1d59b89376","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":77,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"},{"line_number":78,"context_line":"could choose \u0027--templates\u0027 or \u0027--swift\u0027.  However they would both be backed by"},{"line_number":79,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":80,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":81,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_5c9391a3","line":78,"updated":"2015-09-15 16:58:16.000000000","message":"I think this is extremely important to maintain both. One of the pain points of Tuskar is during template development and the need to effectively \"push\" your changes somewhere so they can be used. Keeping the --templates functionality is going to make development significantly more friendly.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"5b8741a9b7c7754cb447d912e8ce8a1627c15379","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":77,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"},{"line_number":78,"context_line":"could choose \u0027--templates\u0027 or \u0027--swift\u0027.  However they would both be backed by"},{"line_number":79,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":80,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":81,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_31e27ea0","line":78,"in_reply_to":"ba15a1d1_5c9391a3","updated":"2015-09-15 19:38:15.000000000","message":"Agreed.  I have no desire to attempt to pull all of TripleO into a Grand Unified Workflow.  I\u0027m just trying to unify the bits that make sense while effectively adding an extension to make TripleO more usable for GUIs.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"1ee895385e81ec99d60a7ffc61c1db1d59b89376","unresolved":false,"context_lines":[{"line_number":91,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":92,"context_line":"     versioning active to accommodate future development."},{"line_number":93,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":94,"context_line":"     matching plan_name."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":" * **Deployment Options**"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_fc770538","line":94,"updated":"2015-09-15 16:58:16.000000000","message":"Since this code will be calling Heat during deploy, should this call be responsible for deleting the Heat stack? If it\u0027s on the user to delete the stack on their own, should this call check to see if the stack is still present before deleting?\n\nI think it\u0027s probably ok to say this call simply deletes the plan from the underlying store (filesystem or Swift) and doesn\u0027t contact Heat at all, but it would be good to explicitly mention that if you do another revision.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"5b8741a9b7c7754cb447d912e8ce8a1627c15379","unresolved":false,"context_lines":[{"line_number":91,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":92,"context_line":"     versioning active to accommodate future development."},{"line_number":93,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":94,"context_line":"     matching plan_name."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":" * **Deployment Options**"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_c303390c","line":94,"in_reply_to":"ba15a1d1_fc770538","updated":"2015-09-15 19:38:15.000000000","message":"I think it\u0027s okay to not play with Heat at all here.  The plan concept is only touched during the --swift workflow; once an overcloud is deployed we\u0027re in \u0027unified\u0027 territory where I\u0027d imagine we\u0027d want overclouds deployed through either --swift or --templates to be managed the same way.  Not touching Heat here helps prevent divergence, I think.\n\nI\u0027ll add some text.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"1ee895385e81ec99d60a7ffc61c1db1d59b89376","unresolved":false,"context_lines":[{"line_number":102,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":103,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":104,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":105,"context_line":"     Then update the environment file in Swift."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":" * **Deployment Configuration**"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_9c3fe9d5","line":105,"updated":"2015-09-15 16:58:16.000000000","message":"There was a comment by Ben that I wanted to reply to, so rather than split it across multiple patchsets, I\u0027ll port it in here:\n\n\"Wouldn\u0027t it be the responsibility of the deployer to make sure their parameters are sane? You can\u0027t leave a top-level parameter unset anyway (it will at least have a default value), so completely eliminating params from the environment file doesn\u0027t seem like something we need to worry too much about \"\n\nIn some cases, yes. For instance, if we swap out a resource type for another and the exact usage of a first class (in other words, explicitly passed through from the top level template) changes, we can say that the user should notice in the update values step that the previously set value doesn\u0027t work anymore.\n\nIt\u0027s possible that the only side effect to this sort of change is cruft. If you previous configured network isolation and then reverted to flat, you\u0027ll still have a bunch of extra values hanging around in parameter_defaults.\n\nSo while something about this still doesn\u0027t sit right with me, I can\u0027t quite put my finger on the exact sorts of weird issues you may run into (other than the one I just mentioned which can be argued as simply cruft).","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"5b8741a9b7c7754cb447d912e8ce8a1627c15379","unresolved":false,"context_lines":[{"line_number":102,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":103,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":104,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":105,"context_line":"     Then update the environment file in Swift."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":" * **Deployment Configuration**"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_23c6b59a","line":105,"in_reply_to":"ba15a1d1_9c3fe9d5","updated":"2015-09-15 19:38:15.000000000","message":"I\u0027ll just note that the validate_plan method below should take care of this scenario.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"1ee895385e81ec99d60a7ffc61c1db1d59b89376","unresolved":false,"context_lines":[{"line_number":117,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles."},{"line_number":118,"context_line":"     This can be done by retrieving plan_name\u0027s deployment parameters and"},{"line_number":119,"context_line":"     deriving available roles from parameter names; or by looking at the top-"},{"line_number":120,"context_line":"     level ResourceGroup types."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":" * **Deployment**"},{"line_number":123,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_7c6f75c5","line":120,"updated":"2015-09-15 16:58:16.000000000","message":"I\u0027ll start by saying it\u0027s possible Ben\u0027s right and we need to punt on re-thinking the concept of roles until more composibility of services is added. So perhaps all of what I\u0027m about to say can be ignored.\n\nI\u0027m still trying to figure out what the purpose of this is. If it\u0027s just to ask for a list of node types that can be created (e.g. anything with a ResourceGroup and count), then I can see the usage here.\n\nIf this is the basis for a parameter organization construct, I think you\u0027re going to find it lacking. Yes, you can parse out the template on your own, find the appropriate resource group, dig into the resource_def, find the properties that are passed to the resource, figure out which top-level parameter is used, then look at the top level parameter definitions for more information on the parameter type, description, and restrictions. I realize I intentionally phrased that to sound kinda painful, but that\u0027s because I think it is. And if that\u0027s not covered by this library/API, then that\u0027s a ton of logic to put on clients.\n\nYou\u0027d also miss any parameters that come from parameter_defaults in this way. The current way Heat is thinking of returning that data is not going to capture the tree of how a template was added. In other words, if compute.yaml eventually leads to a template that uses parameter_defaults, Heat won\u0027t give you the information that they came from a template used by compute.yaml.\n\nWhich goes back to my request for a concrete example. If this is to have the list of 5 roles and say \"How many of each do you want?\" then I\u0027m less concerned, though I don\u0027t see a huge benefit of that over telling the client to parse the template and check the resource groups itself. If it\u0027s intended usage is for the client to achieve a much deeper understanding of the roles and their respective parameters, I think this call is lacking in functionality.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"5b8741a9b7c7754cb447d912e8ce8a1627c15379","unresolved":false,"context_lines":[{"line_number":117,"context_line":"   * **get_deployment_roles(plan_name)**: Determine available deployment roles."},{"line_number":118,"context_line":"     This can be done by retrieving plan_name\u0027s deployment parameters and"},{"line_number":119,"context_line":"     deriving available roles from parameter names; or by looking at the top-"},{"line_number":120,"context_line":"     level ResourceGroup types."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":" * **Deployment**"},{"line_number":123,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_234d553e","line":120,"in_reply_to":"ba15a1d1_7c6f75c5","updated":"2015-09-15 19:38:15.000000000","message":"Right now the intent is (as you say) simply to associate a count and flavor.  There may not be a huge benefit in telling the client to parse the template itself, etc... except that \u0027roles\u0027 are a common expression across multiple GUIs that I\u0027ve seen, and centralizing that sort of logic is exactly what we want to accomplish with this spec.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":8399,"name":"Jay Dobies","email":"jason.dobies@redhat.com","username":"jdob"},"change_message_id":"1ee895385e81ec99d60a7ffc61c1db1d59b89376","unresolved":false,"context_lines":[{"line_number":128,"context_line":"     stack.  Perform any needed pre-processing of the templates, such as the"},{"line_number":129,"context_line":"     template file dictionary needed by Heat.  This function will return a Heat"},{"line_number":130,"context_line":"     stack ID that can be used to monitor the status of the deployment."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":" * **Post-Deploy**"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"   * **postdeploy_plan(plan_name)**: Initialize the API endpoints of the"}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_bf2dff47","line":131,"updated":"2015-09-15 16:58:16.000000000","message":"This feels a bit inconsistent. We\u0027re putting a facade on top of the validate and deploy calls, both of which are basically just passthroughs to Heat, but not on the status calls. I\u0027m guessing that has to do with the fact that data need to be retrieved for the first two, but not for the last one. It feels a bit weird that we hide Heat away for some of the calls, but after that, you\u0027re on your own to call Heat.\n\nThat said, there are a number of status-related calls in Heat (stack-show, event-list, resource-show), so it could get annoying to add a facade on each one of those.\n\n(yes, I just argued my own point)","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"5b8741a9b7c7754cb447d912e8ce8a1627c15379","unresolved":false,"context_lines":[{"line_number":128,"context_line":"     stack.  Perform any needed pre-processing of the templates, such as the"},{"line_number":129,"context_line":"     template file dictionary needed by Heat.  This function will return a Heat"},{"line_number":130,"context_line":"     stack ID that can be used to monitor the status of the deployment."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":" * **Post-Deploy**"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"   * **postdeploy_plan(plan_name)**: Initialize the API endpoints of the"}],"source_content_type":"text/x-rst","patch_set":11,"id":"ba15a1d1_83f781f4","line":131,"in_reply_to":"ba15a1d1_bf2dff47","updated":"2015-09-15 19:38:15.000000000","message":"It is a bit inconsistent, you\u0027re right.  It comes down to practical need: from working with multiple GUIs, I\u0027ve seen that the effective \u0027deploy\u0027 call requires things other than a simple call to Heat (retrieving a \u0027plan\u0027 for example, or creating a template file dictionary).  Status-related calls don\u0027t (currently) have that issue.","commit_id":"f7811476e6d5c9f22febfd6f2ab0d4457a79fcae"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"ca2efe67f643c91a666099a142a37886541ceafa","unresolved":false,"context_lines":[{"line_number":55,"context_line":"1. A user creates a plan by pushing a copy of the Heat deployment templates into"},{"line_number":56,"context_line":"   a data store."},{"line_number":57,"context_line":"2. The user defines values for the template resource types given by Heat"},{"line_number":58,"context_line":"   template capabilities.  This results in an updated resource registry in an"},{"line_number":59,"context_line":"   environment file saved to the data store."},{"line_number":60,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":61,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_da83d654","line":58,"updated":"2015-09-17 07:41:08.000000000","message":"What is meant by \u0027heat template capabilities\u0027 here - is this a feature that allows us to extract/return a list of resource types defined within a set of templates?\n\n[EDIT: thanks see it on line 101 later - maybe also add reference here]","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e531c3136e9c3f850f65b7ac503d9e570807fa01","unresolved":false,"context_lines":[{"line_number":55,"context_line":"1. A user creates a plan by pushing a copy of the Heat deployment templates into"},{"line_number":56,"context_line":"   a data store."},{"line_number":57,"context_line":"2. The user defines values for the template resource types given by Heat"},{"line_number":58,"context_line":"   template capabilities.  This results in an updated resource registry in an"},{"line_number":59,"context_line":"   environment file saved to the data store."},{"line_number":60,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":61,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_cbebe7da","line":58,"in_reply_to":"ba15a1d1_da83d654","updated":"2015-09-17 19:48:02.000000000","message":"Done","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"ca2efe67f643c91a666099a142a37886541ceafa","unresolved":false,"context_lines":[{"line_number":60,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":61,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":62,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"},{"line_number":63,"context_line":"   in Tuskar, but can still be derived from available Heat parameters."},{"line_number":64,"context_line":"4. Steps 2 and 3 can be repeated."},{"line_number":65,"context_line":"5. With configuration complete, the user triggers the deployment of the"},{"line_number":66,"context_line":"   overcloud.  The templates and environment file are taken from the data store"}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_baf5c2ed","line":63,"updated":"2015-09-17 07:41:08.000000000","message":"does this practically mean sthing like \u0027Compute\u0027 being part of a softwareconfig name for example\n\n[EDIT thanks also see this below too :) ]","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e531c3136e9c3f850f65b7ac503d9e570807fa01","unresolved":false,"context_lines":[{"line_number":60,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":61,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":62,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"},{"line_number":63,"context_line":"   in Tuskar, but can still be derived from available Heat parameters."},{"line_number":64,"context_line":"4. Steps 2 and 3 can be repeated."},{"line_number":65,"context_line":"5. With configuration complete, the user triggers the deployment of the"},{"line_number":66,"context_line":"   overcloud.  The templates and environment file are taken from the data store"}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_6bbdfbd6","line":63,"in_reply_to":"ba15a1d1_baf5c2ed","updated":"2015-09-17 19:48:02.000000000","message":"Done","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"ca2efe67f643c91a666099a142a37886541ceafa","unresolved":false,"context_lines":[{"line_number":150,"context_line":"Security Impact"},{"line_number":151,"context_line":"---------------"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"Adding a REST API adds another potential point of vulnerability.  But it is worth"},{"line_number":154,"context_line":"keeping in mind that much of what will be exposed is functionality that is"},{"line_number":155,"context_line":"available from other, non-TripleO, APIs."},{"line_number":156,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_fa31fa5a","line":153,"updated":"2015-09-17 07:41:08.000000000","message":"you don\u0027t talk too much about the REST API - perhaps would be worth teasing out the high level API as you have for the tripleo common functions (or perhaps together, just add a line to those functions with the expected corresponding REST API call as a simple sketch for now)","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"e531c3136e9c3f850f65b7ac503d9e570807fa01","unresolved":false,"context_lines":[{"line_number":150,"context_line":"Security Impact"},{"line_number":151,"context_line":"---------------"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"Adding a REST API adds another potential point of vulnerability.  But it is worth"},{"line_number":154,"context_line":"keeping in mind that much of what will be exposed is functionality that is"},{"line_number":155,"context_line":"available from other, non-TripleO, APIs."},{"line_number":156,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"ba15a1d1_4bad9799","line":153,"in_reply_to":"ba15a1d1_fa31fa5a","updated":"2015-09-17 19:48:02.000000000","message":"I mention above that the API is intended to cover the tripleo-common workflow logic that I describe in detail above; do you think that\u0027s sufficient?  I guess I just figured that the rest was an implementation detail.","commit_id":"6c934819214c9cba64a99dd434b7a95f47e748e0"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"2f5629fa1a2e4d24c695e35b7f3a4efc34dcbfd8","unresolved":false,"context_lines":[{"line_number":81,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":82,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":83,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":84,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The tripleo-common library functions needed are:"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_d9aa4819","line":84,"updated":"2015-09-22 16:35:42.000000000","message":"I wouldn\u0027t expect us to support --templates deployment with a GUI at all.  That requires access to local template files, which as I understand it is one of the big problems the GUI has to contend with today.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"879f9079fe6cc1044d1fe99601dd5e9b0d935676","unresolved":false,"context_lines":[{"line_number":81,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":82,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":83,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":84,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The tripleo-common library functions needed are:"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_088ce87d","line":84,"in_reply_to":"ba15a1d1_4dcd125c","updated":"2015-09-22 17:07:08.000000000","message":"Ah, I see.  You do specify CLI workflow there, I just missed it. :-)","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"aff386c18c52c8c6b25b2b849c7ba0fdf2251ff9","unresolved":false,"context_lines":[{"line_number":81,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":82,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":83,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":84,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The tripleo-common library functions needed are:"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_4dcd125c","line":84,"in_reply_to":"ba15a1d1_d9aa4819","updated":"2015-09-22 16:59:28.000000000","message":"I should be clearer here; the intent is not that the GUI support the --templates option, but that the CLI retain the option to use either --swift or --templates.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"2f5629fa1a2e4d24c695e35b7f3a4efc34dcbfd8","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":91,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":92,"context_line":"     environment file into it.  Although we will not deal with updates and"},{"line_number":93,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":94,"context_line":"     versioning active to accommodate future development."},{"line_number":95,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_177de7b0","line":92,"updated":"2015-09-22 16:35:42.000000000","message":"I\u0027m still not sure I like glossing over this point.  Updates and template versioning is a pretty fundamental problem that this will need to solve.\n\nAs an example, just from the initial Kilo release of director to the first point release, we made template changes that would be incompatible with a plan created from the GA templates.  This is not something we can punt on until N, it\u0027s something we\u0027ll need to address pretty much as soon as this new API becomes a thing people are using.  Especially if we want to support a CI/CD model (although I will admit that\u0027s probably not a priority right now).","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"aff386c18c52c8c6b25b2b849c7ba0fdf2251ff9","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":91,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":92,"context_line":"     environment file into it.  Although we will not deal with updates and"},{"line_number":93,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":94,"context_line":"     versioning active to accommodate future development."},{"line_number":95,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_ad95cee4","line":92,"in_reply_to":"ba15a1d1_177de7b0","updated":"2015-09-22 16:59:28.000000000","message":"I see your point.  Do you think it\u0027d be okay to allow updates without allowing reverting to past versions for now?","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"879f9079fe6cc1044d1fe99601dd5e9b0d935676","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":91,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":92,"context_line":"     environment file into it.  Although we will not deal with updates and"},{"line_number":93,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":94,"context_line":"     versioning active to accommodate future development."},{"line_number":95,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_8844781b","line":92,"in_reply_to":"ba15a1d1_ad95cee4","updated":"2015-09-22 17:07:08.000000000","message":"Yeah, I\u0027m fine with that as a starting point.  I still think version control should be done with Git anyway. ;-)","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"2f5629fa1a2e4d24c695e35b7f3a4efc34dcbfd8","unresolved":false,"context_lines":[{"line_number":93,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":94,"context_line":"     versioning active to accommodate future development."},{"line_number":95,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":96,"context_line":"     matching plan_name.  Note that this will not delete a running overcloud"},{"line_number":97,"context_line":"     that may have been deployed with this plan."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":" * **Deployment Options**"}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_523dadb9","line":96,"updated":"2015-09-22 16:35:42.000000000","message":"What happens to the running overcloud with an orphaned plan?  It just becomes a static thing that you can\u0027t update?  Or are we going to try to support switching an overcloud between plans (this sounds dangerous to me).\n\nI think initially we should just not allow deleting a plan with a deployed overcloud.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"aff386c18c52c8c6b25b2b849c7ba0fdf2251ff9","unresolved":false,"context_lines":[{"line_number":93,"context_line":"     versioning with this spec, we will create the Swift container with object"},{"line_number":94,"context_line":"     versioning active to accommodate future development."},{"line_number":95,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":96,"context_line":"     matching plan_name.  Note that this will not delete a running overcloud"},{"line_number":97,"context_line":"     that may have been deployed with this plan."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":" * **Deployment Options**"}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_2d40dea4","line":96,"in_reply_to":"ba15a1d1_523dadb9","updated":"2015-09-22 16:59:28.000000000","message":"Fair enough; I\u0027ll update this bit.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"8564d58cf8209effe868947102660af640ac0702","unresolved":false,"context_lines":[{"line_number":152,"context_line":"Security Impact"},{"line_number":153,"context_line":"---------------"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Adding a REST API adds another potential point of vulnerability.  But it is worth"},{"line_number":156,"context_line":"keeping in mind that much of what will be exposed is functionality that is"},{"line_number":157,"context_line":"available from other, non-TripleO, APIs."},{"line_number":158,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_545c08ed","line":155,"updated":"2015-09-21 09:54:35.000000000","message":"thanks Mainn... (continuing from v12), yeah I guess we could take it that way; my concern is that both \u0027new workflow/define tripleo-common logic\u0027 and \u0027new rest api\u0027 are spec worthy on their own. It just feels like the whole rest api is an implementation detail at this point. We could for example tease out things like \u0027templates in create plan is a list\u0027,  resource_types and deployment_parameters are k:v - json? )\nAlso, things like validate and deploy plan, will they be post against a plan specific ui - like POST /api/v1/plans/plan_id/deploy and /update? Yes the risk is going into too much detail, but I think a new API is a big enough thing to warrant wider discussion and some level of planning. It would be good to have an agreed sketch as part of a spec, perhaps a follow up one once the tripleo-common library stuff is well under way (i.e. keep this excellent writeup as being specific to the \nlibrary changes). I don\u0027t know if that makes sense but my 2c anyway","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"aff386c18c52c8c6b25b2b849c7ba0fdf2251ff9","unresolved":false,"context_lines":[{"line_number":152,"context_line":"Security Impact"},{"line_number":153,"context_line":"---------------"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Adding a REST API adds another potential point of vulnerability.  But it is worth"},{"line_number":156,"context_line":"keeping in mind that much of what will be exposed is functionality that is"},{"line_number":157,"context_line":"available from other, non-TripleO, APIs."},{"line_number":158,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_4d22f202","line":155,"in_reply_to":"ba15a1d1_32c5998d","updated":"2015-09-22 16:59:28.000000000","message":"That\u0027s fair as well - I\u0027ll break the API stuff into a separate spec and submit that once this spec is approved.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"2f5629fa1a2e4d24c695e35b7f3a4efc34dcbfd8","unresolved":false,"context_lines":[{"line_number":152,"context_line":"Security Impact"},{"line_number":153,"context_line":"---------------"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Adding a REST API adds another potential point of vulnerability.  But it is worth"},{"line_number":156,"context_line":"keeping in mind that much of what will be exposed is functionality that is"},{"line_number":157,"context_line":"available from other, non-TripleO, APIs."},{"line_number":158,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"ba15a1d1_32c5998d","line":155,"in_reply_to":"ba15a1d1_545c08ed","updated":"2015-09-22 16:35:42.000000000","message":"I think that\u0027s fair.  As noted in the work items, the REST api comes after the tripleo-common workflow, and we\u0027ll certainly need to revisit that when the time comes.  A separate spec would be appropriate.\n\nI do, however, think it\u0027s worth mentioning in this spec because it has the potential to affect architecture decisions in the library.","commit_id":"15a30dd042b5a26a8de972fe4983ff83c8254f80"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"84a13acd21defc43ec9a92ba9c50d37575dcd541","unresolved":false,"context_lines":[{"line_number":99,"context_line":"     updates are versioned, retrieval of past versions will not be implemented"},{"line_number":100,"context_line":"     until the future."},{"line_number":101,"context_line":"   * **delete_plan(plan_name)**: Deletes a plan by deleting the Swift container"},{"line_number":102,"context_line":"     matching plan_name.  Note that this will not delete a running overcloud"},{"line_number":103,"context_line":"     that may have been deployed with this plan."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":" * **Deployment Options**"}],"source_content_type":"text/x-rst","patch_set":14,"id":"ba15a1d1_2e5a1551","line":102,"updated":"2015-09-22 17:44:37.000000000","message":"This bit wasn\u0027t updated. :-)","commit_id":"166fb400913142c123a8e8e43b0bce093a166a56"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":44,"context_line":"  * Encapsulate the business logic involved in the overcloud deployment workflow"},{"line_number":45,"context_line":"    within the tripleo-common library."},{"line_number":46,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from GUI consumers"},{"line_number":47,"context_line":"    - for example, template storage."},{"line_number":48,"context_line":"  * Update the CLI to use this code where appropriate to prevent divergence with"},{"line_number":49,"context_line":"    GUIs."},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_87b6f2da","line":47,"updated":"2015-09-25 09:37:32.000000000","message":"We need to figure out where the templates can be stored that\u0027s accessible to the UI consumers, e.g beyond the local filesystem which obviously won\u0027t be appropriate after we put an API in front of this simplified workflow.\n\nI had originally envisaged that the UI (or CLI) would just talk directly to a template store of their choosing (git, http, swift, whatever), then pass the templates found, or a reference to them, into the common library/API for inspection and processing.\n\nBut the pattern referred to here implies the UI/CLI would use the deployment library as the *only* touch-point to manage deployments, which implies we have to make the decision for users re where their templates are stored, which probably isn\u0027t what all folks will want (even those using the UI).","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":44,"context_line":"  * Encapsulate the business logic involved in the overcloud deployment workflow"},{"line_number":45,"context_line":"    within the tripleo-common library."},{"line_number":46,"context_line":"  * Provide a simplified workflow to hide unneeded complexity from GUI consumers"},{"line_number":47,"context_line":"    - for example, template storage."},{"line_number":48,"context_line":"  * Update the CLI to use this code where appropriate to prevent divergence with"},{"line_number":49,"context_line":"    GUIs."},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_683fe1b4","line":47,"in_reply_to":"9a1a9d01_87b6f2da","updated":"2015-09-25 14:56:35.000000000","message":"That\u0027s a good point, and one we did discuss with the Tuskar-UI team (which shared this exact concern).  The idea here was that Swift was simply the internal store with which the tripleo-common code manipulates the plan.  Future enhancements to a GUI might integrate with another template store - but that GUI would be responsible for making sure that the right library calls were made - update_plan, etc - to propagate the changes down into Swift.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":57,"context_line":"2. The user defines values for the template resource types given by Heat"},{"line_number":58,"context_line":"   template capabilities.  This results in an updated resource registry in an"},{"line_number":59,"context_line":"   environment file saved to the data store."},{"line_number":60,"context_line":"   (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)"},{"line_number":61,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":62,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":63,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_273da62b","line":60,"updated":"2015-09-25 09:37:32.000000000","message":"Note, this spec got blocked and thus did not land for Liberty - we can\u0027t rely on this functionality for any Liberty based environments.  I hope to un-block it after the Tokyo summit and have proposed a work-session to gain consensus regarding the direction.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":57,"context_line":"2. The user defines values for the template resource types given by Heat"},{"line_number":58,"context_line":"   template capabilities.  This results in an updated resource registry in an"},{"line_number":59,"context_line":"   environment file saved to the data store."},{"line_number":60,"context_line":"   (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)"},{"line_number":61,"context_line":"3. Now that the template resource types are specified, the user can configure"},{"line_number":62,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":63,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_286009ce","line":60,"in_reply_to":"9a1a9d01_273da62b","updated":"2015-09-25 14:56:35.000000000","message":"That\u0027s fair; I\u0027ll update the spec with a proposed workaround.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":62,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":63,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"},{"line_number":64,"context_line":"   in Tuskar, but can still be derived from available Heat parameters."},{"line_number":65,"context_line":"   (https://review.openstack.org/#/c/197199/5/specs/liberty/nested-validation.rst)"},{"line_number":66,"context_line":"4. Steps 2 and 3 can be repeated."},{"line_number":67,"context_line":"5. With configuration complete, the user triggers the deployment of the"},{"line_number":68,"context_line":"   overcloud.  The templates and environment file are taken from the data store"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_67887ee8","line":65,"updated":"2015-09-25 09:37:32.000000000","message":"The nested parameters spec did land and get implmented for Liberty.  For TripleO templates it outputs a large tree of data describing the nested parameters schema - we need to add logic to the deployment library (or heatclient) to derive things like mandatory nested parameters without defaults such that the large amount of data returned via nested validation may be easily filtered.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":62,"context_line":"   deployment parameters given by Heat.  Edited parameters are updated and an"},{"line_number":63,"context_line":"   updated environment file is saved to the data store.  \u0027Roles\u0027 no longer exist"},{"line_number":64,"context_line":"   in Tuskar, but can still be derived from available Heat parameters."},{"line_number":65,"context_line":"   (https://review.openstack.org/#/c/197199/5/specs/liberty/nested-validation.rst)"},{"line_number":66,"context_line":"4. Steps 2 and 3 can be repeated."},{"line_number":67,"context_line":"5. With configuration complete, the user triggers the deployment of the"},{"line_number":68,"context_line":"   overcloud.  The templates and environment file are taken from the data store"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_08bae523","line":65,"in_reply_to":"9a1a9d01_67887ee8","updated":"2015-09-25 14:56:35.000000000","message":"Yep, we\u0027ve actually been talking to Jay Dobies a bit in preparation for the joys of parsing JSON :)","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":73,"context_line":"In order to fulfill this workflow, we propose to initially promote the use of"},{"line_number":74,"context_line":"Swift as the template data store.  This usage will be abstracted away behind"},{"line_number":75,"context_line":"the tripleo-common library, and later updates may allow the use of other data"},{"line_number":76,"context_line":"stores."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":79,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_47121a64","line":76,"updated":"2015-09-25 09:37:32.000000000","message":"I think this needs to be configurable and not hard-wired to swift - the CLI users will most likely want to continue consuming templates from the local filesystem, either those shipped or forks copied locally and maintained in a local git repo.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":73,"context_line":"In order to fulfill this workflow, we propose to initially promote the use of"},{"line_number":74,"context_line":"Swift as the template data store.  This usage will be abstracted away behind"},{"line_number":75,"context_line":"the tripleo-common library, and later updates may allow the use of other data"},{"line_number":76,"context_line":"stores."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":79,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_c85e2de9","line":76,"in_reply_to":"9a1a9d01_47121a64","updated":"2015-09-25 14:56:35.000000000","message":"CLI users still have the option for using the --templates workflow, but now business logic that previously went into the CLI would go into the tripleo-common library, and feed into both workflows.  I felt that CLI users would still want the \u0027ultimate configurability\u0027 option of simply hacking on templates directly.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":107,"context_line":"   * **get_deployment_template_resource_types(plan_name)**: Determine available"},{"line_number":108,"context_line":"     template resource types by retrieving plan_name\u0027s templates from Swift and"},{"line_number":109,"context_line":"     using the proposed Heat resource-capabilities API"},{"line_number":110,"context_line":"     (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)."},{"line_number":111,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":112,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":113,"context_line":"     resource_registry tree according to the values passed in by resource_types."}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_4258c8fa","line":110,"updated":"2015-09-25 09:37:32.000000000","message":"As mentioned above, we\u0027ll have to come up with another way to do this in the short-term.  \n\nI\u0027d much prefer we avoided coupling the deployment library and templates, but it could be done via a yaml map maintained with the templates which describe which templates are valid implementations for a given provider resource.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":111,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":112,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":113,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":114,"context_line":"     Then update the environment file in Swift."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":" * **Deployment Configuration**"},{"line_number":117,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_420f68e1","line":114,"updated":"2015-09-25 09:37:32.000000000","message":"I think it\u0027s implied by the \u0027--templates\u0027 or \u0027--swift\u0027 comment above, but all of this should also work via the normal --templates flow, with the plan output to a directory in the local filesystem.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":111,"context_line":"   * **update_deployment_template_resource_types(plan_name, resource_types)**:"},{"line_number":112,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the"},{"line_number":113,"context_line":"     resource_registry tree according to the values passed in by resource_types."},{"line_number":114,"context_line":"     Then update the environment file in Swift."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":" * **Deployment Configuration**"},{"line_number":117,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_68f7e1d3","line":114,"in_reply_to":"9a1a9d01_420f68e1","updated":"2015-09-25 14:56:35.000000000","message":"Agreed.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"962b70f56b40e7a0c83bdb944c13143d5ee16755","unresolved":false,"context_lines":[{"line_number":118,"context_line":"   * **get_deployment_parameters(plan_name)**: Determine available deployment"},{"line_number":119,"context_line":"     parameters by retrieving plan_name\u0027s templates from Swift and using the"},{"line_number":120,"context_line":"     proposed Heat nested-validation API call"},{"line_number":121,"context_line":"     (https://review.openstack.org/#/c/197199/5/specs/liberty/nested-validation.rst)."},{"line_number":122,"context_line":"   * **update_deployment_parameters(plan_name, deployment_parameters)**:"},{"line_number":123,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the parameters"},{"line_number":124,"context_line":"     according to the values passed in by deployment_parameters.  Then update the"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_42268869","line":121,"updated":"2015-09-25 09:37:32.000000000","message":"As mentioned above, it\u0027s going to be the output of nested-validate + filtering logic, but I guess that\u0027s an implementation detail.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"b03e4e7d0ed3554d72b66a166d67ab96b5484170","unresolved":false,"context_lines":[{"line_number":118,"context_line":"   * **get_deployment_parameters(plan_name)**: Determine available deployment"},{"line_number":119,"context_line":"     parameters by retrieving plan_name\u0027s templates from Swift and using the"},{"line_number":120,"context_line":"     proposed Heat nested-validation API call"},{"line_number":121,"context_line":"     (https://review.openstack.org/#/c/197199/5/specs/liberty/nested-validation.rst)."},{"line_number":122,"context_line":"   * **update_deployment_parameters(plan_name, deployment_parameters)**:"},{"line_number":123,"context_line":"     Retrieve plan_name\u0027s environment file from Swift and update the parameters"},{"line_number":124,"context_line":"     according to the values passed in by deployment_parameters.  Then update the"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a1a9d01_c805cdc2","line":121,"in_reply_to":"9a1a9d01_42268869","updated":"2015-09-25 14:56:35.000000000","message":"Yep!  Understood.","commit_id":"66a5a5f14a6c3fb1a70e5a919d93fe12afff0cf3"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"6d0b34b19f191cfcfa346a0e58968fba03216b02","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_c43131a4","line":86,"updated":"2015-09-25 18:13:56.000000000","message":"I\u0027m starting to wonder if we actually want this split.  What if we made the template location an undercloud config opt (which I realize isn\u0027t something we really have right now, but should be doable), instead of passed in through the API, at least initially?\n\nSo in the simple case, your deployment would look like:\n\n* Install undercloud\n* openstack plan create foo\n* On the backend, the library uploads the configured templates to Swift, but this is all transparent to the user.  They neither know nor care where the plan templates are stored.\n* Optionally tweak the plan params (scaling, network stuff, etc.)\n* openstack overcloud deploy foo\n\nThe advanced case is just:\n\n* Install undercloud\n* Customize templates as desired.\n* Edit undercloud configuration to point at custom template location (which could be a git repo, addressing one of my major concerns).\n* openstack plan create bar\n* Templates are now uploaded from the custom location.\n* Customize plan params\n* openstack overcloud deploy bar\n\nThe GUI case is exactly the same, except instead of CLI commands to create the plan you\u0027d be using GUI operations.  As long as you\u0027re not customizing templates, you never have to touch CLI after the undercloud is installed.\n\nFor advanced use we could still support an openstack plan create --templates /my/custom/templates, but since right now we only support a single overcloud per undercloud that\u0027s not even strictly required in the first implementation IMHO.\n\nFor developers, they either re-create the plan after making changes to the custom templates, or (even better) we provide a good enough plan update function that they can just update with the latest version of their templates.\n\nThe other benefit of this is that we don\u0027t run the risk of one method becoming a second-class citizen because it isn\u0027t the workflow devs are using.  Everybody\u0027s doing basically the same thing, from the hardest core dev to the noobiest GUI user.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"9d939d5bdac241524310579d72cdff9e1e78ddc4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_842a2b2b","line":86,"in_reply_to":"9a1a9d01_38c84a55","updated":"2015-09-28 12:42:49.000000000","message":"\u003e  I\u0027d remove --templates from the deploy command entirely.\n\nI\u0027m -1 on that short-term (we can\u0027t just remove it without deprecation anyway), and I do think that the \"local filesystem backend\" mentioned needs to be implemented before we can consider deprecating the --templates deployment.\n\nIME the direct-to-heat approach provided via --templates is really useful for development and debug, so I\u0027d like to see it maintained even it it\u0027s clearly marked as developer/debug only.\n\nI do agree we should work towards having the plan orientated approach supported as the primary interface (so we can avoid the problem with Tuskar where the only user, really, was the UI), but we still need a fallback mode where we can easily bisect and show when the deployment API/library is doing something unexpected, that can be proven by deploying via heat directly.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"083e61b4bb6ba4559f02193615e5397062d271f6","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_9d05c8c3","line":86,"in_reply_to":"9a1a9d01_4223d1bd","updated":"2015-09-25 19:09:40.000000000","message":"Ah, I see.  I kinda thought that keeping the --templates option around would create a fail-safe for the ultimate in flexible deployment, but I could see the logic in that potentially encouraging another divergence.\n\nWould it make sense to garner additional opinions here?","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"173c568fdf4dc1522269fefb3ee08a858f21160e","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_27d0011f","line":86,"in_reply_to":"9a1a9d01_842a2b2b","updated":"2015-09-28 12:58:51.000000000","message":"Okay, I\u0027ll keep it in for now, but others should please feel free to continue to weigh in!","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"2a9920cabbc944289bcecda69bc97be629991cee","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_38c84a55","line":86,"in_reply_to":"9a1a9d01_9d05c8c3","updated":"2015-09-25 19:46:11.000000000","message":"Absolutely.  Like I said, this is kind of a brain dump and I\u0027m not sure I\u0027ve completely worked through all of the implications myself.  I wanted to get it out there and see what other people think though.  That\u0027s mainly why I didn\u0027t leave a vote one way or another on this patch set yet.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"81a0f1c349938390fd296484255339196d1e8dd4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_c79a9314","line":86,"in_reply_to":"9a1a9d01_c43131a4","updated":"2015-09-25 18:35:31.000000000","message":"Just to make sure I\u0027m understanding correctly; the addition here is basically that when you create a plan, you grab those templates from a pre-determined location instead of making a user specify all the templates, correct?  If so, I\u0027m all for that.\n\nUnless I\u0027m misunderstanding, I think there would still be --swift and --templates options though, and you mention --templates in your advanced usage example above. .. ?","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"c9090d5e09235a92a657b7736a4459598128b80c","unresolved":false,"context_lines":[{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The tripleo-common library functions needed are:"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_4223d1bd","line":86,"in_reply_to":"9a1a9d01_c79a9314","updated":"2015-09-25 18:59:46.000000000","message":"No, the plan would _always_ be stored in Swift (or any other backends that get implemented).  --templates would then become simply a way to override the configured template dir when you\u0027re creating a plan (which would obviously require local filesystem access, so would not be an option through the GUI).  I\u0027d remove --templates from the deploy command entirely.\n\nEssentially I want to do away with the ability to deploy without a plan (heh:-), which is what the existing --templates is.  The only people this should ultimately impact is developers, because we want users to be creating plans for their deployments.  If the standard plan workflow proves too onerous for devs (which probably indicates a problem to be fixed...), we could implement a local filesystem backend that sticks the templates in /opt/stack or something instead of Swift.  Then devs could edit the plan templates directly, which would work essentially the same as the existing --templates but exercising all of the plan bits too.\n\nIdeally though, devs would use something closer to a user workflow: Create plan with custom templates, deploy, tweak custom templates, update plan with new templates, re-deploy, rinse, repeat.  That\u0027s one new step (update plan) in the workflow that shouldn\u0027t take long at all, and reflects an operation our users will need to do as well.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"9d939d5bdac241524310579d72cdff9e1e78ddc4","unresolved":false,"context_lines":[{"line_number":183,"context_line":"makes this a far easier proposition."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"Another important item to note is that we will need to keep the TripleO CI"},{"line_number":186,"context_line":"updated with changes, and will be responsible for fixing the CI as needed."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_a44baf86","line":186,"updated":"2015-09-28 12:42:49.000000000","message":"Here, and above in End User impact, we should probably mention that what is proposes significantly changes the current default (--templates) deployment flow, if we do as Ben is suggesting (and I do agree with) and move to a consolidated flow (all via the deployment lib) for both CLI and UI.\n\nAs mentioned by Ben already, if the new flow doesn\u0027t work for developers, it pretty much certainly won\u0027t work for any advanced operators either, so its crucial to get it baked into the developer flow and shake out any UI orientated assumptions early, so we end up with something that really is flexible ensough to fully support both CLI and UI use-cases.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"173c568fdf4dc1522269fefb3ee08a858f21160e","unresolved":false,"context_lines":[{"line_number":183,"context_line":"makes this a far easier proposition."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"Another important item to note is that we will need to keep the TripleO CI"},{"line_number":186,"context_line":"updated with changes, and will be responsible for fixing the CI as needed."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a1a9d01_4723b505","line":186,"in_reply_to":"9a1a9d01_a44baf86","updated":"2015-09-28 12:58:51.000000000","message":"I\u0027ll add some text around that.","commit_id":"e72d13407597f418d9c6f9513e9a078da6a39512"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"d598031f91688bf094ddb08cf2118e7d9a64f162","unresolved":false,"context_lines":[{"line_number":80,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":81,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"},{"line_number":82,"context_line":"could choose \u0027--templates\u0027 or \u0027--swift\u0027.  However they would both be backed by"},{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a1a9d01_b31c4a78","line":83,"updated":"2015-09-28 15:55:02.000000000","message":"I am not fan of using the swift name here. The OpenStack client goes out of it\u0027s way to use descriptive names rather than project names, so this is the only place that swift the name will be visible.\n\nIt also locks us into using swift, which may practically happen anyway, but the Glance artifact work was always a promising option for this and ultimately could be a better fit. However, I\u0027ve not kept up with that work so can\u0027t comment on it\u0027s status.\n\nWhy don\u0027t we use the old Tuskar naming and just have users deploy a plan? We are calling it that below anyway. Then users don\u0027t need to be aware where it is stored. So, this would be the return of --plan, but with a subtly different meaning.","commit_id":"bf0438a0dd4487bfe94912fec9cf5ba9d80c3116"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"4ba9cf268ddfe91ef1abad9045ac4faf51eb31c4","unresolved":false,"context_lines":[{"line_number":80,"context_line":"Note that the Swift-workflow is intended to be an alternative to the current CLI"},{"line_number":81,"context_line":"\u0027--templates\u0027 workflow.  Both would end up being options under the CLI; a user"},{"line_number":82,"context_line":"could choose \u0027--templates\u0027 or \u0027--swift\u0027.  However they would both be backed by"},{"line_number":83,"context_line":"common tripleo-common library code, with the \u0027--swift\u0027 option simply calling"},{"line_number":84,"context_line":"additional functions to pull the plan information from Swift.  And GUIs that"},{"line_number":85,"context_line":"expect a Swift-backed deployment would lose functionality if the deployment"},{"line_number":86,"context_line":"is deployed using the \u0027--templates\u0027 CLI workflow."}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a1a9d01_b6ed1827","line":83,"in_reply_to":"9a1a9d01_b31c4a78","updated":"2015-09-28 16:13:15.000000000","message":"Fair enough - I\u0027ll change it to \u0027plan\u0027.","commit_id":"bf0438a0dd4487bfe94912fec9cf5ba9d80c3116"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"0074936bc62a4be4b11adca3ff5cee2720f57285","unresolved":false,"context_lines":[{"line_number":92,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":93,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":94,"context_line":"     environment file into it.  The Swift container will be created with object"},{"line_number":95,"context_line":"     versioning active to allow for versioned updates."},{"line_number":96,"context_line":"   * **get_plan(plan_name)**: Retrieves the Heat templates and environment file"},{"line_number":97,"context_line":"     from the Swift container matching plan_name."},{"line_number":98,"context_line":"   * **update_plan(plan_name, templates)**: Updates a plan by updating the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a1a9d01_50de0440","line":95,"updated":"2015-09-28 15:30:16.000000000","message":"Here we create the plan with \"templates\", which could be say a URL to a tripleo-heat-templates repo, but it doesn\u0027t differentiate any of:\n\n  1. The parent \"top level\" template\n  2. The environment snippets\n  3. The nested stack templates\n\nIs the intention actually to wire those in to this interface, or to have coupling between the template implementation and the deployment library (so it has e.g a hard-coded reference that says overcloud-without-mergepy.yaml is the parent template?","commit_id":"bf0438a0dd4487bfe94912fec9cf5ba9d80c3116"},{"author":{"_account_id":7386,"name":"Tzu-Mainn Chen","email":"tzumainn@redhat.com","username":"tzumainn"},"change_message_id":"4ba9cf268ddfe91ef1abad9045ac4faf51eb31c4","unresolved":false,"context_lines":[{"line_number":92,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":93,"context_line":"     container matching plan_name, and placing the tripleo-heat-templates and an"},{"line_number":94,"context_line":"     environment file into it.  The Swift container will be created with object"},{"line_number":95,"context_line":"     versioning active to allow for versioned updates."},{"line_number":96,"context_line":"   * **get_plan(plan_name)**: Retrieves the Heat templates and environment file"},{"line_number":97,"context_line":"     from the Swift container matching plan_name."},{"line_number":98,"context_line":"   * **update_plan(plan_name, templates)**: Updates a plan by updating the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a1a9d01_f6e39031","line":95,"in_reply_to":"9a1a9d01_50de0440","updated":"2015-09-28 16:13:15.000000000","message":"The intention is the former - I\u0027ll specify that.","commit_id":"bf0438a0dd4487bfe94912fec9cf5ba9d80c3116"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"ecbea78d5b3df1e7bc3b0383f421a1ed651ee6dc","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":" * **Plan CRUD**"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"   * **create_plan(plan_name, templates)**: Creates a plan by creating a Swift"},{"line_number":93,"context_line":"     container matching plan_name, and placing all templates needed by Heat for"},{"line_number":94,"context_line":"     a deployment - the \u0027parent\u0027 templates, nested stack templates, environment"},{"line_number":95,"context_line":"     file, etc - into that container.  The Swift container will be created with"}],"source_content_type":"text/x-rst","patch_set":20,"id":"9a1a9d01_9f43d7ae","line":92,"updated":"2015-09-30 19:22:20.000000000","message":"Rather than call the parameter here \u0027templates\u0027 I\u0027m wondering if perhaps \u0027data\u0027 or something more abstract would be better. While we don\u0027t use anything other than Heat for orchestrated deployment today this would leave the door open to future expansion in this area.","commit_id":"faac89375b303deaa34c0cf5836513ee788e544b"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"ecbea78d5b3df1e7bc3b0383f421a1ed651ee6dc","unresolved":false,"context_lines":[{"line_number":96,"context_line":"     object versioning active to allow for versioned updates."},{"line_number":97,"context_line":"   * **get_plan(plan_name)**: Retrieves the Heat templates and environment file"},{"line_number":98,"context_line":"     from the Swift container matching plan_name."},{"line_number":99,"context_line":"   * **update_plan(plan_name, templates)**: Updates a plan by updating the"},{"line_number":100,"context_line":"     templates in the Swift container matching plan_name.  This may necessitate"},{"line_number":101,"context_line":"     an update to the environment file to add and/or remove parameters. Although"},{"line_number":102,"context_line":"     updates are versioned, retrieval of past versions will not be implemented"}],"source_content_type":"text/x-rst","patch_set":20,"id":"9a1a9d01_ff0a1378","line":99,"updated":"2015-09-30 19:22:20.000000000","message":"Ditto here, perhaps \u0027data\u0027 or something more generic here.","commit_id":"faac89375b303deaa34c0cf5836513ee788e544b"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"ecbea78d5b3df1e7bc3b0383f421a1ed651ee6dc","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":" * **Deployment Options**"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"   * **get_deployment_template_resource_types(plan_name)**: Determine available"},{"line_number":111,"context_line":"     template resource types by retrieving plan_name\u0027s templates from Swift and"},{"line_number":112,"context_line":"     using the proposed Heat resource-capabilities API"},{"line_number":113,"context_line":"     (https://review.openstack.org/#/c/196656/7/specs/liberty/resource-capabilities.rst)."}],"source_content_type":"text/x-rst","patch_set":20,"id":"9a1a9d01_1f46e77a","line":110,"updated":"2015-09-30 19:22:20.000000000","message":"maybe drop the reference to \u0027_template_\u0027 here. Again perhaps just a bit overly Heat specific.","commit_id":"faac89375b303deaa34c0cf5836513ee788e544b"}]}
