)]}'
{"specs/approved/config-template-traits.rst":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"11c99bdb5e034b3f5ebb366a0b8ee0b3a6480bfa","unresolved":false,"context_lines":[{"line_number":74,"context_line":"      \"BIOS_VMX_ON\": {"},{"line_number":75,"context_line":"        \"interface\": \"clean\","},{"line_number":76,"context_line":"        \"step\": \"set_bios_confg\","},{"line_number":77,"context_line":"        \"priority\": 1"},{"line_number":78,"context_line":"        \"args\": { \"virt_flag\": True },"},{"line_number":79,"context_line":"        \"target\": \"pre-deploy\",  # (or post-deploy)"},{"line_number":80,"context_line":"        \"implemented_traits\": ["}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_81df10d5","line":77,"updated":"2017-10-06 10:37:36.000000000","message":"priorities should be set in code, as it rarely makes sense to overwrite them (e.g. you don\u0027t want RAID config after flashing the instance image)","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"11c99bdb5e034b3f5ebb366a0b8ee0b3a6480bfa","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        \"interface\": \"clean\","},{"line_number":76,"context_line":"        \"step\": \"set_bios_confg\","},{"line_number":77,"context_line":"        \"priority\": 1"},{"line_number":78,"context_line":"        \"args\": { \"virt_flag\": True },"},{"line_number":79,"context_line":"        \"target\": \"pre-deploy\",  # (or post-deploy)"},{"line_number":80,"context_line":"        \"implemented_traits\": ["},{"line_number":81,"context_line":"            \"CUSTOM_BM_CONFG_BIOS_VMX_ON\","}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_61f09468","line":78,"updated":"2017-10-06 10:37:36.000000000","message":"nit: JSON has true, not True","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"11c99bdb5e034b3f5ebb366a0b8ee0b3a6480bfa","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        \"step\": \"set_bios_confg\","},{"line_number":77,"context_line":"        \"priority\": 1"},{"line_number":78,"context_line":"        \"args\": { \"virt_flag\": True },"},{"line_number":79,"context_line":"        \"target\": \"pre-deploy\",  # (or post-deploy)"},{"line_number":80,"context_line":"        \"implemented_traits\": ["},{"line_number":81,"context_line":"            \"CUSTOM_BM_CONFG_BIOS_VMX_ON\","},{"line_number":82,"context_line":"            \"HW_CPU_X86_VMX\""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_41f35874","line":79,"updated":"2017-10-06 10:37:36.000000000","message":"this is also defined by the step itself, not by an operator.","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"11c99bdb5e034b3f5ebb366a0b8ee0b3a6480bfa","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"If an ironic node is tagged with both \"CUSTOM_BM_CONFG_BIOS_VMX_ON\" and the"},{"line_number":114,"context_line":"given standard trait \"HW_CPU_X86_VMX\", when a user requests the trait"},{"line_number":115,"context_line":"\"HW_CPU_X86_VMX\", the specified associated config template is used to"},{"line_number":116,"context_line":"reconfigure the node to provide the request trait. This allows the exposing"},{"line_number":117,"context_line":"of standard traits in the Nova flavor that map to custom config templates in"},{"line_number":118,"context_line":"Ironic. Note you can have a single implemented_trait map to several config"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_21ea9c74","line":115,"updated":"2017-10-06 10:37:36.000000000","message":"this looks an overcomplication to me. I\u0027d just leave HW_CPU_X86_VMX as a deploy template name, and remove \"implemented_traits\" completely. It\u0027s a cloud, so we want such things to be as transparent as possible IMO. if the nodes already has HW_CPU_X86_VMX - fine. if not - apply the deployment template called HW_CPU_X86_VMX.","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"6e27751aa687b211f4b0fa108f5dde032b459b09","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"If an ironic node is tagged with both \"CUSTOM_BM_CONFG_BIOS_VMX_ON\" and the"},{"line_number":114,"context_line":"given standard trait \"HW_CPU_X86_VMX\", when a user requests the trait"},{"line_number":115,"context_line":"\"HW_CPU_X86_VMX\", the specified associated config template is used to"},{"line_number":116,"context_line":"reconfigure the node to provide the request trait. This allows the exposing"},{"line_number":117,"context_line":"of standard traits in the Nova flavor that map to custom config templates in"},{"line_number":118,"context_line":"Ironic. Note you can have a single implemented_trait map to several config"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_baa55da1","line":115,"in_reply_to":"7f515b1d_21ea9c74","updated":"2017-10-09 13:58:58.000000000","message":"The problem here is we need the trait to be reported by the node, before Nova is able to match a request for that trait against the node.\n\nSo we almost want to report flag present and no flag present as both available on a given node, and the user requests which of those they get.","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"11c99bdb5e034b3f5ebb366a0b8ee0b3a6480bfa","unresolved":false,"context_lines":[{"line_number":119,"context_line":"templates by having all the appropriate traits set on that given flavor."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"Now when you add the trait to a Node, it fails if the given interface and step"},{"line_number":122,"context_line":"are not available on that node, given the currently configured driver. The"},{"line_number":123,"context_line":"validate step will have a new \"traits\" step that checks all traits are still"},{"line_number":124,"context_line":"valid on this node and are correctly registered in placement, if a trait is"},{"line_number":125,"context_line":"not registered in placement, the validation is failed. This includes ensuring"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_01ed608a","line":122,"updated":"2017-10-06 10:37:36.000000000","message":"If I understand you right, this won\u0027t work. HW_CPU_X86_VMX can be always present for a node (independent of the driver). and people can add custom traits that are not related to deployment steps.\n\nWhat worries me is how to provide the dynamic traits (i.e. traits that can be done via deployment template) to nova? This will require modifying the traits API, I suspect","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"6e27751aa687b211f4b0fa108f5dde032b459b09","unresolved":false,"context_lines":[{"line_number":119,"context_line":"templates by having all the appropriate traits set on that given flavor."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"Now when you add the trait to a Node, it fails if the given interface and step"},{"line_number":122,"context_line":"are not available on that node, given the currently configured driver. The"},{"line_number":123,"context_line":"validate step will have a new \"traits\" step that checks all traits are still"},{"line_number":124,"context_line":"valid on this node and are correctly registered in placement, if a trait is"},{"line_number":125,"context_line":"not registered in placement, the validation is failed. This includes ensuring"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_daa81979","line":122,"in_reply_to":"7f515b1d_01ed608a","updated":"2017-10-09 13:58:58.000000000","message":"I should really do a","commit_id":"30bdde87540175239b4a5fce631af462278d59d1"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"89db36d8c5435c7fd782a32d61b6508f8f2457c5","unresolved":false,"context_lines":[{"line_number":29,"context_line":"term Nova is expected to offer the option of a user specifying an override"},{"line_number":30,"context_line":"trait on a boot request, based on what the flavor says is possible. For now"},{"line_number":31,"context_line":"this spec has no impact on the Nova integration beyond what is already proposed"},{"line_number":32,"context_line":"in the node-traits spec."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Proposed change"},{"line_number":35,"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":3,"id":"5f4e5783_860c71ec","line":32,"range":{"start_line":32,"start_character":7,"end_line":32,"end_character":24},"updated":"2017-10-16 18:14:41.000000000","message":"link this","commit_id":"b05d52808fcc52770d27e21ca534d7834634716d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"89db36d8c5435c7fd782a32d61b6508f8f2457c5","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Worked Example"},{"line_number":104,"context_line":"--------------"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Lets consider an example where there is one type of node that could have either"},{"line_number":107,"context_line":"of the following configuration templates that define a RAID configuration::"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f4e5783_26ca5d4d","line":105,"updated":"2017-10-16 18:14:41.000000000","message":"I may be misunderstanding, but I think it would be helpful if the traits used in this example matched those listed above.  Otherwise it makes it look like you\u0027re proposing an unnecessary intervening layer.\n\nTo be clear, what you\u0027re proposing is that the presence of a trait in the flavor will be used to indicate which template to use to configure the node, right?","commit_id":"b05d52808fcc52770d27e21ca534d7834634716d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"89db36d8c5435c7fd782a32d61b6508f8f2457c5","unresolved":false,"context_lines":[{"line_number":144,"context_line":"* CUSTOM_RAID_0"},{"line_number":145,"context_line":"* CUSTOM_RAID_5"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":148,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_RAID_0 and GOLD requests"},{"line_number":149,"context_line":"CUSTOM_RAID_5."},{"line_number":150,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f4e5783_46e8b9e0","line":147,"range":{"start_line":147,"start_character":61,"end_line":147,"end_character":74},"updated":"2017-10-16 18:14:41.000000000","message":"striped?","commit_id":"b05d52808fcc52770d27e21ca534d7834634716d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"89db36d8c5435c7fd782a32d61b6508f8f2457c5","unresolved":false,"context_lines":[{"line_number":145,"context_line":"* CUSTOM_RAID_5"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":148,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_RAID_0 and GOLD requests"},{"line_number":149,"context_line":"CUSTOM_RAID_5."},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":152,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f4e5783_46d1d922","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":14},"updated":"2017-10-16 18:14:41.000000000","message":"are these backwards?","commit_id":"b05d52808fcc52770d27e21ca534d7834634716d"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"71996ece5d63ad9efb18ee30ca823cfccdd79212","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":152,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":153,"context_line":"deploy process as normal."},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Alternatives"},{"line_number":156,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f4e5783_108c407d","line":153,"updated":"2017-10-16 14:03:31.000000000","message":"TODO: need to add a note about driver validation. Driver may not support the \"raid\" interface or the step \"create_configuration\", and as such, it should reject the ability to set a trait that matches the config template with that interface.","commit_id":"b05d52808fcc52770d27e21ca534d7834634716d"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"e127164e890d29bad9d86a4c86dccf3c0ff20e0b","unresolved":false,"context_lines":[{"line_number":143,"context_line":"available to users, they set the following traits on the nodes they want those"},{"line_number":144,"context_line":"templates to be available:"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"* CUSTOM_RAID_0"},{"line_number":147,"context_line":"* CUSTOM_RAID_5"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":150,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR and GOLD"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f4b6375_8574f99a","line":147,"range":{"start_line":146,"start_character":0,"end_line":147,"end_character":15},"updated":"2017-10-19 11:10:41.000000000","message":"Dang, I need to update this bit.","commit_id":"a74c1f4477380311afc76c2ec39f5addf0743f57"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2fefe876d0cd5cb67860af8df7b5612dd5652464","unresolved":false,"context_lines":[{"line_number":146,"context_line":"* CUSTOM_RAID_0"},{"line_number":147,"context_line":"* CUSTOM_RAID_5"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":150,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR and GOLD"},{"line_number":151,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_STRIPE."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5f4e5783_eae508dd","line":150,"range":{"start_line":149,"start_character":61,"end_line":150,"end_character":17},"updated":"2017-10-17 17:56:39.000000000","message":"Striped?  Or is \"stripped\" a thing I don\u0027t know about?","commit_id":"a74c1f4477380311afc76c2ec39f5addf0743f57"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"e127164e890d29bad9d86a4c86dccf3c0ff20e0b","unresolved":false,"context_lines":[{"line_number":146,"context_line":"* CUSTOM_RAID_0"},{"line_number":147,"context_line":"* CUSTOM_RAID_5"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":150,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR and GOLD"},{"line_number":151,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_STRIPE."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f4b6375_256305df","line":150,"range":{"start_line":149,"start_character":61,"end_line":150,"end_character":17},"in_reply_to":"5f4e5783_eae508dd","updated":"2017-10-19 11:10:41.000000000","message":"oops, yes.","commit_id":"a74c1f4477380311afc76c2ec39f5addf0743f57"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2fefe876d0cd5cb67860af8df7b5612dd5652464","unresolved":false,"context_lines":[{"line_number":147,"context_line":"* CUSTOM_RAID_5"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":150,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR and GOLD"},{"line_number":151,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_STRIPE."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":154,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5f4e5783_4ad41ce9","line":151,"range":{"start_line":150,"start_character":34,"end_line":151,"end_character":43},"updated":"2017-10-17 17:56:39.000000000","message":"are these (still) backwards?","commit_id":"a74c1f4477380311afc76c2ec39f5addf0743f57"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"e127164e890d29bad9d86a4c86dccf3c0ff20e0b","unresolved":false,"context_lines":[{"line_number":147,"context_line":"* CUSTOM_RAID_5"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPPED."},{"line_number":150,"context_line":"The GOLD_STRIPPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR and GOLD"},{"line_number":151,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_STRIPE."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":154,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f4b6375_a5a49509","line":151,"range":{"start_line":150,"start_character":34,"end_line":151,"end_character":43},"in_reply_to":"5f4e5783_4ad41ce9","updated":"2017-10-19 11:10:41.000000000","message":"heh, oops, yes.","commit_id":"a74c1f4477380311afc76c2ec39f5addf0743f57"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"e52cd18fb6930cbd263c9012766f03ad888abe03","unresolved":false,"context_lines":[{"line_number":91,"context_line":"This might both map back to the same set of nodes that have the resource class"},{"line_number":92,"context_line":"CLASS_A and the following list of traits:"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":95,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_OFF"},{"line_number":96,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":97,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_8f54b654","line":95,"range":{"start_line":94,"start_character":0,"end_line":95,"end_character":31},"updated":"2017-10-24 06:33:10.000000000","message":"This sounds like the Trait is used to configure the instance. I remember I talk about this with Morgan team also.\n\nThe downside is we put a lot of traits which are actually useless for the placement to do the scheduling. It adds extra burden to the placement.\n\nFor this case, actually, we only need to find a host which enables the VMX, so the right way is that there is only one trait \u0027CUSTOM_BM_CONFIG_BIOS_VMX\u0027. But if you use the trait to config the instance, then you attach two traits (one for on, one for off) to the resource provider, that is an extra burden for the placement.\n\nAnd this is worst case. If a configure option has 10 possible values? Then we have 9 extra traits add to the placement. And when we have a config option is just accept an integer, what we can do?","commit_id":"b2241f5052d7f1bb9306d013665d70533547c6fd"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"8575a4cb380ed3a6b6bb5f89cf2412e19bd67156","unresolved":false,"context_lines":[{"line_number":91,"context_line":"This might both map back to the same set of nodes that have the resource class"},{"line_number":92,"context_line":"CLASS_A and the following list of traits:"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":95,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_OFF"},{"line_number":96,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":97,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_8dba7407","line":95,"range":{"start_line":94,"start_character":0,"end_line":95,"end_character":31},"in_reply_to":"3f4b6375_8f54b654","updated":"2017-10-24 13:30:32.000000000","message":"As discussed at the PTG this is really about saying if a node is capable of each configuration template or not.\n\nWe don\u0027t really want to have free form parameters in extra specs, it just all seems way too confusing.","commit_id":"b2241f5052d7f1bb9306d013665d70533547c6fd"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"91e92772112ea99dad629a88712b3c1b3dad2ce8","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Here we use traits set on a node to represent the node having the capability"},{"line_number":14,"context_line":"to execute the associated configuration template when the node is being"},{"line_number":15,"context_line":"deployed. The required traits are passed into the nodes ``instance_info``"},{"line_number":16,"context_line":"before the deploy starts, so when the deploy happens Ironic knows if any"},{"line_number":17,"context_line":"configuration templates need to be executed."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_63086791","line":15,"range":{"start_line":15,"start_character":50,"end_line":15,"end_character":55},"updated":"2017-10-24 15:16:19.000000000","message":"node\u0027s","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4cd84ec4aa4b763aaa9d24181be392dc643f1e00","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  templates"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"So when nova requests to change the provision state to active, we lookup the"},{"line_number":67,"context_line":"requested traits, and compose a list of clean steps by mapping traits back to"},{"line_number":68,"context_line":"the configuration templates. The order we execute the clean steps in is set by"},{"line_number":69,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_8d370500","line":67,"updated":"2017-10-25 01:19:23.000000000","message":"by \u0027lookup the requested traits\u0027, you mean ironic will look at the node\u0027s instance_info[traits], use that info somehow to map/compose the list of clean steps...","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"56f8c63f8483742c0c98340ecc8171525694dded","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  templates"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"So when nova requests to change the provision state to active, we lookup the"},{"line_number":67,"context_line":"requested traits, and compose a list of clean steps by mapping traits back to"},{"line_number":68,"context_line":"the configuration templates. The order we execute the clean steps in is set by"},{"line_number":69,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_dfb911cc","line":67,"in_reply_to":"3f4b6375_8d370500","updated":"2017-10-25 11:28:10.000000000","message":"yes","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4cd84ec4aa4b763aaa9d24181be392dc643f1e00","unresolved":false,"context_lines":[{"line_number":100,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":101,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":104,"context_line":"are passed through to ironic node provision in the usual way, activating the"},{"line_number":105,"context_line":"appropriate re-configuration of each Node."},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_5f053010","line":103,"updated":"2017-10-25 01:19:23.000000000","message":"remind me. Are the traits of a flavor stored in its extra_specs? extra_specs[traits]?\n\nAnd by \u0027extra specs are passed through...\u0027, do you mean the traits info from extra specs, are passed through via the node\u0027s instance_info[traits]?","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"56f8c63f8483742c0c98340ecc8171525694dded","unresolved":false,"context_lines":[{"line_number":100,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":101,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":104,"context_line":"are passed through to ironic node provision in the usual way, activating the"},{"line_number":105,"context_line":"appropriate re-configuration of each Node."},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_7fb45dd1","line":103,"in_reply_to":"3f4b6375_5f053010","updated":"2017-10-25 11:28:10.000000000","message":"Traits are requested by a flavor by adding things in the flavor:\nhttp://specs.openstack.org/openstack/nova-specs/specs/queens/approved/request-traits-in-nova.html\n\nYes to the last bit.","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f3c0fb1ddff6a84032ff8eedd1ed840e4a0f9a81","unresolved":false,"context_lines":[{"line_number":100,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":101,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":104,"context_line":"are passed through to ironic node provision in the usual way, activating the"},{"line_number":105,"context_line":"appropriate re-configuration of each Node."},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_119c3d68","line":103,"in_reply_to":"3f4b6375_7fb45dd1","updated":"2017-10-25 12:02:38.000000000","message":"And also https://specs.openstack.org/openstack/nova-specs/specs/queens/approved/granular-resource-requests.html#syntax-in-flavors","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4cd84ec4aa4b763aaa9d24181be392dc643f1e00","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"References"},{"line_number":341,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"TODO"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_b5e32334","line":342,"updated":"2017-10-25 01:19:23.000000000","message":"I need to spend time thinking about this. There are two other RFE/specs that relate to this:\n\n- ironic deployment steps: https://review.openstack.org/#/c/412523/. What you refer to as \u0027clean steps\u0027 in your spec, I think still has merit as \u0027deploy steps\u0027\n- RAID configuration during deployment: https://review.openstack.org/#/c/382091/. We should make sure that this spec/templating can address the needs of that RAID configuration spec.","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"56f8c63f8483742c0c98340ecc8171525694dded","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"References"},{"line_number":341,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"TODO"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f4b6375_df7a31ef","line":342,"in_reply_to":"3f4b6375_b5e32334","updated":"2017-10-25 11:28:10.000000000","message":"++ I need to re-read the deploy steps, I suspect we need to merge the two somehow. I focus too much here on the \"request from Nova via a trait\" part.\n\nThe main bit is I think we want a single set of config tasks, a sub set of them with defined params, could be run as either part of deploy, part of destroy, or ad hock on an available node. i.e. no need to implement a new way to do RAID for clean vs deploy.\n\nHaving said that, in the API, exposing as deploy_steps is way more logical than re-using clean_steps. I was looking for a minimal starting point here, I guess.","commit_id":"50505c4a6f92406b147049e2e448122e13a37dcf"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":33,"context_line":"term Nova is expected to offer the option of a user specifying an override"},{"line_number":34,"context_line":"trait on a boot request, based on what the flavor says is possible. For now"},{"line_number":35,"context_line":"this spec has no impact on the Nova integration beyond what is already proposed"},{"line_number":36,"context_line":"in the node-traits RFE: https://launchpad.net/bugs/1722194"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"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":8,"id":"1f485f77_80d6474f","line":36,"updated":"2017-11-09 19:54:54.000000000","message":"nit, missing period at end of sentence.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":35,"context_line":"this spec has no impact on the Nova integration beyond what is already proposed"},{"line_number":36,"context_line":"in the node-traits RFE: https://launchpad.net/bugs/1722194"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Scope wise, we will only consider running existing clean steps before the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_60cb4ba5","line":38,"updated":"2017-11-09 19:54:54.000000000","message":"I was thinking, a description/diagram somewhere of the whole flow of information from nova/flavours/ resource classes/traits/nova boot/ etc to ironic would be useful to make sure we don\u0027t miss any of the bits needed for this to all work.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"63033becc148652ed298b248f67fa15a0a301d27","unresolved":false,"context_lines":[{"line_number":35,"context_line":"this spec has no impact on the Nova integration beyond what is already proposed"},{"line_number":36,"context_line":"in the node-traits RFE: https://launchpad.net/bugs/1722194"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Scope wise, we will only consider running existing clean steps before the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_b925330b","line":38,"in_reply_to":"1f485f77_60cb4ba5","updated":"2017-11-28 19:17:26.000000000","message":"Good call, adding something in.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Scope wise, we will only consider running existing clean steps before the"},{"line_number":42,"context_line":"existing deploy is executed. There will be no customization of the priority,"},{"line_number":43,"context_line":"that is defined by the @clean_steps decorator in the code. It is possible in"},{"line_number":44,"context_line":"the future things other than clean steps might be supported, but that is out of"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_00525768","line":41,"updated":"2017-11-09 19:54:54.000000000","message":"We should just sync up here. I still think of \u0027clean steps\u0027 as steps that can be done during the cleaning phase. And \u0027deploy steps\u0027 as steps that can be done during deployment. I think you mean for this \u0027clean step\u0027 to be done as part of the deployment, not during the cleaning phase before the node is made available.\n\nWe don\u0027t have any deploy steps yet (there\u0027s that RFE [1] proposed for it). Under-the-hood, they will be implemented similar to our existing clean steps, but I think we should avoid \u0027clean steps\u0027 here if we are talking about steps that will be done at deploy time, not clean time [2].\n\n[1] https://bugs.launchpad.net/ironic/+bug/1651185\n[2] state diagram: https://docs.openstack.org/ironic/latest/contributor/states.html","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e6149885668733044156d46d6b1e12e5300529bd","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Scope wise, we will only consider running existing clean steps before the"},{"line_number":42,"context_line":"existing deploy is executed. There will be no customization of the priority,"},{"line_number":43,"context_line":"that is defined by the @clean_steps decorator in the code. It is possible in"},{"line_number":44,"context_line":"the future things other than clean steps might be supported, but that is out of"},{"line_number":45,"context_line":"scope for now."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_bde26500","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":28},"updated":"2017-10-30 18:24:23.000000000","message":"We do need to run potential deploy steps after the deploy (imagine customized boot loader, for example). On the ATL PTG we discussed having a fixed priority for the existing deploy. It can be 0 or 1000 or anything. Everything higher than it will run before, everything else - after.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":42,"context_line":"existing deploy is executed. There will be no customization of the priority,"},{"line_number":43,"context_line":"that is defined by the @clean_steps decorator in the code. It is possible in"},{"line_number":44,"context_line":"the future things other than clean steps might be supported, but that is out of"},{"line_number":45,"context_line":"scope for now."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"While all clean steps should work unmodified, the RAID configuration will be"},{"line_number":48,"context_line":"given particular attention. Part of that work will include making the RAID"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_c07c3fb7","line":45,"updated":"2017-11-09 19:54:54.000000000","message":"I think if we go with \u0027deploy-step\u0027, a particular step/method could be both a deploy-step and a clean-step, or we could implement separate methods for each. I think that would depend on what/if there are diffs for that operation when cleaning or deploying.\n\nThis stuff about \u0027things other than clean steps...\u0027 is not necessary then.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":42,"context_line":"existing deploy is executed. There will be no customization of the priority,"},{"line_number":43,"context_line":"that is defined by the @clean_steps decorator in the code. It is possible in"},{"line_number":44,"context_line":"the future things other than clean steps might be supported, but that is out of"},{"line_number":45,"context_line":"scope for now."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"While all clean steps should work unmodified, the RAID configuration will be"},{"line_number":48,"context_line":"given particular attention. Part of that work will include making the RAID"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_37806ebf","line":45,"in_reply_to":"1f485f77_c07c3fb7","updated":"2017-11-27 11:21:24.000000000","message":"I think in my head, I was hoping we have something like \"management_steps\" that can be used during clean or deploy.\n\nI guess I am unsure why they would be any different before/after deploy.\n\nThe only real difference here is that I want things like configure RAID to be self contained, i.e. not depend on any node properties. I mean we can have optional args that default to a node property, but shouldn\u0027t require a node property to be set (unless its static like ipmi_password, etc). Without that we can\u0027t get all the config into the template.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"22c0d55fd2e771f6041a4adbb8be135e75452614","unresolved":false,"context_lines":[{"line_number":42,"context_line":"existing deploy is executed. There will be no customization of the priority,"},{"line_number":43,"context_line":"that is defined by the @clean_steps decorator in the code. It is possible in"},{"line_number":44,"context_line":"the future things other than clean steps might be supported, but that is out of"},{"line_number":45,"context_line":"scope for now."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"While all clean steps should work unmodified, the RAID configuration will be"},{"line_number":48,"context_line":"given particular attention. Part of that work will include making the RAID"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_165e7a11","line":45,"in_reply_to":"ff82abbf_37806ebf","updated":"2017-11-27 23:17:13.000000000","message":"Ok, I think maybe it is a terminology issue. I think of \u0027clean step\u0027 as a step that is done during the cleaning process. How we implement it with whatever widget (er class) is a different thing. And likewise, \u0027deploy step\u0027 is a step that is done during the deploy process. The problem with \u0027management_step\u0027 is that we actually have a ManagementInterface and I don\u0027t want there to be confusion. I am fine just using \u0027step\u0027 and eg \u0027clean step\u0027 or \u0027deploy step\u0027 if you want to clarify when the step is being done.\n\nwrt the RAID config. I think there needs to be two ways to specify the config, because there could be a cluster out there where they do want to do some initial RAID config at clean (pre-boot) time, and then have RAID-during-provisioning-if-the-user-wants-that. So the target_raid_config should \u0027stay\u0027 and be used in automated cleaning, whereas in manual cleaning or during provisioning, a config could (or must for deployment) be specified in the API request. (I\u0027m just thinking out loud here, anyway, it is solvable.)","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":49,"context_line":"clean step optionally take the RAID configuration as a parameter of the clean"},{"line_number":50,"context_line":"step. When not specified, the target_raid_config property on the Node is used."},{"line_number":51,"context_line":"When the target_raid_config is specified as an argument to the clean step, the"},{"line_number":52,"context_line":"Node is first updated to match, then the RAID configuration is performed, to"},{"line_number":53,"context_line":"stop any confusion."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"The REST API section will cover in details of the API changes, but lets first"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_005c9749","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":30},"updated":"2017-11-09 19:54:54.000000000","message":"I\u0027m not sure what you mean here, node.raid_config or .target_raid_config or ??","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":49,"context_line":"clean step optionally take the RAID configuration as a parameter of the clean"},{"line_number":50,"context_line":"step. When not specified, the target_raid_config property on the Node is used."},{"line_number":51,"context_line":"When the target_raid_config is specified as an argument to the clean step, the"},{"line_number":52,"context_line":"Node is first updated to match, then the RAID configuration is performed, to"},{"line_number":53,"context_line":"stop any confusion."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"The REST API section will cover in details of the API changes, but lets first"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_575e5276","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":30},"in_reply_to":"1f485f77_005c9749","updated":"2017-11-27 11:21:24.000000000","message":"Hmm, I didn\u0027t see both of those before. I guess just raid_config, and it ignores target_raid_config (so an auto clean step could revert to the \u0027default\u0027 config if needed, or something like that).","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":50,"context_line":"step. When not specified, the target_raid_config property on the Node is used."},{"line_number":51,"context_line":"When the target_raid_config is specified as an argument to the clean step, the"},{"line_number":52,"context_line":"Node is first updated to match, then the RAID configuration is performed, to"},{"line_number":53,"context_line":"stop any confusion."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"The REST API section will cover in details of the API changes, but lets first"},{"line_number":56,"context_line":"discuss the concepts that will be added here:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_e0585b57","line":53,"updated":"2017-11-09 19:54:54.000000000","message":"Hmm, well, we can work on this part later, that\u0027s the easy part...","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Node is first updated to match, then the RAID configuration is performed, to"},{"line_number":53,"context_line":"stop any confusion."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"The REST API section will cover in details of the API changes, but lets first"},{"line_number":56,"context_line":"discuss the concepts that will be added here:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"* Configuration template: a specific clean step and arguments that can be"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_5df9147e","line":55,"range":{"start_line":55,"start_character":67,"end_line":55,"end_character":71},"updated":"2017-10-31 15:00:13.000000000","message":"let\u0027s","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  items in node-set-provision-state list of clean_steps."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"* instance_info/traits will be the list of traits the user requested in nova."},{"line_number":63,"context_line":"  That may include traits that map to one or more of the configuration"},{"line_number":64,"context_line":"  templates"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"When a node is deployed (using Nova or otherwise) Ironic will look at"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_bd2da8fe","line":63,"range":{"start_line":63,"start_character":42,"end_line":63,"end_character":49},"updated":"2017-10-31 15:00:13.000000000","message":"oh?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"63033becc148652ed298b248f67fa15a0a301d27","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  items in node-set-provision-state list of clean_steps."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"* instance_info/traits will be the list of traits the user requested in nova."},{"line_number":63,"context_line":"  That may include traits that map to one or more of the configuration"},{"line_number":64,"context_line":"  templates"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"When a node is deployed (using Nova or otherwise) Ironic will look at"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_4a0c40a4","line":63,"range":{"start_line":63,"start_character":42,"end_line":63,"end_character":49},"in_reply_to":"3f4b6375_bd2da8fe","updated":"2017-11-28 19:17:26.000000000","message":"that is misleading, will reword it.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"When a node is deployed (using Nova or otherwise) Ironic will look at"},{"line_number":67,"context_line":"``node.instance_info[\u0027traits\u0027]`` to check what traits a user has requested."},{"line_number":68,"context_line":"It will then look if any of the request traits match any of the configuration"},{"line_number":69,"context_line":"template traits (there may be multiple matches). This is then used to create"},{"line_number":70,"context_line":"at list of clean steps. The order of execution of the clean steps in is set by"},{"line_number":71,"context_line":"the priority that is defined in the code implementing the given clean step."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_1d483cca","line":68,"range":{"start_line":68,"start_character":13,"end_line":68,"end_character":17},"updated":"2017-10-31 15:00:13.000000000","message":"see","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":66,"context_line":"When a node is deployed (using Nova or otherwise) Ironic will look at"},{"line_number":67,"context_line":"``node.instance_info[\u0027traits\u0027]`` to check what traits a user has requested."},{"line_number":68,"context_line":"It will then look if any of the request traits match any of the configuration"},{"line_number":69,"context_line":"template traits (there may be multiple matches). This is then used to create"},{"line_number":70,"context_line":"at list of clean steps. The order of execution of the clean steps in is set by"},{"line_number":71,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":72,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_801e476e","line":69,"updated":"2017-11-09 19:54:54.000000000","message":"We need to be clear here. Does a trait map/match at most one template trait, or can it match more than one?\n\nAt our meeting, I thought we had discussed how it might map to more than one template trait.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":67,"context_line":"``node.instance_info[\u0027traits\u0027]`` to check what traits a user has requested."},{"line_number":68,"context_line":"It will then look if any of the request traits match any of the configuration"},{"line_number":69,"context_line":"template traits (there may be multiple matches). This is then used to create"},{"line_number":70,"context_line":"at list of clean steps. The order of execution of the clean steps in is set by"},{"line_number":71,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The existing infrastructure around \u0027do_node_clean\u0027 will be called with the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_dd13c4b7","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":2},"updated":"2017-10-31 15:00:13.000000000","message":"a","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":67,"context_line":"``node.instance_info[\u0027traits\u0027]`` to check what traits a user has requested."},{"line_number":68,"context_line":"It will then look if any of the request traits match any of the configuration"},{"line_number":69,"context_line":"template traits (there may be multiple matches). This is then used to create"},{"line_number":70,"context_line":"at list of clean steps. The order of execution of the clean steps in is set by"},{"line_number":71,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The existing infrastructure around \u0027do_node_clean\u0027 will be called with the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_bd16c8a6","line":70,"range":{"start_line":70,"start_character":66,"end_line":70,"end_character":68},"updated":"2017-10-31 15:00:13.000000000","message":"strike","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":71,"context_line":"the priority that is defined in the code implementing the given clean step."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The existing infrastructure around \u0027do_node_clean\u0027 will be called with the"},{"line_number":74,"context_line":"set to traits converted to a list of clean_steps. It can tell it is a deploy"},{"line_number":75,"context_line":"because the node will already be in the AVAILABLE state, and has a target node"},{"line_number":76,"context_line":"state of Active (not MANAGEABLE or AVAILABLE)."},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_7d1050a9","line":74,"range":{"start_line":74,"start_character":4,"end_line":74,"end_character":6},"updated":"2017-10-31 15:00:13.000000000","message":"of","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":73,"context_line":"The existing infrastructure around \u0027do_node_clean\u0027 will be called with the"},{"line_number":74,"context_line":"set to traits converted to a list of clean_steps. It can tell it is a deploy"},{"line_number":75,"context_line":"because the node will already be in the AVAILABLE state, and has a target node"},{"line_number":76,"context_line":"state of Active (not MANAGEABLE or AVAILABLE)."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Nova integration"},{"line_number":79,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_db342ee1","line":76,"updated":"2017-11-09 19:54:54.000000000","message":"All this stuff should be covered by the rfe for deploy steps. I think the trick is to figure out how to go from instance_info[\u0027traits\u0027] to the desired deploy steps and how to feed that into the deploy, since we aren\u0027t asking nova to issue the deploy request with the deploy steps. (Or maybe we should :D).","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e6149885668733044156d46d6b1e12e5300529bd","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"We can imagine one flavor marked with:"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* CUSTOM_CLASS_A"},{"line_number":88,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":89,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"And another flavor could be:"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_5d893124","line":89,"range":{"start_line":87,"start_character":0,"end_line":89,"end_character":35},"updated":"2017-10-30 18:24:23.000000000","message":"Is it how it\u0027s going to look in flavors?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"We can imagine one flavor marked with:"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* CUSTOM_CLASS_A"},{"line_number":88,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":89,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"And another flavor could be:"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_c2d7feed","line":89,"range":{"start_line":87,"start_character":0,"end_line":89,"end_character":35},"in_reply_to":"1f485f77_9be8f616","updated":"2017-11-27 11:21:24.000000000","message":"yeah, makes sense now that is all decided.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"We can imagine one flavor marked with:"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* CUSTOM_CLASS_A"},{"line_number":88,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":89,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"And another flavor could be:"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_fd70c00a","line":89,"range":{"start_line":87,"start_character":0,"end_line":89,"end_character":35},"in_reply_to":"3f4b6375_5d893124","updated":"2017-10-31 15:00:13.000000000","message":"The flavor\u0027s extra_specs will contain\n\n \u0027trait:CUSTOM_CLASS_A\u0027: \u0027required\u0027,\n \u0027trait:CUSTOM_BM_CONFIG_BIOS_VMX_ON\u0027: \u0027required\u0027,\n \u0027trait:CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\u0027: \u0027required\u0027","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"We can imagine one flavor marked with:"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* CUSTOM_CLASS_A"},{"line_number":88,"context_line":"* CUSTOM_BM_CONFIG_BIOS_VMX_ON"},{"line_number":89,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"And another flavor could be:"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_9be8f616","line":89,"range":{"start_line":87,"start_character":0,"end_line":89,"end_character":35},"in_reply_to":"3f4b6375_fd70c00a","updated":"2017-11-09 19:54:54.000000000","message":"would be good to be specific and put Eric\u0027s description.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":106,"context_line":"relating to traits are passed to Ironic via ``node.instance_info[\u0027traits\u0027]``"},{"line_number":107,"context_line":"by the ironic virt driver, in the usual way. This then activates the"},{"line_number":108,"context_line":"appropriate re-configuration of each Node when the node is deployed. For more"},{"line_number":109,"context_line":"details see:"},{"line_number":110,"context_line":"http://specs.openstack.org/openstack/nova-specs/specs/queens/approved/request-traits-in-nova.html"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_1bc5268f","line":107,"updated":"2017-11-09 19:54:54.000000000","message":"so for example, if it was the first flavor above, it\u0027d be node.instance_info[\u0027traits\u0027] \u003d [\u0027CUSTOM_BM_CONFIG_BIOS_VMX_ON\u0027, \u0027CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\u0027] ?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":106,"context_line":"relating to traits are passed to Ironic via ``node.instance_info[\u0027traits\u0027]``"},{"line_number":107,"context_line":"by the ironic virt driver, in the usual way. This then activates the"},{"line_number":108,"context_line":"appropriate re-configuration of each Node when the node is deployed. For more"},{"line_number":109,"context_line":"details see:"},{"line_number":110,"context_line":"http://specs.openstack.org/openstack/nova-specs/specs/queens/approved/request-traits-in-nova.html"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_8207b682","line":107,"in_reply_to":"1f485f77_1bc5268f","updated":"2017-11-27 11:21:24.000000000","message":"yeah","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"63033becc148652ed298b248f67fa15a0a301d27","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"When a Nova boot request is made for one of the chosen flavors, the extra specs"},{"line_number":106,"context_line":"relating to traits are passed to Ironic via ``node.instance_info[\u0027traits\u0027]``"},{"line_number":107,"context_line":"by the ironic virt driver, in the usual way. This then activates the"},{"line_number":108,"context_line":"appropriate re-configuration of each Node when the node is deployed. For more"},{"line_number":109,"context_line":"details see:"},{"line_number":110,"context_line":"http://specs.openstack.org/openstack/nova-specs/specs/queens/approved/request-traits-in-nova.html"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_368da531","line":107,"in_reply_to":"ff82abbf_8207b682","updated":"2017-11-28 19:17:26.000000000","message":"oops, really it has all of them, so VMX_OFF and DISK_STRIPE too.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"TODO - talk about traits being mutually exclusive based on interface and step."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"After the operator has created the above templates, to make those templates"},{"line_number":155,"context_line":"available to users, they set the following traits on the nodes they want those"},{"line_number":156,"context_line":"templates to be available:"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_db530ee2","line":154,"updated":"2017-11-09 19:54:54.000000000","message":"the templates are hard coded or some sort of config file that is read in or ? How does the operator get those templates into ironic?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"TODO - talk about traits being mutually exclusive based on interface and step."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"After the operator has created the above templates, to make those templates"},{"line_number":155,"context_line":"available to users, they set the following traits on the nodes they want those"},{"line_number":156,"context_line":"templates to be available:"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_42fd2e6c","line":154,"in_reply_to":"1f485f77_db530ee2","updated":"2017-11-27 11:21:24.000000000","message":"New API for operator to create configs, that is a bit like the current manual clean API.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":158,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":159,"context_line":"* CUSTOM_BM_CONFIG_RAID_DISK_STRIPE"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Now two flavors a created, one called GOLD and anther called GOLD_STRIPED."},{"line_number":162,"context_line":"The GOLD_STRIPED flavor requests CUSTOM_BM_CONFIG_RAID_DISK_STRIPE and GOLD"},{"line_number":163,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR."},{"line_number":164,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_5d55944f","line":161,"range":{"start_line":161,"start_character":16,"end_line":161,"end_character":17},"updated":"2017-10-31 15:00:13.000000000","message":"are","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":163,"context_line":"requests CUSTOM_BM_CONFIG_RAID_DISK_MIRROR."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":166,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":167,"context_line":"deploy process as normal."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Apply Config templates to a Resource Class"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_ddc62417","line":166,"range":{"start_line":166,"start_character":4,"end_line":166,"end_character":9},"updated":"2017-10-31 15:00:13.000000000","message":"node\u0027s","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e6149885668733044156d46d6b1e12e5300529bd","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":166,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":167,"context_line":"deploy process as normal."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Apply Config templates to a Resource Class"},{"line_number":170,"context_line":"------------------------------------------"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_ddcac14d","line":168,"updated":"2017-10-30 18:24:23.000000000","message":"Back to the question of state vs action. What happens if I have CUSTOM_BM_CONFIG_RAID_DISK_MIRROR on a node whose driver\n\n1. does not support RAID?\n\n2. does not support this particular configuration?\n\nI think in case #1 we can assume that the operator has put the node to this state.. but how do we make sure the operator is aware of that?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":166,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":167,"context_line":"deploy process as normal."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Apply Config templates to a Resource Class"},{"line_number":170,"context_line":"------------------------------------------"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_e2ed62b7","line":168,"in_reply_to":"1f485f77_db1aee15","updated":"2017-11-27 11:21:24.000000000","message":"I think the \"validate node\" traits checks will need to start doing this mapping check too.\n\nYeah, right now its a direction name match, which, I think we might need to tweak, but its a starting place.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":166,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":167,"context_line":"deploy process as normal."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Apply Config templates to a Resource Class"},{"line_number":170,"context_line":"------------------------------------------"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_db1aee15","line":168,"in_reply_to":"3f4b6375_5d035443","updated":"2017-11-09 19:54:54.000000000","message":"I think we need a mechanism to know which traits are associated with which template traits (I guess we\u0027re using the same name for both, to match?). Then, at the very least, when a trait is associated with a node , we can see if there is an associated template, and if so, see if the node\u0027s driver supports the deploy step(s) in that template. If we do this check at the time of adding traits to nodes, that may slow things down though.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When you do Nova boot with one of these flavors, the clean step is added to"},{"line_number":166,"context_line":"the nodes clean_steps, then executed, before continuing with the rest of the"},{"line_number":167,"context_line":"deploy process as normal."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Apply Config templates to a Resource Class"},{"line_number":170,"context_line":"------------------------------------------"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_5d035443","line":168,"in_reply_to":"3f4b6375_ddcac14d","updated":"2017-10-31 15:00:13.000000000","message":"Yeah, that\u0027s a \"user error\".  Is there any way to detect that up front?  I wouldn\u0027t think so - I would think it would just fail at deploy time.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":172,"context_line":"Above we talk about manually assigning the trait that enables the configuration"},{"line_number":173,"context_line":"template on each node. Even with automation this is error prone."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"As we already have automation to set a nodes Resource Class (via ironic"},{"line_number":176,"context_line":"inspector rules), we also enable the ability to set a configuration template"},{"line_number":177,"context_line":"as available on all nodes with a given Resource Class."},{"line_number":178,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_fdf7a058","line":175,"range":{"start_line":175,"start_character":39,"end_line":175,"end_character":44},"updated":"2017-10-31 15:00:13.000000000","message":"node\u0027s","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":176,"context_line":"inspector rules), we also enable the ability to set a configuration template"},{"line_number":177,"context_line":"as available on all nodes with a given Resource Class."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"If the resource class CUSTOM_GOLD was added into the resource classes list"},{"line_number":180,"context_line":"for both of the RAID related configuration templates above, now all nodes with"},{"line_number":181,"context_line":"a matching resource class will report the traits that show the configuration"},{"line_number":182,"context_line":"template is enabled. If some of those nodes were to have a driver that didn\u0027t"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_dbef8ee7","line":179,"updated":"2017-11-09 19:54:54.000000000","message":"you mean s/resource classes/\u0027resource_classes\u0027/ ? (took me a few minutes to parse/understand this sentence)","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":178,"context_line":""},{"line_number":179,"context_line":"If the resource class CUSTOM_GOLD was added into the resource classes list"},{"line_number":180,"context_line":"for both of the RAID related configuration templates above, now all nodes with"},{"line_number":181,"context_line":"a matching resource class will report the traits that show the configuration"},{"line_number":182,"context_line":"template is enabled. If some of those nodes were to have a driver that didn\u0027t"},{"line_number":183,"context_line":"support the raid interface, and specifically the create_configuration step in"},{"line_number":184,"context_line":"that interface, they would not report the trait."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_9bbb56e4","line":181,"updated":"2017-11-09 19:54:54.000000000","message":"what do you mean \u0027will report the traits\u0027. Who is the node reporting to? Is this part of introspection, that when a node\u0027s resource class is being set, that the node\u0027s traits (associated with that resource class) could also be set?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":180,"context_line":"for both of the RAID related configuration templates above, now all nodes with"},{"line_number":181,"context_line":"a matching resource class will report the traits that show the configuration"},{"line_number":182,"context_line":"template is enabled. If some of those nodes were to have a driver that didn\u0027t"},{"line_number":183,"context_line":"support the raid interface, and specifically the create_configuration step in"},{"line_number":184,"context_line":"that interface, they would not report the trait."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"To stop any confusion between traits set by the operator and traits the system"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_9d9e6c05","line":183,"range":{"start_line":183,"start_character":12,"end_line":183,"end_character":16},"updated":"2017-10-31 15:00:13.000000000","message":"RAID","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e4f7a08c996311ef5071e3263489b71dc36f42dc","unresolved":false,"context_lines":[{"line_number":184,"context_line":"that interface, they would not report the trait."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"To stop any confusion between traits set by the operator and traits the system"},{"line_number":187,"context_line":"has detected, there will be two separate lists of traits in the Node info. It"},{"line_number":188,"context_line":"is expected that the ironic virt driver in Nova will simply union the two"},{"line_number":189,"context_line":"lists before reporting the node traits to Placement."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_1d927cf7","line":187,"range":{"start_line":187,"start_character":28,"end_line":187,"end_character":56},"updated":"2017-10-31 15:00:13.000000000","message":"or an \u0027origin\u0027 column.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a8eead6264bf64ddaf8479d69527cb3903b91006","unresolved":false,"context_lines":[{"line_number":184,"context_line":"that interface, they would not report the trait."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"To stop any confusion between traits set by the operator and traits the system"},{"line_number":187,"context_line":"has detected, there will be two separate lists of traits in the Node info. It"},{"line_number":188,"context_line":"is expected that the ironic virt driver in Nova will simply union the two"},{"line_number":189,"context_line":"lists before reporting the node traits to Placement."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"ff82abbf_c245beb5","line":187,"range":{"start_line":187,"start_character":28,"end_line":187,"end_character":56},"in_reply_to":"1f485f77_1b7d261c","updated":"2017-11-27 11:21:24.000000000","message":"This does feel like a follow up thing, but it also makes the system way more useable. This was from dtantsur\u0027s feedback.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":184,"context_line":"that interface, they would not report the trait."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"To stop any confusion between traits set by the operator and traits the system"},{"line_number":187,"context_line":"has detected, there will be two separate lists of traits in the Node info. It"},{"line_number":188,"context_line":"is expected that the ironic virt driver in Nova will simply union the two"},{"line_number":189,"context_line":"lists before reporting the node traits to Placement."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_1b7d261c","line":187,"range":{"start_line":187,"start_character":28,"end_line":187,"end_character":56},"in_reply_to":"3f4b6375_1d927cf7","updated":"2017-11-09 19:54:54.000000000","message":"hmm. I feel like this entire section should be outside the scope of this particular rfe. The only thing that impacts this, is whether we have one or more lists of traits. But even then, I\u0027m not sure how you\u0027d do it. The node traits are going to be saved in a node_traits DB table (in your https://review.openstack.org/#/c/504531). Would you update that table to have an extra field \u0027operator\u0027 or \u0027auto\u0027 or \u0027origin\u0027 ?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7b6c2091c4ee40af5ed54acfa913012bdff75c09","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"We could create a whole new concept instead of re-using the clean_steps flow"},{"line_number":195,"context_line":"and functions. But that would require lots of changes to all the drivers to"},{"line_number":196,"context_line":"register a new thing that is really a duplicate of what they already register."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"We could automatically report the given configuration templates as available"},{"line_number":199,"context_line":"for nodes that support the given configuration steps, but really it is quite"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1f485f77_5b983e69","line":196,"updated":"2017-11-09 19:54:54.000000000","message":"well, that\u0027s the deploy steps work.","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e6149885668733044156d46d6b1e12e5300529bd","unresolved":false,"context_lines":[{"line_number":243,"context_line":""},{"line_number":244,"context_line":"TODO - Need to consider directly passing in with Configuration Templates should"},{"line_number":245,"context_line":"run in the deploy call, rather than implicitly via traits, mostly for the"},{"line_number":246,"context_line":"standalone case. Or should we always force the setting of traits?"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"Client (CLI) impact"},{"line_number":249,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_9df2099a","line":246,"updated":"2017-10-30 18:24:23.000000000","message":"I don\u0027t see a problem with using instance_info/traits in a standalone case, to be honest","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e6149885668733044156d46d6b1e12e5300529bd","unresolved":false,"context_lines":[{"line_number":268,"context_line":"Driver API impact"},{"line_number":269,"context_line":"-----------------"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"None, reuses existing driver methods."},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"Nova driver impact"},{"line_number":274,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f4b6375_fd38dd3d","line":271,"range":{"start_line":271,"start_character":0,"end_line":271,"end_character":37},"updated":"2017-10-30 18:24:23.000000000","message":"So, no driver validation then?","commit_id":"0b36473d31f480f999b1825b24914a49130afd96"}],"specs/approved/deploy-template-traits.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1722275"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This builds on the deployment steps spec, such that its possible to request"},{"line_number":14,"context_line":"a particular set of deployment steps by requesting a set of traits."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"When Ironic is used with Nova, this allows the end user to pick a Flavor, that"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_6ed474be","line":13,"updated":"2017-11-30 19:27:27.000000000","message":"maybe provide a link here to the spec. You provide it below @L54 but it is a bit far from the reference to the spec.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"This spec depends on the deployment-steps spec. It is assumed ironic already"},{"line_number":50,"context_line":"has the concept of a deployment step that can be specified when you deploy a"},{"line_number":51,"context_line":"node, in a very similar way to how currently trigger manual clean steps."},{"line_number":52,"context_line":"In addition, it is assumed there is a default set of steps that an operator"},{"line_number":53,"context_line":"configures to happen by default on every deploy. For more details see:"},{"line_number":54,"context_line":"https://review.openstack.org/#/c/412523/"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_ce1a606e","line":51,"updated":"2017-11-30 19:27:27.000000000","message":"nit grammatical. maybe s/currently/one can currently/","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":54,"context_line":"https://review.openstack.org/#/c/412523/"},{"line_number":55,"context_line":"(TODO link to specs website once above has merged)."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"This spec introduces the concept of a ``Deploy Templates``. They are a mapping"},{"line_number":58,"context_line":"from a valid ``os-trait`` for the name to a Deployment Step and all the"},{"line_number":59,"context_line":"arguments that should be given to the deployment step. There is a new API"},{"line_number":60,"context_line":"added to Ironic for Operators to specify these ``Deploy Templates``."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_4e6e50ca","line":57,"updated":"2017-11-30 19:27:27.000000000","message":"grammatical, either \u0027a Deploy Template\u0027 or \u0027concept of Deploy Templates\u0027.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":60,"context_line":"added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"To enable a ``Deploy Template`` on a given Ironic node, you add the"},{"line_number":63,"context_line":"``os-trait`` name of the deploy template to each Ironic where you want to"},{"line_number":64,"context_line":"enable that deploy template. The validation of the node must fail, if any of"},{"line_number":65,"context_line":"the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_8e045880","line":63,"updated":"2017-11-30 19:27:27.000000000","message":"what do you mean by \u0027to each Ironic\u0027. I thought the name of the deploy template is a traits name, and the trait name of the desired deploy template is found in the node\u0027s instance_info[\u003csomething, i forgot what\u003e]. Ok, you elaborate in the paragraph @L73.\n\nMaybe here, you meant s/Ironic/node/ or s/Ironic/Ironic node/ ?","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"347f9a6bcc4835d8f6429636e1593753cbf19aa7","unresolved":false,"context_lines":[{"line_number":60,"context_line":"added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"To enable a ``Deploy Template`` on a given Ironic node, you add the"},{"line_number":63,"context_line":"``os-trait`` name of the deploy template to each Ironic where you want to"},{"line_number":64,"context_line":"enable that deploy template. The validation of the node must fail, if any of"},{"line_number":65,"context_line":"the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_0636d704","line":63,"in_reply_to":"ff82abbf_8e045880","updated":"2017-12-04 09:55:12.000000000","message":"oops, each Ironic node, is what I meant.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":84,"context_line":"``deployment_steps`` for this particular provision operation. As already"},{"line_number":85,"context_line":"defined in the deployment steps spec, this is then combined with the list of"},{"line_number":86,"context_line":"``deployment_steps`` from what is configured to happen by default for all"},{"line_number":87,"context_line":"builds. The order in which the steps are executed will be defined but the"},{"line_number":88,"context_line":"priority that is assigned to each of the steps in the code that defines the"},{"line_number":89,"context_line":"step. Should there be any two steps that map to same priority level, this"},{"line_number":90,"context_line":"will be considered a conflict, and the API will fail with a 400 error (bad"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_0e260818","line":87,"updated":"2017-11-30 19:27:27.000000000","message":"s/but/by/ ?","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":85,"context_line":"defined in the deployment steps spec, this is then combined with the list of"},{"line_number":86,"context_line":"``deployment_steps`` from what is configured to happen by default for all"},{"line_number":87,"context_line":"builds. The order in which the steps are executed will be defined but the"},{"line_number":88,"context_line":"priority that is assigned to each of the steps in the code that defines the"},{"line_number":89,"context_line":"step. Should there be any two steps that map to same priority level, this"},{"line_number":90,"context_line":"will be considered a conflict, and the API will fail with a 400 error (bad"},{"line_number":91,"context_line":"request)."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_0e6b681f","line":88,"updated":"2017-11-30 19:27:27.000000000","message":"I\u0027m assuming that the deploy template indicates the priority for that deploy step, in which case this part \u0027in the code that defines the step\u0027 isn\u0027t quite accurate.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"cae45f5c4883d2ef069df20595226d1227272605","unresolved":false,"context_lines":[{"line_number":85,"context_line":"defined in the deployment steps spec, this is then combined with the list of"},{"line_number":86,"context_line":"``deployment_steps`` from what is configured to happen by default for all"},{"line_number":87,"context_line":"builds. The order in which the steps are executed will be defined but the"},{"line_number":88,"context_line":"priority that is assigned to each of the steps in the code that defines the"},{"line_number":89,"context_line":"step. Should there be any two steps that map to same priority level, this"},{"line_number":90,"context_line":"will be considered a conflict, and the API will fail with a 400 error (bad"},{"line_number":91,"context_line":"request)."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_29216cfc","line":88,"in_reply_to":"ff82abbf_0e6b681f","updated":"2017-12-04 10:14:33.000000000","message":"Oh... I thought we said it uses what is defined in the code. I must be missing some details here.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":88,"context_line":"priority that is assigned to each of the steps in the code that defines the"},{"line_number":89,"context_line":"step. Should there be any two steps that map to same priority level, this"},{"line_number":90,"context_line":"will be considered a conflict, and the API will fail with a 400 error (bad"},{"line_number":91,"context_line":"request)."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"},{"line_number":94,"context_line":"mapping between traits and deploy steps specified in the new"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_ae983c1b","line":91,"updated":"2017-11-30 19:27:27.000000000","message":"This last line should be deleted; it is addressed in the deploy steps spec. I just looked at that spec; the algorithm used means that there is an order so it won\u0027t fail :)","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    {"},{"line_number":129,"context_line":"      \"deploy_templates\": {"},{"line_number":130,"context_line":"          \"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\": {"},{"line_number":131,"context_line":"            \"interface\": \"raid\","},{"line_number":132,"context_line":"            \"step\": \"create_configuration\","},{"line_number":133,"context_line":"            \"args\": {"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_10bb860e","line":130,"updated":"2017-11-30 19:27:27.000000000","message":"i\u0027m not sure, should this be {\"name\":\"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\", \"interface\": \"raid\", ...} ?","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"347f9a6bcc4835d8f6429636e1593753cbf19aa7","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    {"},{"line_number":129,"context_line":"      \"deploy_templates\": {"},{"line_number":130,"context_line":"          \"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\": {"},{"line_number":131,"context_line":"            \"interface\": \"raid\","},{"line_number":132,"context_line":"            \"step\": \"create_configuration\","},{"line_number":133,"context_line":"            \"args\": {"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_893d18bd","line":130,"in_reply_to":"ff82abbf_10bb860e","updated":"2017-12-04 09:55:12.000000000","message":"Yeah, the array pattern is more common I guess, will convert it.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":129,"context_line":"      \"deploy_templates\": {"},{"line_number":130,"context_line":"          \"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\": {"},{"line_number":131,"context_line":"            \"interface\": \"raid\","},{"line_number":132,"context_line":"            \"step\": \"create_configuration\","},{"line_number":133,"context_line":"            \"args\": {"},{"line_number":134,"context_line":"                \"logical_disks\": ["},{"line_number":135,"context_line":"                    {"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_d0875e61","line":132,"updated":"2017-11-30 19:27:27.000000000","message":"let\u0027s add \"priority\" unless you can think of another way to do this.\n\nNote that unless the operator configured the system so that a default RAID config is done at deploy time, this create_configuration step would have a priority of 0, so we can\u0027t use that coded priority, otherwise, it won\u0027t get executed.\n\nIf, however, the operator had set the priority of create_configuration (guess we\u0027ll need to add a configuration option to allow for this...) to some non-zero integer, then yes, we could do something (eg. if priority is not specified in the template, use the priority that is coded...)","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"347f9a6bcc4835d8f6429636e1593753cbf19aa7","unresolved":false,"context_lines":[{"line_number":129,"context_line":"      \"deploy_templates\": {"},{"line_number":130,"context_line":"          \"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\": {"},{"line_number":131,"context_line":"            \"interface\": \"raid\","},{"line_number":132,"context_line":"            \"step\": \"create_configuration\","},{"line_number":133,"context_line":"            \"args\": {"},{"line_number":134,"context_line":"                \"logical_disks\": ["},{"line_number":135,"context_line":"                    {"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_49b5d030","line":132,"in_reply_to":"ff82abbf_d0875e61","updated":"2017-12-04 09:55:12.000000000","message":"Eek, sounds like that needs fixing up.\n\nI didn\u0027t put priority here, as its not a thing the operator sets, so seemed confusing to include it, but maybe it should be here. I should be clearer on request/response.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    }"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"When you do Nova boot with FlavorVMXMirror, the required traits for that flavor"},{"line_number":168,"context_line":"are set on ``node.instance_info.traits`` such that Ironic adds the deploy steps"},{"line_number":169,"context_line":"defined in CUSTOM_BM_CONFIG_BIOS_VMX_ON and CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":170,"context_line":"such that the node is appropriately configured for workloads that want that"},{"line_number":171,"context_line":"specific flavor."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_900c763c","line":168,"updated":"2017-11-30 19:27:27.000000000","message":"node.instance_info[\u0027traits\u0027]. The value would be [\u0027CUSTOM_CLASS_A\u0027, \u0027CUSTOM_BM_CONFIG_BIOS_VMX_ON\u0027, \u0027CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\u0027] right?","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    }"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"When you do Nova boot with FlavorVMXMirror, the required traits for that flavor"},{"line_number":168,"context_line":"are set on ``node.instance_info.traits`` such that Ironic adds the deploy steps"},{"line_number":169,"context_line":"defined in CUSTOM_BM_CONFIG_BIOS_VMX_ON and CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":170,"context_line":"such that the node is appropriately configured for workloads that want that"},{"line_number":171,"context_line":"specific flavor."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_0d79eb2d","line":168,"in_reply_to":"df87a7cf_097b488c","updated":"2017-12-05 15:17:46.000000000","message":"Oops, right.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"347f9a6bcc4835d8f6429636e1593753cbf19aa7","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    }"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"When you do Nova boot with FlavorVMXMirror, the required traits for that flavor"},{"line_number":168,"context_line":"are set on ``node.instance_info.traits`` such that Ironic adds the deploy steps"},{"line_number":169,"context_line":"defined in CUSTOM_BM_CONFIG_BIOS_VMX_ON and CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":170,"context_line":"such that the node is appropriately configured for workloads that want that"},{"line_number":171,"context_line":"specific flavor."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_097b488c","line":168,"in_reply_to":"ff82abbf_900c763c","updated":"2017-12-04 09:55:12.000000000","message":"CUSTOM_CLASS_A isn\u0027t a trait, its a resource class, so its not in the list.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":182,"context_line":"  of their deploy templates. We could better support the user of standard"},{"line_number":183,"context_line":"  traits if we added a list of traits associated with each deploy template."},{"line_number":184,"context_line":"  That way a standard trait can be associated with multiple deploy templates."},{"line_number":185,"context_line":"  You can tell which it maps to by seeing with deploy template names are"},{"line_number":186,"context_line":"  associated with the specific node you are provisioning, and looking up which"},{"line_number":187,"context_line":"  deploy template also has the specified standard trait as an alias."},{"line_number":188,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_f052a2de","line":185,"updated":"2017-11-30 19:27:27.000000000","message":"s/with/which/","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":184,"context_line":"  That way a standard trait can be associated with multiple deploy templates."},{"line_number":185,"context_line":"  You can tell which it maps to by seeing with deploy template names are"},{"line_number":186,"context_line":"  associated with the specific node you are provisioning, and looking up which"},{"line_number":187,"context_line":"  deploy template also has the specified standard trait as an alias."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* For some operators, they will end up creating a crazy number of flavors to"},{"line_number":190,"context_line":"  cover all the possible combinations of hardware they want to offer. It is"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_d0bf5ece","line":187,"updated":"2017-11-30 19:27:27.000000000","message":"I don\u0027t quite understand this last sentence. I was envisioning extending the deploy template to have a \"traits\" key. Its value would be a list of trait names; if node.instance_info[\u0027traits\u0027] is a subset of the template.traits, then that deploy step is executed.\n\nOr do you think people would want to get fancy and put in rules like \u0027if Trait1 in node.instance and Trait2 is not in node.instance ...\u0027 ? I think we already have that grammar that we copied from nova and put in some oslo library... oh yeah, https://github.com/openstack/oslo.utils/blob/master/oslo_utils/specs_matcher.py. darn, i knew we should have documented that...)","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"347f9a6bcc4835d8f6429636e1593753cbf19aa7","unresolved":false,"context_lines":[{"line_number":184,"context_line":"  That way a standard trait can be associated with multiple deploy templates."},{"line_number":185,"context_line":"  You can tell which it maps to by seeing with deploy template names are"},{"line_number":186,"context_line":"  associated with the specific node you are provisioning, and looking up which"},{"line_number":187,"context_line":"  deploy template also has the specified standard trait as an alias."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* For some operators, they will end up creating a crazy number of flavors to"},{"line_number":190,"context_line":"  cover all the possible combinations of hardware they want to offer. It is"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_c9a9e0df","line":187,"in_reply_to":"ff82abbf_d0bf5ece","updated":"2017-12-04 09:55:12.000000000","message":"The use case is two things with the same Trait in. I kinda wanted to avoid the detail here, but its probably more confusing without it, will see what I can do.","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6ecab96608883be1b3561fa22c74c18dc3e34fae","unresolved":false,"context_lines":[{"line_number":195,"context_line":"* While ironic inspector can be used to ensure each node is given an"},{"line_number":196,"context_line":"  appropriate set of traits, it feels error prone to add so many traits to each"},{"line_number":197,"context_line":"  Ironic node. It is hoped when a concept of node groups is added, traits can"},{"line_number":198,"context_line":"  be instead by applied to a group of nodes, in addition to individual nodes"},{"line_number":199,"context_line":"  (possibly in a similar way to host aggregates in Nova). One suggestion was"},{"line_number":200,"context_line":"  to use the Resource Class as a possible grouping, but that is only a very"},{"line_number":201,"context_line":"  small part of the more general issue of groups nodes to physical networks,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_10c5c65b","line":198,"updated":"2017-11-30 19:27:27.000000000","message":"maybe s/be instead by applied/instead be applied/","commit_id":"779b2d0710325b5b497a5daacc1ee2b240e0bfe8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This builds on the deployment steps spec, such that its possible to request"},{"line_number":14,"context_line":"a particular set of deployment steps by requesting a set of traits:"},{"line_number":15,"context_line":"https://review.openstack.org/#/c/412523"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"When Ironic is used with Nova, this allows the end user to pick a Flavor, that"},{"line_number":18,"context_line":"requires a specific set of traits, that Ironic turns into a request for a"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_b4faac3f","line":15,"updated":"2017-12-05 15:17:46.000000000","message":"nit, missing period at end.","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":53,"context_line":"In addition, it is assumed there is a default set of steps that an operator"},{"line_number":54,"context_line":"configures to happen by default on every deploy. It is assumed that each"},{"line_number":55,"context_line":"task will have a priority defined, to determine the order that task runs"},{"line_number":56,"context_line":"relative to any other enabled deploy steps. The configuration and API is used"},{"line_number":57,"context_line":"to decide if a task runs by default or not, the priority says when a task runs"},{"line_number":58,"context_line":"if the task should run during deployment. For more details see:"},{"line_number":59,"context_line":"https://review.openstack.org/#/c/412523"},{"line_number":60,"context_line":"(TODO link to specs website once above has merged)."}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_74366406","line":57,"range":{"start_line":56,"start_character":44,"end_line":57,"end_character":42},"updated":"2017-12-05 15:17:46.000000000","message":"it is config options and hard-coded priorities that are used to decide if a deploy step runs by default or not. The API is the mechanism to override the defaults. (Or did I misinterpret this phrase?)","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":59,"context_line":"https://review.openstack.org/#/c/412523"},{"line_number":60,"context_line":"(TODO link to specs website once above has merged)."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"This spec introduces the concept of a ``Deploy Template``. They are a mapping"},{"line_number":63,"context_line":"from a valid ``os-trait`` for the name to a Deployment Step and all the"},{"line_number":64,"context_line":"arguments that should be given to the deployment step. There is a new API"},{"line_number":65,"context_line":"added to Ironic for Operators to specify these ``Deploy Templates``."}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_bf128557","line":62,"updated":"2017-12-05 15:17:46.000000000","message":"nit s/They are/It is/","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":93,"context_line":"priority that is assigned to each of the steps in the code that defines the"},{"line_number":94,"context_line":"step. Should there be the same deploy step called twice (i.e. two sets of"},{"line_number":95,"context_line":"RAID config), the API will fail with a 400 error (bad request). This can"},{"line_number":96,"context_line":"happen when the default set of deploy steps conflicts with what the boot"},{"line_number":97,"context_line":"request."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_9fbc6106","line":96,"updated":"2017-12-05 15:17:46.000000000","message":"nit s/what//the deploy templates associated with/ ?","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":94,"context_line":"step. Should there be the same deploy step called twice (i.e. two sets of"},{"line_number":95,"context_line":"RAID config), the API will fail with a 400 error (bad request). This can"},{"line_number":96,"context_line":"happen when the default set of deploy steps conflicts with what the boot"},{"line_number":97,"context_line":"request."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"},{"line_number":100,"context_line":"mapping between traits and deploy steps specified in the new"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_9fc6a167","line":97,"updated":"2017-12-05 15:17:46.000000000","message":"So we have\n1. core deploy steps; priorities are hard-coded\n2. \u0027always\u0027 deploy steps; priorities are/should be typically set via config option\n3. \u0027one-time\u0027 deploy steps, via API request to deploy an instance. The priorities of these can override the same steps in 2).\n\nWhere do these deploy-steps-via-traits (\u0027trait\u0027 deploy steps) fit in? If we allow \u0027one-time\u0027 steps to override, should we be consistent and allow these \u0027trait\u0027 deploy steps to also override? Off the top of my head, we could: \n\nA. Allow overrides, \u0027one-time\u0027 overrides \u0027trait\u0027 overrides \u0027always\u0027 (which overrides \u0027core\u0027 if we ever allow that)\n\nB. As A., but only allow an override to a deploy step that had a priority of 0. So this means that we cannot \u0027turn off\u0027 a deploy step, and that if there are two (or more) of the same deploy step with different non-zero priorities, that is an error.\n\nI think I left a question in the deploy-steps spec, as to whether there is a use case for wanting to execute the same deploy step more than once during the deploy process; that would complicate things... maybe we should just say no...","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"cd0c7f31c896b799ec91c026b8723450581f9187","unresolved":false,"context_lines":[{"line_number":94,"context_line":"step. Should there be the same deploy step called twice (i.e. two sets of"},{"line_number":95,"context_line":"RAID config), the API will fail with a 400 error (bad request). This can"},{"line_number":96,"context_line":"happen when the default set of deploy steps conflicts with what the boot"},{"line_number":97,"context_line":"request."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"},{"line_number":100,"context_line":"mapping between traits and deploy steps specified in the new"}],"source_content_type":"text/x-rst","patch_set":11,"id":"9f91af0f_068d5c7a","line":97,"in_reply_to":"df87a7cf_9fc6a167","updated":"2018-01-03 17:46:56.000000000","message":"+1 on not allowing a single step to get executed twice. Simpler to say it is just an override.","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":176,"context_line":""},{"line_number":177,"context_line":"There is no priority in the above details, because priority is defined in the"},{"line_number":178,"context_line":"definition of each interface and step pair, and cannot be changed by the"},{"line_number":179,"context_line":"operator."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"When you do Nova boot with FlavorVMXMirror, the required traits for that flavor"},{"line_number":182,"context_line":"are set on ``node.instance_info.traits`` such that Ironic adds the deploy steps"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_8d089bd9","line":179,"updated":"2017-12-05 15:17:46.000000000","message":"we need to clarify this. If the priority is non-zero, it means the deploy step will be executed, regardless of whether there is a traits-\u003etemplate associated with that step. Unless we add a second eg \u0027traits-priority\u0027 value, that is to be used only via the traits-\u003etemplate thing, but then why not put in the priority in this template...  I guess there could be different operators? One that sets the ironic config values, and others that can only submit these templates?","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":179,"context_line":"operator."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"When you do Nova boot with FlavorVMXMirror, the required traits for that flavor"},{"line_number":182,"context_line":"are set on ``node.instance_info.traits`` such that Ironic adds the deploy steps"},{"line_number":183,"context_line":"defined in CUSTOM_BM_CONFIG_BIOS_VMX_ON and CUSTOM_BM_CONFIG_RAID_DISK_MIRROR"},{"line_number":184,"context_line":"such that the node is appropriately configured for workloads that want that"},{"line_number":185,"context_line":"specific flavor."}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_8dbf3bcf","line":182,"updated":"2017-12-05 15:17:46.000000000","message":"s/node.instance_info.traits/node.instance_info[\u0027traits\u0027]/\n\ninstance_info is a dictionary","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":192,"context_line":"extensions to this concept that are not being included:"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"* Operators could set the priority of each deploy template, but here we follow"},{"line_number":195,"context_line":"  the pattern of the manual clean steps, and only use the priority set in the"},{"line_number":196,"context_line":"  code. The thinking is that the author of the clean step ensures it is given"},{"line_number":197,"context_line":"  a priority that ensure it runs in the correct order relative to other tasks"},{"line_number":198,"context_line":"  that must run either before or after this particular task."}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_4d037374","line":195,"updated":"2017-12-05 15:17:46.000000000","message":"to be clear, for manual clean steps, the order they are executed is the order in which the clean steps are specified in the API request. *Only* those steps in the request are executed -- this is different from the deploy steps, which is a combination of steps taken from diff places as described in the spec (and I mentioned above in another comment).","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":195,"context_line":"  the pattern of the manual clean steps, and only use the priority set in the"},{"line_number":196,"context_line":"  code. The thinking is that the author of the clean step ensures it is given"},{"line_number":197,"context_line":"  a priority that ensure it runs in the correct order relative to other tasks"},{"line_number":198,"context_line":"  that must run either before or after this particular task."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* While you can use standard traits as names of the deploy templates, it is"},{"line_number":201,"context_line":"  likely that many operators will be forced into using custom traits for most"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_6d2bd7ea","line":198,"updated":"2017-12-05 15:17:46.000000000","message":"If all this is about clean steps, it isn\u0027t correct.","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c1591f50a933fc1940a165fc844e90463ec47bc5","unresolved":false,"context_lines":[{"line_number":205,"context_line":"  for the name of the deploy template, but this alias may also be used"},{"line_number":206,"context_line":"  by many other deploy templates. The node validate will fail if for any"},{"line_number":207,"context_line":"  individual node one of traits set maps to multiple deploy templates."},{"line_number":208,"context_line":"  To disambiguate which deploy template is requested, you can looking at what"},{"line_number":209,"context_line":"  deploy template names are in the chosen node\u0027s trait list. For each deploy"},{"line_number":210,"context_line":"  template you look at any other traits that can be used to trigger that"},{"line_number":211,"context_line":"  template, eventually building up a trait to deploy template mapping for each"}],"source_content_type":"text/x-rst","patch_set":11,"id":"df87a7cf_ed55a751","line":208,"updated":"2017-12-05 15:17:46.000000000","message":"s/looking/look/","commit_id":"0f8708f57ce206cffed7a54571da2c62ea57f5ba"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"781df46ea0e08da2efbd4d80228d1425a4d6b7c7","unresolved":false,"context_lines":[{"line_number":110,"context_line":"deploy steps, i.e. you can only disable the core step, you can\u0027t change the"},{"line_number":111,"context_line":"order of its execution."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"If you specify an explicit list of deploy steps when triggering the deploy, and"},{"line_number":114,"context_line":"a requested trait maps to one or more deploy templates, the request will"},{"line_number":115,"context_line":"fail with a 400 (bad request) error. Resolving conflicts between the two"},{"line_number":116,"context_line":"approaches will likely lead to confusion, until a clear set of use cases for"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_2c918747","line":113,"updated":"2018-09-11 18:13:01.000000000","message":"we don\u0027t yet have an API that allows you to specify a list of deploy steps. but if we did, this would be true :)","commit_id":"65f71123c6f2605e4de368b3bbffec4f18772f10"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"dbda516b620ad0e692cdf0d0f3a2ec38460af537","unresolved":false,"context_lines":[{"line_number":165,"context_line":"      \"deploy_templates\": ["},{"line_number":166,"context_line":"          {"},{"line_number":167,"context_line":"            \"name\": \"CUSTOM_BM_CONFIG_RAID_DISK_MIRROR\","},{"line_number":168,"context_line":"            \"interface\": \"raid\","},{"line_number":169,"context_line":"            \"step\": \"create_configuration\","},{"line_number":170,"context_line":"            \"args\": {"},{"line_number":171,"context_line":"                \"logical_disks\": ["},{"line_number":172,"context_line":"                    {"},{"line_number":173,"context_line":"                        \"size_gb\": \"MAX\","},{"line_number":174,"context_line":"                        \"raid_level\": \"1\","},{"line_number":175,"context_line":"                        \"is_root_volume\": true"},{"line_number":176,"context_line":"                    }"},{"line_number":177,"context_line":"                ],"},{"line_number":178,"context_line":"                delete_configuration: true"},{"line_number":179,"context_line":"            },"},{"line_number":180,"context_line":"            \"priority\": 10"},{"line_number":181,"context_line":"          },"},{"line_number":182,"context_line":"          {"},{"line_number":183,"context_line":"            \"name\": \"CUSTOM_BM_CONFIG_RAID_DISK_STRIPE\","}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_fb0a4a1e","line":180,"range":{"start_line":168,"start_character":12,"end_line":180,"end_character":26},"updated":"2018-09-12 16:38:28.000000000","message":"Lets make this so it can be a list based upon the name matching.","commit_id":"65f71123c6f2605e4de368b3bbffec4f18772f10"}],"specs/approved/deploy-templates.rst":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"6676a93e11ccce2b329e711065738d37503dea24","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Deploy Templates"},{"line_number":64,"context_line":"----------------"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"This spec introduces the concept of a ``Deploy Template``. It is a mapping"},{"line_number":67,"context_line":"from a valid ``os-trait`` for the node to one or more Deployment Steps and all"},{"line_number":68,"context_line":"the arguments that should be given to those deployment steps. There is a new"},{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_7589346d","line":67,"range":{"start_line":66,"start_character":59,"end_line":67,"end_character":25},"updated":"2018-09-27 20:02:51.000000000","message":"that\u0027s not what os-traits is for. These aren\u0027t capabilities. These are just configuration key/value pairs that you want to passthrough the Nova API straight to the Ironic virt driver. This is basically just vendor_data IMHO.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Deploy Templates"},{"line_number":64,"context_line":"----------------"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"This spec introduces the concept of a ``Deploy Template``. It is a mapping"},{"line_number":67,"context_line":"from a valid ``os-trait`` for the node to one or more Deployment Steps and all"},{"line_number":68,"context_line":"the arguments that should be given to those deployment steps. There is a new"},{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_fbdc5546","line":67,"range":{"start_line":66,"start_character":59,"end_line":67,"end_character":25},"in_reply_to":"3f79a3b5_7589346d","updated":"2018-09-27 22:57:26.000000000","message":"+1 to Jay\u0027s statement. I more-so see this as:\n   if \u0027custom_magical\u0027 in list_of_traits:\n       moar_magic.do_custom_magical(task)\n\nI think the disconnect is calling on os-traits in this statement. I think the example down by L152 frames this as needed.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"ff51926a8c7e9260e931db09790021897bf3bf84","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Deploy Templates"},{"line_number":64,"context_line":"----------------"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"This spec introduces the concept of a ``Deploy Template``. It is a mapping"},{"line_number":67,"context_line":"from a valid ``os-trait`` for the node to one or more Deployment Steps and all"},{"line_number":68,"context_line":"the arguments that should be given to those deployment steps. There is a new"},{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_fe05187a","line":67,"range":{"start_line":66,"start_character":59,"end_line":67,"end_character":25},"in_reply_to":"3f79a3b5_c86f46c2","updated":"2018-09-28 11:34:32.000000000","message":"Spoke to John about this, and it was intentional. He wanted to be able to point users to traits in os-traits for things like RAID-10, and have people using consistent naming where possible. I don\u0027t think it\u0027s a deal breaker for him.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Deploy Templates"},{"line_number":64,"context_line":"----------------"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"This spec introduces the concept of a ``Deploy Template``. It is a mapping"},{"line_number":67,"context_line":"from a valid ``os-trait`` for the node to one or more Deployment Steps and all"},{"line_number":68,"context_line":"the arguments that should be given to those deployment steps. There is a new"},{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_c86f46c2","line":67,"range":{"start_line":66,"start_character":59,"end_line":67,"end_character":25},"in_reply_to":"3f79a3b5_fbdc5546","updated":"2018-09-28 09:25:36.000000000","message":"I agree that we shouldn\u0027t be using standard trait names for deploy templates, so the references to os-traits are misleading. I think John\u0027s intention was to state that the trait name would be of the correct format.\n\nJay, is that the issue here in your view or is it more generally about the use of traits for this purpose?\n\nI don\u0027t see how this relates to vendor data. In my understanding, vendor data is, since we want to be able to map different flavors to different deploy templates, but perhaps I\u0027m missing something.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"6676a93e11ccce2b329e711065738d37503dea24","unresolved":false,"context_lines":[{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"To allow a ``Deploy Template`` for a given Ironic node, you add the"},{"line_number":72,"context_line":"``os-traits`` name of the deploy template to the ``traits`` list on each Ironic"},{"line_number":73,"context_line":"node that needs the deploy template enabled. The validation of the node must"},{"line_number":74,"context_line":"fail if any of the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_75de146b","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":41},"updated":"2018-09-27 20:02:51.000000000","message":"I don\u0027t really know what you mean by \"os-traits name of the deploy template\". There\u0027s no such thing.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"To allow a ``Deploy Template`` for a given Ironic node, you add the"},{"line_number":72,"context_line":"``os-traits`` name of the deploy template to the ``traits`` list on each Ironic"},{"line_number":73,"context_line":"node that needs the deploy template enabled. The validation of the node must"},{"line_number":74,"context_line":"fail if any of the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_e83322c3","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":41},"in_reply_to":"3f79a3b5_1b2831ec","updated":"2018-09-28 09:25:36.000000000","message":"add the name of the deploy template, which must be a valid trait name, to the ``traits`` list?","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"To allow a ``Deploy Template`` for a given Ironic node, you add the"},{"line_number":72,"context_line":"``os-traits`` name of the deploy template to the ``traits`` list on each Ironic"},{"line_number":73,"context_line":"node that needs the deploy template enabled. The validation of the node must"},{"line_number":74,"context_line":"fail if any of the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_1b2831ec","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":41},"in_reply_to":"3f79a3b5_75de146b","updated":"2018-09-27 22:57:26.000000000","message":"\"add the trait name, which matches the deploy template to the ``traits`` list\"?","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"6676a93e11ccce2b329e711065738d37503dea24","unresolved":false,"context_lines":[{"line_number":78,"context_line":"(that may or may not map to a deploy template) only nodes that have the trait"},{"line_number":79,"context_line":"set will be offered as candidates by Nova\u0027s Placement API."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"To request the specified ``Deploy Template`` when you provision a particular"},{"line_number":82,"context_line":"Ironic node, the corresponding trait is added to a list in"},{"line_number":83,"context_line":"``node.instance_info`` under the key of ``traits``. This is what Nova\u0027s ironic"},{"line_number":84,"context_line":"virt driver already does for any required trait in the flavor\u0027s extra specs for"},{"line_number":85,"context_line":"that instance. Again, Ironic already validates that the traits in"},{"line_number":86,"context_line":"``node.instance_info`` are a subset of the traits that the Operator has set on"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_f5cb04a1","line":83,"range":{"start_line":81,"start_character":0,"end_line":83,"end_character":52},"updated":"2018-09-27 20:02:51.000000000","message":"why? Why not call the key \"deploy_template\" since that\u0027s all this is: an indication of which deploy template to configure the node with.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":78,"context_line":"(that may or may not map to a deploy template) only nodes that have the trait"},{"line_number":79,"context_line":"set will be offered as candidates by Nova\u0027s Placement API."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"To request the specified ``Deploy Template`` when you provision a particular"},{"line_number":82,"context_line":"Ironic node, the corresponding trait is added to a list in"},{"line_number":83,"context_line":"``node.instance_info`` under the key of ``traits``. This is what Nova\u0027s ironic"},{"line_number":84,"context_line":"virt driver already does for any required trait in the flavor\u0027s extra specs for"},{"line_number":85,"context_line":"that instance. Again, Ironic already validates that the traits in"},{"line_number":86,"context_line":"``node.instance_info`` are a subset of the traits that the Operator has set on"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_dbe399d7","line":83,"range":{"start_line":81,"start_character":0,"end_line":83,"end_character":52},"in_reply_to":"3f79a3b5_f5cb04a1","updated":"2018-09-27 22:57:26.000000000","message":"The intent is to be automatic based on implied trait to replace the functionality leveraged with capabilities. As such, the desired/selected traits being published to the node.instance_info[\u0027traits\u0027] field is exactly what we should be doing because it is implied based upon the specific selected traits.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":85,"context_line":"that instance. Again, Ironic already validates that the traits in"},{"line_number":86,"context_line":"``node.instance_info`` are a subset of the traits that the Operator has set on"},{"line_number":87,"context_line":"the Ironic node, via the new node-traits API."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"During the provisioning process Ironic checks the list of traits set in"},{"line_number":90,"context_line":"``node.instance_info`` and checks if they match any ``Deploy Templates``. The"},{"line_number":91,"context_line":"list of matching ``Deploy Templates`` are then used to extend the list of"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_7b6e052d","line":88,"updated":"2018-09-27 22:57:26.000000000","message":"I hate to say this, but I think describing the mechanism interaction with nova cloudys the waters. If we start with \u0027traits\u0027 key in instance_info as how this is interacted with as it is part of the desired requested state, then I think that is along the lines we should be thinking/writing.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":85,"context_line":"that instance. Again, Ironic already validates that the traits in"},{"line_number":86,"context_line":"``node.instance_info`` are a subset of the traits that the Operator has set on"},{"line_number":87,"context_line":"the Ironic node, via the new node-traits API."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"During the provisioning process Ironic checks the list of traits set in"},{"line_number":90,"context_line":"``node.instance_info`` and checks if they match any ``Deploy Templates``. The"},{"line_number":91,"context_line":"list of matching ``Deploy Templates`` are then used to extend the list of"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_88194e24","line":88,"in_reply_to":"3f79a3b5_7b6e052d","updated":"2018-09-28 09:25:36.000000000","message":"You\u0027re probably right, but this feature has significant implications for usability. If the design does not include the actual user\u0027s interactions with this feature we risk building something that is clunky or does not fit the requirements.\n\nWould it help if we clearly separated discussion of nova and ironic?","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":92,"context_line":"deployment steps for this particular provision operation. As already"},{"line_number":93,"context_line":"defined in the deployment steps framework, this is then combined with the list"},{"line_number":94,"context_line":"of deployment steps from what is configured to happen by default for all"},{"line_number":95,"context_line":"builds."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"The order in which the steps are executed will be defined by the priority of"},{"line_number":98,"context_line":"each step. If the code for a deploy step defines a deploy priority of 0, and"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_fb453570","line":95,"updated":"2018-09-27 22:57:26.000000000","message":"I think this is the key first paragraph beyond setting context.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"6676a93e11ccce2b329e711065738d37503dea24","unresolved":false,"context_lines":[{"line_number":102,"context_line":"the code default and any configuration override."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the API will fail with a"},{"line_number":106,"context_line":"400 error (bad request). Any deploy step in a requested deploy template will"},{"line_number":107,"context_line":"override the default arguments and priority for that deploy step. This means"},{"line_number":108,"context_line":"there is no way to get a deploy step to execute twice during the deploy"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_f559c4fc","line":105,"range":{"start_line":105,"start_character":42,"end_line":105,"end_character":59},"updated":"2018-09-27 20:02:51.000000000","message":"which API will fail? The nova virt driver\u0027s spawn() API method? or the Ironic node provision/deploy API?","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":102,"context_line":"the code default and any configuration override."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the API will fail with a"},{"line_number":106,"context_line":"400 error (bad request). Any deploy step in a requested deploy template will"},{"line_number":107,"context_line":"override the default arguments and priority for that deploy step. This means"},{"line_number":108,"context_line":"there is no way to get a deploy step to execute twice during the deploy"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_08bc5ed9","line":105,"range":{"start_line":105,"start_character":42,"end_line":105,"end_character":59},"in_reply_to":"3f79a3b5_1b17d156","updated":"2018-09-28 09:25:36.000000000","message":"+1 for catching this in validate.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"the code default and any configuration override."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the API will fail with a"},{"line_number":106,"context_line":"400 error (bad request). Any deploy step in a requested deploy template will"},{"line_number":107,"context_line":"override the default arguments and priority for that deploy step. This means"},{"line_number":108,"context_line":"there is no way to get a deploy step to execute twice during the deploy"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_1b17d156","line":105,"range":{"start_line":105,"start_character":42,"end_line":105,"end_character":59},"in_reply_to":"3f79a3b5_f559c4fc","updated":"2018-09-27 22:57:26.000000000","message":"IMHO, It should return the failure upon node validate in the spawn() method\u0027s execution, before ironic is told to deploy the node.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"6676a93e11ccce2b329e711065738d37503dea24","unresolved":false,"context_lines":[{"line_number":115,"context_line":""},{"line_number":116,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"},{"line_number":117,"context_line":"mapping between traits and deploy steps specified in the new"},{"line_number":118,"context_line":"``Deploy Templates`` API."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Current Limitations"},{"line_number":121,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_75fa94ba","line":118,"updated":"2018-09-27 20:02:51.000000000","message":"In short, this is just hacking the traits API in placement and Nova to allow passthrough of instance configuration data from the flavor extra specs to the node.instance_info.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":115,"context_line":""},{"line_number":116,"context_line":"In summary, you can use traits to specify additional deploy steps, by the"},{"line_number":117,"context_line":"mapping between traits and deploy steps specified in the new"},{"line_number":118,"context_line":"``Deploy Templates`` API."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Current Limitations"},{"line_number":121,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_062538ae","line":118,"in_reply_to":"3f79a3b5_75fa94ba","updated":"2018-09-27 22:57:26.000000000","message":"Similar, but I wouldn\u0027t call it hacking in that the data is already posted. This can be done today without any changes to the virt driver (as long as we\u0027re actually correctly posting the list of traits today, which afaik we are).","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"Response codes: 200, 400"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Policy: admin or observer."},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"Show one"},{"line_number":340,"context_line":"~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_06cf78b3","line":337,"range":{"start_line":337,"start_character":8,"end_line":337,"end_character":26},"updated":"2018-09-27 22:57:26.000000000","message":"nit: admin read/write, observer read?","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"Response codes: 200, 400"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Policy: admin or observer."},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"Show one"},{"line_number":340,"context_line":"~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_48c1f64d","line":337,"range":{"start_line":337,"start_character":8,"end_line":337,"end_character":26},"in_reply_to":"3f79a3b5_06cf78b3","updated":"2018-09-28 09:25:36.000000000","message":"this is a list API, so read only.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1b59a47941f6c4e256a16a1abbe6e9fa0dd5fcc1","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"Update a deploy template::"},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    PATCH /v1/deploy-templates/{deploy template ident}"},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"Request::"},{"line_number":420,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_86c2a885","line":417,"updated":"2018-09-27 22:57:26.000000000","message":"Assuming ident \u003d\u003d uuid, all good.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"f86bc5f744d75ddaa06908df1b4c48a7dffda005","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"Update a deploy template::"},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    PATCH /v1/deploy-templates/{deploy template ident}"},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"Request::"},{"line_number":420,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_08a1bea8","line":417,"in_reply_to":"3f79a3b5_86c2a885","updated":"2018-09-28 09:25:36.000000000","message":"My plan is to allow query via (trait) name or UUID. I specified that in the client section, but it actually makes more sense to specify as part of the API.","commit_id":"3c6f35ad4691b38e22a3468cfbd81ec881bf27d0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"To allow a ``Deploy Template`` for a given Ironic node, you add the"},{"line_number":72,"context_line":"``os-traits`` name of the deploy template to the ``traits`` list on each Ironic"},{"line_number":73,"context_line":"node that needs the deploy template enabled. The validation of the node must"},{"line_number":74,"context_line":"fail if any of the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_f8e53ba4","line":72,"updated":"2018-11-20 16:51:00.000000000","message":"Just to clarify: it still can be a custom trait that has the correct format?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":69,"context_line":"API added to Ironic for Operators to specify these ``Deploy Templates``."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"To allow a ``Deploy Template`` for a given Ironic node, you add the"},{"line_number":72,"context_line":"``os-traits`` name of the deploy template to the ``traits`` list on each Ironic"},{"line_number":73,"context_line":"node that needs the deploy template enabled. The validation of the node must"},{"line_number":74,"context_line":"fail if any of the enabled ``Deploy Templates`` are not supported on that node."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_649941cc","line":72,"in_reply_to":"3f79a3b5_f8e53ba4","updated":"2018-12-07 16:47:30.000000000","message":"Yes, I\u0027ll update.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":102,"context_line":"the code default and any configuration override."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the Ironic node validate API will"},{"line_number":106,"context_line":"fail with a 400 error (bad request). Any deploy step in a requested deploy"},{"line_number":107,"context_line":"template will override the default arguments and priority for that deploy step."},{"line_number":108,"context_line":"This means there is no way to get a deploy step to execute twice during the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_98fc4741","line":105,"updated":"2018-11-20 16:51:00.000000000","message":"Strictly speaking, there may be deploy steps that can be repeated with different arguments. E.g. if we have a \"partition_disk\" step, it can be called for several disks. We can avoid it, of course, but I wonder if this limitation is too strict.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":102,"context_line":"the code default and any configuration override."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the Ironic node validate API will"},{"line_number":106,"context_line":"fail with a 400 error (bad request). Any deploy step in a requested deploy"},{"line_number":107,"context_line":"template will override the default arguments and priority for that deploy step."},{"line_number":108,"context_line":"This means there is no way to get a deploy step to execute twice during the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_6472a1a0","line":105,"in_reply_to":"3f79a3b5_98fc4741","updated":"2018-12-07 16:47:30.000000000","message":"I tend to agree that this is too strict. I\u0027ll update to allow duplicate steps.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the Ironic node validate API will"},{"line_number":106,"context_line":"fail with a 400 error (bad request). Any deploy step in a requested deploy"},{"line_number":107,"context_line":"template will override the default arguments and priority for that deploy step."},{"line_number":108,"context_line":"This means there is no way to get a deploy step to execute twice during the"},{"line_number":109,"context_line":"deploy process. 0 is the only priority override that can be set for any of the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_b8f7c35b","line":106,"updated":"2018-11-20 16:51:00.000000000","message":"Right, this is a breaking change for validation API. And with my API SIG hat on, it\u0027s not quite a bad request. A bad request error means you\u0027re requesting validation API in a wrong way, which is not the case here.\n\nSince any deploy step is tied to an interface, what if we fail validation for this interface instead? This will open the possibility to provide interface-level validation of deploy step arguments.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"0887341b2aa2865826f1283457625b4dc89d1d98","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the Ironic node validate API will"},{"line_number":106,"context_line":"fail with a 400 error (bad request). Any deploy step in a requested deploy"},{"line_number":107,"context_line":"template will override the default arguments and priority for that deploy step."},{"line_number":108,"context_line":"This means there is no way to get a deploy step to execute twice during the"},{"line_number":109,"context_line":"deploy process. 0 is the only priority override that can be set for any of the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_913e8e88","line":106,"range":{"start_line":106,"start_character":12,"end_line":106,"end_character":34},"updated":"2018-10-19 18:48:17.000000000","message":"So I think this is wrong. We don\u0027t return an error code when a specific interface has a major validation issue, we return an error in the dictionary that the virt driver code evaluates. I mean, we can do it, it will just be inconsistent.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Should there be the same deploy step defined in two requested deploy templates"},{"line_number":105,"context_line":"(e.g. two sets of RAID config requested), the Ironic node validate API will"},{"line_number":106,"context_line":"fail with a 400 error (bad request). Any deploy step in a requested deploy"},{"line_number":107,"context_line":"template will override the default arguments and priority for that deploy step."},{"line_number":108,"context_line":"This means there is no way to get a deploy step to execute twice during the"},{"line_number":109,"context_line":"deploy process. 0 is the only priority override that can be set for any of the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_049e4d51","line":106,"in_reply_to":"3f79a3b5_b8f7c35b","updated":"2018-12-07 16:47:30.000000000","message":"Good catch. This goes away if we allow duplicate steps however.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"0887341b2aa2865826f1283457625b4dc89d1d98","unresolved":false,"context_lines":[{"line_number":250,"context_line":"* ``trait:CUSTOM_BM_CONFIG_BIOS_VMX_ON \u003d required``"},{"line_number":251,"context_line":"* ``trait:CUSTOM_BM_CONFIG_RAID_DISK_MIRROR \u003d required``"},{"line_number":252,"context_line":"* ``deploy_template:BIOS_VMX_ON\u003d\u003c?\u003e``"},{"line_number":253,"context_line":"* ``deploy_template:BIOS_RAID_DISK_MIRROR\u003d\u003c?\u003e``"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"Only ironic nodes supporting the ``CUSTOM_BM_CONFIG_BIOS_VMX_ON`` and"},{"line_number":256,"context_line":"``CUSTOM_BM_CONFIG_RAID_DISK_MIRROR`` traits would be scheduled to, and the"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_11f83ebf","line":253,"updated":"2018-10-19 18:48:17.000000000","message":"I thought it would be something like a deploy_template_id (which I still kind of like, but that seems like a meta override mechanism that we could support in our api as time goes on.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":329,"context_line":"    CREATE TABLE deploy_templates ("},{"line_number":330,"context_line":"        id INT(11) NOT NULL AUTO_INCREMENT,"},{"line_number":331,"context_line":"        name VARCHAR(255) CHARACTER SET utf8 NOT NULL,"},{"line_number":332,"context_line":"        steps TEXT NOT NULL,"},{"line_number":333,"context_line":"        uuid varchar(36) DEFAULT NULL,"},{"line_number":334,"context_line":"        PRIMARY KEY (id),"},{"line_number":335,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0uuid` (`uuid`),"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_58f6af60","line":332,"updated":"2018-11-20 16:51:00.000000000","message":"I wonder if it makes sense to denormalize these into a deploy_templates_steps table.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":329,"context_line":"    CREATE TABLE deploy_templates ("},{"line_number":330,"context_line":"        id INT(11) NOT NULL AUTO_INCREMENT,"},{"line_number":331,"context_line":"        name VARCHAR(255) CHARACTER SET utf8 NOT NULL,"},{"line_number":332,"context_line":"        steps TEXT NOT NULL,"},{"line_number":333,"context_line":"        uuid varchar(36) DEFAULT NULL,"},{"line_number":334,"context_line":"        PRIMARY KEY (id),"},{"line_number":335,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0uuid` (`uuid`),"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_04cc0d5d","line":332,"in_reply_to":"3f79a3b5_58f6af60","updated":"2018-12-07 16:47:30.000000000","message":"Hmm. Unless we go the whole hog and use the DB properly rather than dumping JSON blobs, what would denormalising the list into individual JSON step blobs get us?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":330,"context_line":"        id INT(11) NOT NULL AUTO_INCREMENT,"},{"line_number":331,"context_line":"        name VARCHAR(255) CHARACTER SET utf8 NOT NULL,"},{"line_number":332,"context_line":"        steps TEXT NOT NULL,"},{"line_number":333,"context_line":"        uuid varchar(36) DEFAULT NULL,"},{"line_number":334,"context_line":"        PRIMARY KEY (id),"},{"line_number":335,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0uuid` (`uuid`),"},{"line_number":336,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0name` (`name`),"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_78f12b64","line":333,"updated":"2018-11-20 16:51:00.000000000","message":"DEFAULT NULL? does it make any sense here?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":330,"context_line":"        id INT(11) NOT NULL AUTO_INCREMENT,"},{"line_number":331,"context_line":"        name VARCHAR(255) CHARACTER SET utf8 NOT NULL,"},{"line_number":332,"context_line":"        steps TEXT NOT NULL,"},{"line_number":333,"context_line":"        uuid varchar(36) DEFAULT NULL,"},{"line_number":334,"context_line":"        PRIMARY KEY (id),"},{"line_number":335,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0uuid` (`uuid`),"},{"line_number":336,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0name` (`name`),"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_a45af981","line":333,"in_reply_to":"3f79a3b5_78f12b64","updated":"2018-12-07 16:47:30.000000000","message":"Not really, but that seems to be what other UUID columns end up with.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"0887341b2aa2865826f1283457625b4dc89d1d98","unresolved":false,"context_lines":[{"line_number":353,"context_line":"A new REST API endpoint will be added for deploy templates, hidden behind a new"},{"line_number":354,"context_line":"API microversion. The endpoint will support standard CRUD operations."},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"In the following API, a UUID or trait name is accepted for a deploy template\u0027s"},{"line_number":357,"context_line":"identity."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"List all"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_b1286a36","line":356,"range":{"start_line":356,"start_character":29,"end_line":356,"end_character":43},"updated":"2018-10-19 18:48:17.000000000","message":"Wouldn\u0027t this be template id?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":353,"context_line":"A new REST API endpoint will be added for deploy templates, hidden behind a new"},{"line_number":354,"context_line":"API microversion. The endpoint will support standard CRUD operations."},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"In the following API, a UUID or trait name is accepted for a deploy template\u0027s"},{"line_number":357,"context_line":"identity."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"List all"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_e4d8f1ee","line":356,"range":{"start_line":356,"start_character":29,"end_line":356,"end_character":43},"in_reply_to":"3f79a3b5_b1286a36","updated":"2018-12-07 16:47:30.000000000","message":"Well, in the original model, deploy templates would be given a name in trait format, such that instance traits would cause deploy templates to be applied during provisioning. That\u0027s still what this spec is proposing.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":469,"context_line":""},{"line_number":470,"context_line":"Response: as for show one."},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"Response codes: 201, 400"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"Policy: admin."},{"line_number":475,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_188ef7d6","line":472,"updated":"2018-11-20 16:51:00.000000000","message":"409 if the name is not unique?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":469,"context_line":""},{"line_number":470,"context_line":"Response: as for show one."},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"Response codes: 201, 400"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"Policy: admin."},{"line_number":475,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_64ace137","line":472,"in_reply_to":"3f79a3b5_188ef7d6","updated":"2018-12-07 16:47:30.000000000","message":"Done","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":513,"context_line":""},{"line_number":514,"context_line":"Response: as for show one."},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"Response codes: 200, 400, 404"},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"Policy: admin."},{"line_number":519,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_389173f7","line":516,"updated":"2018-11-20 16:51:00.000000000","message":"ditto?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":513,"context_line":""},{"line_number":514,"context_line":"Response: as for show one."},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"Response codes: 200, 400, 404"},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"Policy: admin."},{"line_number":519,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_8466dd26","line":516,"in_reply_to":"3f79a3b5_389173f7","updated":"2018-12-07 16:47:30.000000000","message":"Done","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":562,"context_line":""},{"line_number":563,"context_line":"Create a deploy template::"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"    openstack baremetal deploy template create --name \u003ctrait\u003e --steps \u003cJSON list\u003e"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"Update a deploy template::"},{"line_number":568,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_d8971fea","line":565,"updated":"2018-11-20 16:51:00.000000000","message":"nit: we need to allow reading steps from a file","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":562,"context_line":""},{"line_number":563,"context_line":"Create a deploy template::"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"    openstack baremetal deploy template create --name \u003ctrait\u003e --steps \u003cJSON list\u003e"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"Update a deploy template::"},{"line_number":568,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_0472cde1","line":565,"in_reply_to":"3f79a3b5_d8971fea","updated":"2018-12-07 16:47:30.000000000","message":"Done","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":566,"context_line":""},{"line_number":567,"context_line":"Update a deploy template::"},{"line_number":568,"context_line":""},{"line_number":569,"context_line":"    openstack baremetal deploy template set \u003cdeploy template ident\u003e [--name \u003ctrait] [--steps \u003cJSON list\u003e]"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"Delete a deploy template::"},{"line_number":572,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_f89a1b10","line":569,"updated":"2018-11-20 16:51:00.000000000","message":"ditto","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":566,"context_line":""},{"line_number":567,"context_line":"Update a deploy template::"},{"line_number":568,"context_line":""},{"line_number":569,"context_line":"    openstack baremetal deploy template set \u003cdeploy template ident\u003e [--name \u003ctrait] [--steps \u003cJSON list\u003e]"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"Delete a deploy template::"},{"line_number":572,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_a4443977","line":569,"in_reply_to":"3f79a3b5_f89a1b10","updated":"2018-12-07 16:47:30.000000000","message":"Done","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":585,"context_line":"Nova driver impact"},{"line_number":586,"context_line":"------------------"},{"line_number":587,"context_line":""},{"line_number":588,"context_line":"Existing traits integration is enough, its just now the selected traits on boot"},{"line_number":589,"context_line":"become more important."},{"line_number":590,"context_line":""},{"line_number":591,"context_line":"Ramdisk impact"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_9881a7a4","line":588,"updated":"2018-11-20 16:51:00.000000000","message":"nit: it\u0027s?","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":585,"context_line":"Nova driver impact"},{"line_number":586,"context_line":"------------------"},{"line_number":587,"context_line":""},{"line_number":588,"context_line":"Existing traits integration is enough, its just now the selected traits on boot"},{"line_number":589,"context_line":"become more important."},{"line_number":590,"context_line":""},{"line_number":591,"context_line":"Ramdisk impact"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_044bad7f","line":588,"in_reply_to":"3f79a3b5_9881a7a4","updated":"2018-12-07 16:47:30.000000000","message":"Done","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"02bb1f568e57a3ee70ec6f830732e5b1879eadcd","unresolved":false,"context_lines":[{"line_number":676,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"Unit tests will be added to ironic. Tempest API tests will exercise the deploy"},{"line_number":679,"context_line":"templates CRUD API."},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":682,"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"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_b87ca3c7","line":679,"updated":"2018-11-20 16:51:00.000000000","message":"In our devstack plugin we can create a deploy template that references the erasing metadata step, and test the whole flow.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"22f6a1b120c91a581d8c07d4674b30c0d5483cd0","unresolved":false,"context_lines":[{"line_number":676,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"Unit tests will be added to ironic. Tempest API tests will exercise the deploy"},{"line_number":679,"context_line":"templates CRUD API."},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":682,"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"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_9787ed0a","line":679,"in_reply_to":"3f79a3b5_97204d9f","updated":"2018-12-07 17:03:30.000000000","message":"It is, but we add a decorator. In fact I think we need to because ceph deployers need disks wiped pre-deploy where as operators with other instances don\u0027t really need to... so it might be one of those things where it makes sense to enable, especially if your a professional services person out in the field needing to make sure things execute properly.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"436222279d2bca383887e0fb7f8b35f30c8d1a44","unresolved":false,"context_lines":[{"line_number":676,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"Unit tests will be added to ironic. Tempest API tests will exercise the deploy"},{"line_number":679,"context_line":"templates CRUD API."},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":682,"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"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_d7fb2514","line":679,"in_reply_to":"3f79a3b5_9787ed0a","updated":"2018-12-07 17:22:28.000000000","message":"Interesting. As it stands, the node is only running IPA during the single mega deploy step. We\u0027d need to split it out in order to allow deploy steps that require in-band actions (even if advertised by the driver).","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"6d505ed67598080b26167a4f34cd652557a1b3ce","unresolved":false,"context_lines":[{"line_number":676,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"Unit tests will be added to ironic. Tempest API tests will exercise the deploy"},{"line_number":679,"context_line":"templates CRUD API."},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":682,"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"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_97204d9f","line":679,"in_reply_to":"3f79a3b5_b87ca3c7","updated":"2018-12-07 16:47:30.000000000","message":"Isn\u0027t that an in-band clean step? Only out of band steps are currently supported as deploy steps.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"aa9513a12c7c3ecb08dd9b503db5d52794fc0bf2","unresolved":false,"context_lines":[{"line_number":676,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"Unit tests will be added to ironic. Tempest API tests will exercise the deploy"},{"line_number":679,"context_line":"templates CRUD API."},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":682,"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"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3f79a3b5_5a1c1c15","line":679,"in_reply_to":"3f79a3b5_d7fb2514","updated":"2018-12-07 17:43:42.000000000","message":"Well, kind of, in theory I think we already have that with the existing deploy steps code. I think. I had a few people ask about injecting raid and I\u0027ve told them to add the decorator and give it a try and let us know if it doesn\u0027t work.","commit_id":"967d51cef0bb0f75a01a1d2520c7d2a67ed648d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3bf9f0530a9a08693ddb41c08df16c3d19df902f","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Any deploy step in a requested deploy template will override the default"},{"line_number":109,"context_line":"arguments and priority for that deploy step.  This means there is no way to get"},{"line_number":110,"context_line":"a deploy step to execute twice during the deploy process. 0 is the only"},{"line_number":111,"context_line":"priority override that can be set for any of the core deploy steps, i.e. you"},{"line_number":112,"context_line":"can only disable the core step, you can\u0027t change the order of its execution."},{"line_number":113,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"3f79a3b5_7eca0c47","line":110,"updated":"2018-12-10 13:02:01.000000000","message":"This sounds contradicting the previous paragraph. So in the end, what happens if I put the same step twice with different arguments?","commit_id":"1d0c701d7c9c3c21167bbb37e3bbc7d0583b8727"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"49ab1511dfda672a898dce9fad88cffe805f9a0c","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Any deploy step in a requested deploy template will override the default"},{"line_number":109,"context_line":"arguments and priority for that deploy step.  This means there is no way to get"},{"line_number":110,"context_line":"a deploy step to execute twice during the deploy process. 0 is the only"},{"line_number":111,"context_line":"priority override that can be set for any of the core deploy steps, i.e. you"},{"line_number":112,"context_line":"can only disable the core step, you can\u0027t change the order of its execution."},{"line_number":113,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"3f79a3b5_049017f2","line":110,"in_reply_to":"3f79a3b5_7eca0c47","updated":"2018-12-13 14:33:12.000000000","message":"You\u0027re right. I think a step should be able to be referenced twice, so I\u0027ll update this.","commit_id":"1d0c701d7c9c3c21167bbb37e3bbc7d0583b8727"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3bf9f0530a9a08693ddb41c08df16c3d19df902f","unresolved":false,"context_lines":[{"line_number":337,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0name` (`name`),"},{"line_number":338,"context_line":"    )"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"The ``steps`` column is a JSON-encoded list of steps, ``JsonEncodedList``."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"A new ``ironic.objects.deploy_template.DeployTemplate`` object will be added"},{"line_number":343,"context_line":"to the object model. The object will provide support for looking up a list of"}],"source_content_type":"text/x-rst","patch_set":18,"id":"3f79a3b5_9ec5a837","line":340,"updated":"2018-12-10 13:02:01.000000000","message":"My thinking about splitting the table was potential API like \"Which deploy templates contain this step?\". If we don\u0027t care about such cases, we can proceed with this model.","commit_id":"1d0c701d7c9c3c21167bbb37e3bbc7d0583b8727"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6eef9c460229f9e37f6cb9d30e05b38a4bfa872f","unresolved":false,"context_lines":[{"line_number":337,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0name` (`name`),"},{"line_number":338,"context_line":"    )"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"The ``steps`` column is a JSON-encoded list of steps, ``JsonEncodedList``."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"A new ``ironic.objects.deploy_template.DeployTemplate`` object will be added"},{"line_number":343,"context_line":"to the object model. The object will provide support for looking up a list of"}],"source_content_type":"text/x-rst","patch_set":18,"id":"3f79a3b5_70e42242","line":340,"in_reply_to":"3f79a3b5_0415774b","updated":"2018-12-13 15:49:10.000000000","message":"Yeah, I don\u0027t think we need to decompose arguments..","commit_id":"1d0c701d7c9c3c21167bbb37e3bbc7d0583b8727"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"49ab1511dfda672a898dce9fad88cffe805f9a0c","unresolved":false,"context_lines":[{"line_number":337,"context_line":"        UNIQUE KEY `uniq_deploy_templaes0name` (`name`),"},{"line_number":338,"context_line":"    )"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"The ``steps`` column is a JSON-encoded list of steps, ``JsonEncodedList``."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"A new ``ironic.objects.deploy_template.DeployTemplate`` object will be added"},{"line_number":343,"context_line":"to the object model. The object will provide support for looking up a list of"}],"source_content_type":"text/x-rst","patch_set":18,"id":"3f79a3b5_0415774b","line":340,"in_reply_to":"3f79a3b5_9ec5a837","updated":"2018-12-13 14:33:12.000000000","message":"Fair point. It would be hard to add such an API in future without splitting the table, so perhaps we should do it.\n\nTo completely rid these tables of JSON, we could add a third table for the step arguments. I think that may not be so useful though, would you agree?","commit_id":"1d0c701d7c9c3c21167bbb37e3bbc7d0583b8727"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6eef9c460229f9e37f6cb9d30e05b38a4bfa872f","unresolved":false,"context_lines":[{"line_number":351,"context_line":"arguments, ``JsonEncodedDict``."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"New ``ironic.objects.deploy_template.DeployTemplate`` and"},{"line_number":354,"context_line":"``ironic.objects.deploy_template_step.DeployTemplateStep`` objects will be"},{"line_number":355,"context_line":"added to the object model. The deploy template object will provide support for"},{"line_number":356,"context_line":"looking up a list of deploy templates that match any of a list of trait names."},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"State Machine Impact"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3f79a3b5_30eeaa20","line":355,"range":{"start_line":354,"start_character":0,"end_line":355,"end_character":25},"updated":"2018-12-13 15:49:10.000000000","message":"I\u0027m not sure you need to create an object for the second table, you may roll it into DeployTemplate for now. But it is a technical detail, we can figure out on the patch.","commit_id":"8e95563a681fbd901004eb1784453af8a58707c7"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6abf7d4fb12fd569901ca79649a4b41eced7da95","unresolved":false,"context_lines":[{"line_number":351,"context_line":"arguments, ``JsonEncodedDict``."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"New ``ironic.objects.deploy_template.DeployTemplate`` and"},{"line_number":354,"context_line":"``ironic.objects.deploy_template_step.DeployTemplateStep`` objects will be"},{"line_number":355,"context_line":"added to the object model. The deploy template object will provide support for"},{"line_number":356,"context_line":"looking up a list of deploy templates that match any of a list of trait names."},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"State Machine Impact"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3f79a3b5_e72b65e6","line":355,"range":{"start_line":354,"start_character":0,"end_line":355,"end_character":25},"in_reply_to":"3f79a3b5_30eeaa20","updated":"2018-12-17 15:29:36.000000000","message":"++ I\u0027d prefer to avoid trying to juggle too many objects for one feature, to be honest. Unless we want to do step.execute() kind of stuff.","commit_id":"8e95563a681fbd901004eb1784453af8a58707c7"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"80b5216dd33a272a21cbf251437e54bc83afbff9","unresolved":false,"context_lines":[{"line_number":351,"context_line":"arguments, ``JsonEncodedDict``."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"New ``ironic.objects.deploy_template.DeployTemplate`` and"},{"line_number":354,"context_line":"``ironic.objects.deploy_template_step.DeployTemplateStep`` objects will be"},{"line_number":355,"context_line":"added to the object model. The deploy template object will provide support for"},{"line_number":356,"context_line":"looking up a list of deploy templates that match any of a list of trait names."},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"State Machine Impact"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3f79a3b5_a77fadbb","line":355,"range":{"start_line":354,"start_character":0,"end_line":355,"end_character":25},"in_reply_to":"3f79a3b5_e72b65e6","updated":"2018-12-17 15:32:56.000000000","message":"Sure, I\u0027ll go with YAGNI, unless I find I \u0027NI\u0027...","commit_id":"8e95563a681fbd901004eb1784453af8a58707c7"}]}
