)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Deployment steps would allow for a customized and extensible deployment"},{"line_number":14,"context_line":"process."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Related-Bug: 1651185"},{"line_number":17,"context_line":"Co-Authored-By: Ruby Loo \u003cruby.loo@intel.com\u003e"},{"line_number":18,"context_line":"Change-Id: Idf79c17e13590c507156be71f2955724b2a61e07"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"3f79a3b5_4253ea16","line":16,"updated":"2018-08-23 13:53:53.000000000","message":"please change to a story","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"}],"specs/approved/deployment-steps.rst":[{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  ``prepare_image`` and ``write_configdrive`` will become the default deploy"},{"line_number":31,"context_line":"  steps."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"* Allow to introduce new deployment steps on demand, to fit all the end users"},{"line_number":34,"context_line":"  workflow, as well as to customize the default ones."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_76cbdaa5","line":33,"range":{"start_line":33,"start_character":2,"end_line":33,"end_character":51},"updated":"2017-01-04 11:55:53.000000000","message":"Allow drivers to implement deploy steps","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":89,"context_line":"-----------------"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"This change affects the base driver API. All drivers will be able to declare"},{"line_number":92,"context_line":"deploy_steps to be executed prior to disk imaging."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This change does not require specific third-party CI, unless vendors add custom"},{"line_number":95,"context_line":"deploy_steps. This is not in the scope of this spec."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_76591afe","line":92,"range":{"start_line":92,"start_character":28,"end_line":92,"end_character":49},"updated":"2017-01-04 11:55:53.000000000","message":"not necessarily prior to imaging. Imaging becomes a part of the steps. If a driver does not declare imaging (e.g. it boots from network and imaging is not relevant), imaging will not run.\n\nI would add that not declaring any deploy steps should default to the ones proposed above (prepare_image + configdrive).","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":102,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":103,"context_line":"to declare deploy steps to run prior to disk imaging, and operators will be"},{"line_number":104,"context_line":"able to extend ``ironic-python-agent`` to add any custom step."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The code in ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":107,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_d6e3a603","line":104,"range":{"start_line":103,"start_character":58,"end_line":104,"end_character":14},"updated":"2017-01-04 11:55:53.000000000","message":"I suggest instead:\n\noperators will be able to write hardware managers to modify any deploy steps","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":128,"context_line":"Performance Impact"},{"line_number":129,"context_line":"------------------"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"This feature will be enabled via a configuration option and will not be imposed"},{"line_number":132,"context_line":"upon operators. The configuration option for this feature will contain the"},{"line_number":133,"context_line":"appropriate warnings about deployment time. Operators should gather statistics"},{"line_number":134,"context_line":"about their deployment times and adjust their timeouts accordingly. These"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_560976dc","line":131,"updated":"2017-01-04 11:55:53.000000000","message":"Are we sure this is a good idea? I thought it was a \"refactor\" of how deployment \"steps\" ran and this had no operator impact. I do not see a performance impact either (from running hardcoded steps vs asking a driver).","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"This feature will be enabled via a configuration option and will not be imposed"},{"line_number":132,"context_line":"upon operators. The configuration option for this feature will contain the"},{"line_number":133,"context_line":"appropriate warnings about deployment time. Operators should gather statistics"},{"line_number":134,"context_line":"about their deployment times and adjust their timeouts accordingly. These"},{"line_number":135,"context_line":"statistics were recently made available by the metrics feature."},{"line_number":136,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_362dd246","line":133,"updated":"2017-01-04 11:55:53.000000000","message":"Which warnings would you see fit for this feature? I think this was copied from the RAID stuff.","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"67d741ee3885861abe8db130a94dc8b74c9f6f15","unresolved":false,"context_lines":[{"line_number":158,"context_line":"  * mat128"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"Other contributors:"},{"line_number":161,"context_line":"  * dtantsur"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Work Items"},{"line_number":164,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_56d7b622","line":161,"updated":"2017-01-04 11:55:53.000000000","message":"Dmitry wanted to take part of the RAID-during-deploy work, not sure if he wanted to be part of the deploy steps as well. I\u0027ll let him speak up :)","commit_id":"29c5af060b8542e1c46e1f02b5dbca00c245c6f2"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Right now, the way of deploying servers in Ironic is rigid and does not"},{"line_number":21,"context_line":"match all the end user needs: features like custom RAID configuration,"},{"line_number":22,"context_line":"custom kernel boot parameters, etc... are a sample of use cases that will"},{"line_number":23,"context_line":"benefit from a custom way of defining deployment steps on Ironic."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_d4709042","line":22,"range":{"start_line":22,"start_character":35,"end_line":22,"end_character":37},"updated":"2017-01-06 23:03:57.000000000","message":"nit: s/..//","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ac12364476ae34b7c634f2911a0a5a7449b82fd2","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment."},{"line_number":30,"context_line":"  ``prepare_image`` and ``write_configdrive`` will become the default deploy"},{"line_number":31,"context_line":"  steps."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"* Allow drivers to implement deploy steps on demand, to fit all the end users"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_969d6868","line":30,"range":{"start_line":30,"start_character":26,"end_line":30,"end_character":43},"updated":"2017-01-05 15:11:47.000000000","message":"Right now, as I see in IPA, write_configdrive is a part of prepare_image command. Could you clarify more about the way deploy steps will be declared? Is it going to be 1-1 relation with IPA commands? Will rebooting after deploy step finish be supported?","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"443ce26e636b9185ad6e7c7b66e970f8c128014e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment."},{"line_number":30,"context_line":"  ``prepare_image`` and ``write_configdrive`` will become the default deploy"},{"line_number":31,"context_line":"  steps."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"* Allow drivers to implement deploy steps on demand, to fit all the end users"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_a6831b55","line":30,"range":{"start_line":30,"start_character":26,"end_line":30,"end_character":43},"in_reply_to":"ba5201f7_969d6868","updated":"2017-01-05 16:02:36.000000000","message":"This is a very good point, there is only a single prepare_image command so I would guess in our initial proposal there should be a single step called prepare_image.","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Continue using custom workarounds depending on the use case. Some of these"},{"line_number":41,"context_line":"  workarounds end up requireing one more boot cycle of the baremetal nodes."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_563747fe","line":41,"range":{"start_line":41,"start_character":21,"end_line":41,"end_character":31},"updated":"2017-01-06 23:03:57.000000000","message":"requiring","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":52,"context_line":"State Machine Impact"},{"line_number":53,"context_line":"--------------------"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"No new state or transition will be added."},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_943fe8b2","line":55,"updated":"2017-01-06 23:03:57.000000000","message":"Hi, is it possible to provide a scenario of the deploy steps for a sample use case?","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ac12364476ae34b7c634f2911a0a5a7449b82fd2","unresolved":false,"context_lines":[{"line_number":60,"context_line":"REST API impact"},{"line_number":61,"context_line":"---------------"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"None."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_f631545b","line":63,"updated":"2017-01-05 15:11:47.000000000","message":"Will the user be able to specify the deploy steps manually the same way as clean steps?","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"443ce26e636b9185ad6e7c7b66e970f8c128014e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"REST API impact"},{"line_number":61,"context_line":"---------------"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"None."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_e65523c2","line":63,"in_reply_to":"ba5201f7_f631545b","updated":"2017-01-05 16:02:36.000000000","message":"Hmm, yes they should (https://github.com/openstack/ironic/blob/master/api-ref/source/samples/node-set-clean-state.json), good point.","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":89,"context_line":"-----------------"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"This change affects the base driver API. All drivers will be able to declare"},{"line_number":92,"context_line":"deploy_steps to be executed."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This change does not require specific third-party CI, unless vendors add custom"},{"line_number":95,"context_line":"deploy_steps. This is not in the scope of this spec."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_34af1c7e","line":92,"range":{"start_line":92,"start_character":0,"end_line":92,"end_character":12},"updated":"2017-01-06 23:03:57.000000000","message":"``deploy_steps``","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":92,"context_line":"deploy_steps to be executed."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This change does not require specific third-party CI, unless vendors add custom"},{"line_number":95,"context_line":"deploy_steps. This is not in the scope of this spec."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"Ramdisk impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_d4bed0ac","line":95,"range":{"start_line":95,"start_character":0,"end_line":95,"end_character":12},"updated":"2017-01-06 23:03:57.000000000","message":"``deploy_steps``","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":102,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":103,"context_line":"to declare deploy steps to run prior to disk imaging, and operators will be"},{"line_number":104,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The code in ironic should not fail if the call to ``get_deploy_steps`` fails,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_f4067484","line":103,"range":{"start_line":103,"start_character":11,"end_line":103,"end_character":23},"updated":"2017-01-06 23:03:57.000000000","message":"``deploy_steps`` ?","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"725c3cffe137174409419076d78a7c471fdaaad0","unresolved":false,"context_lines":[{"line_number":103,"context_line":"to declare deploy steps to run prior to disk imaging, and operators will be"},{"line_number":104,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The code in ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":107,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_f42d94fe","line":106,"range":{"start_line":106,"start_character":12,"end_line":106,"end_character":18},"updated":"2017-01-06 23:03:57.000000000","message":"Ironic","commit_id":"93132890c46606c2267b4fe61b6ab372440ab37b"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":20,"context_line":"Right now, the way of deploying servers in Ironic is rigid and does not"},{"line_number":21,"context_line":"match all the end user needs: features like custom RAID configuration,"},{"line_number":22,"context_line":"custom kernel boot parameters, etc. are a sample of use cases that will"},{"line_number":23,"context_line":"benefit from a custom way of defining deployment steps on Ironic."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_d54c8b44","line":23,"updated":"2017-01-20 16:32:53.000000000","message":"Could we also cover here the existing workarounds and their shortcomings?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"05938d83b78b46dcca304e3bb9683db5bf6981e5","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment."},{"line_number":30,"context_line":"  ``prepare_image`` will become the default deploy step."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* Allow drivers to implement deploy steps on demand, to fit all the end users"},{"line_number":33,"context_line":"  workflow, as well as to customize the default ones."}],"source_content_type":"text/x-rst","patch_set":5,"id":"ba5201f7_428365cc","line":30,"updated":"2017-01-11 14:13:02.000000000","message":"we may want to split this into more steps. e.g. \"clean_partitions\", \"flash_root_partition\", \"flash_config_drive\" (the latter is optional)","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment."},{"line_number":30,"context_line":"  ``prepare_image`` will become the default deploy step."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* Allow drivers to implement deploy steps on demand, to fit all the end users"},{"line_number":33,"context_line":"  workflow, as well as to customize the default ones."}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_956f63c4","line":30,"in_reply_to":"ba5201f7_428365cc","updated":"2017-01-20 16:32:53.000000000","message":"Could you outline what the initial set of deploy steps will be (prepare_image or otherwise) and what each is intended to do?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"---------------"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Users will be able to specify the deploy steps manually, following a"},{"line_number":63,"context_line":"JSON schema."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_95b5a3ef","line":63,"updated":"2017-01-20 16:32:53.000000000","message":"What will the schema look like? Will this be provided as part of the provision state in the same way as clean_steps?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"Client (CLI) impact"},{"line_number":67,"context_line":"-------------------"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"None."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_358dcf7b","line":69,"updated":"2017-01-20 16:32:53.000000000","message":"Will there not need to be some changes to the client to support specification of the deploy steps?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Nova driver impact"},{"line_number":83,"context_line":"------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"None."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_f5c6e747","line":85,"updated":"2017-01-20 16:32:53.000000000","message":"How will a user specify deploy steps when using Ironic with Nova without an associated Nova driver change?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"05938d83b78b46dcca304e3bb9683db5bf6981e5","unresolved":false,"context_lines":[{"line_number":89,"context_line":"-----------------"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"This change affects the base driver API. All drivers will be able to declare"},{"line_number":92,"context_line":"``deploy_steps`` to be executed."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This change does not require specific third-party CI, unless vendors add custom"},{"line_number":95,"context_line":"``deploy_steps``. This is not in the scope of this spec."}],"source_content_type":"text/x-rst","patch_set":5,"id":"ba5201f7_6286a9dc","line":92,"updated":"2017-01-11 14:13:02.000000000","message":"please expand this section to show the proposed driver interface changes (methods, properties, etc)","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1bd3844f4f000a9ee176cd42bf51e7c9ea1c112e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"Security impact"},{"line_number":111,"context_line":"---------------"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"None."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Other end user impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5a3905b3_154b73ca","line":113,"updated":"2017-01-20 16:32:53.000000000","message":"Will making the deployment model more flexible open up any security holes?","commit_id":"ed94b1582007a24acfd0ce613f197f203abfac86"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option, to ensure that operators have the"},{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step(order) to decorate steps that should run"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_c9861665","line":37,"updated":"2017-01-25 17:22:39.000000000","message":"I\u0027m not sure if it\u0027s worth adding them as a config option, maybe per-node would make more sense, as they can be hardware-specific? Or, as a first implementation, can be done the same way as auto cleaning, by defining them in code by selecting all with priority\u003e0 and sorting those?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":37,"context_line":"  will be introduced as a config option, to ensure that operators have the"},{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step(order) to decorate steps that should run"},{"line_number":41,"context_line":"  as a part of deploy. The ``order`` field specifies the order in which step"},{"line_number":42,"context_line":"  will be run."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_b88c7980","line":40,"updated":"2017-01-26 16:55:10.000000000","message":"This implies that the developer of the deploy step selects the order value, but the JSON schema below suggests that it is user-defined. The latter makes more sense to me.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step(order) to decorate steps that should run"},{"line_number":41,"context_line":"  as a part of deploy. The ``order`` field specifies the order in which step"},{"line_number":42,"context_line":"  will be run."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_29723a7d","line":41,"updated":"2017-01-25 17:22:39.000000000","message":"Hm, maybe priority is better? What if the enabled ones have order 1,2,4, is it considered OK?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step(order) to decorate steps that should run"},{"line_number":41,"context_line":"  as a part of deploy. The ``order`` field specifies the order in which step"},{"line_number":42,"context_line":"  will be run."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_18f4adf0","line":41,"in_reply_to":"3a461143_29723a7d","updated":"2017-01-26 16:55:10.000000000","message":"+1","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  step, order and interface."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":52,"context_line":"  which takes one of the dictionaries defined before, and execute it."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"* The ``order`` field must be unique, or the conductor will fail to load the"},{"line_number":55,"context_line":"  interface when starting up, and log errors about that overlap."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_4d2679cf","line":52,"updated":"2017-01-26 16:55:10.000000000","message":"Does this need to take the dictionary? Surely the name of the step is sufficient?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  which takes one of the dictionaries defined before, and execute it."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"* The ``order`` field must be unique, or the conductor will fail to load the"},{"line_number":55,"context_line":"  interface when starting up, and log errors about that overlap."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"* The default deployment steps will be listed on the DeploymentInterface"},{"line_number":58,"context_line":"  base class."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_b8ff19a9","line":55,"updated":"2017-01-26 16:55:10.000000000","message":"If orders are user-defined, this scenario could be avoided by validating the deploy steps JSON document.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  base class."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":61,"context_line":"  drivers that override the existing Ironic ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_f8bd21d8","line":61,"updated":"2017-01-26 16:55:10.000000000","message":"s/override/may be used in addition to/\n?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":61,"context_line":"  drivers that override the existing Ironic ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Alternatives"},{"line_number":65,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_38024970","line":62,"updated":"2017-01-26 16:55:10.000000000","message":"A more concrete example of how this would work in practice would be useful.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    ["},{"line_number":94,"context_line":"      {"},{"line_number":95,"context_line":"        \u0027step\u0027: \u0027function_name\u0027,"},{"line_number":96,"context_line":"        \u0027order\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":97,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":98,"context_line":"      }"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_58d2b501","line":95,"updated":"2017-01-26 16:55:10.000000000","message":"What function is this the name of?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    ["},{"line_number":94,"context_line":"      {"},{"line_number":95,"context_line":"        \u0027step\u0027: \u0027function_name\u0027,"},{"line_number":96,"context_line":"        \u0027order\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":97,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":98,"context_line":"      }"},{"line_number":99,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_f8b9a1cc","line":96,"updated":"2017-01-26 16:55:10.000000000","message":"If this is a list of steps, we don\u0027t need an order here do we? Just execute the steps in order?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":111,"context_line":"-------------------"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"The python client will need to manage the new ``deploy_steps`` setting. This"},{"line_number":114,"context_line":"means a new ``deploy-steps`` argument will be added to the CLI, and it"},{"line_number":115,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":116,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"},{"line_number":117,"context_line":"to ``rebuild`` or ``deleted``"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_89c5ee5c","line":114,"range":{"start_line":114,"start_character":14,"end_line":114,"end_character":26},"updated":"2017-01-25 17:22:39.000000000","message":"Ah, so it can be specified in set provision state request, not only through config option. What happens if a step requested is disabled in config?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":114,"context_line":"means a new ``deploy-steps`` argument will be added to the CLI, and it"},{"line_number":115,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":116,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"},{"line_number":117,"context_line":"to ``rebuild`` or ``deleted``"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_69760240","line":117,"range":{"start_line":117,"start_character":20,"end_line":117,"end_character":27},"updated":"2017-01-25 17:22:39.000000000","message":"Do you mean \"active\" here?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":121,"context_line":"--------------"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"None. ``deploy_steps`` will simply be invoked prior to disk imaging; as such,"},{"line_number":124,"context_line":"calls to initiate the deployment (e.g. ``do_node_deploy``) already exist."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"The API and conductor service will be upgradable independently because no new"},{"line_number":127,"context_line":"interactions between the API and the conductor have been added."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_49f5c681","line":124,"updated":"2017-01-25 17:22:39.000000000","message":"Seems like you\u0027re going to add deploy_steps argument to do_node_deploy ? This means rpcapi version bump.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Nova driver impact"},{"line_number":131,"context_line":"------------------"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"None"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_5855554e","line":133,"updated":"2017-01-26 16:55:10.000000000","message":"How will a user specify deploy steps when using Ironic with Nova without an associated Nova driver change?","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e4ede16b4d6a46867473fb1730c3219f6eb45f40","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Driver API impact"},{"line_number":137,"context_line":"-----------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* The BaseDriver will have a get_deploy_steps() and execute_deploy_steps()"},{"line_number":140,"context_line":"  functions added and implemented."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def get_deploy_steps(task):"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_d8eea58a","line":139,"updated":"2017-01-26 16:55:10.000000000","message":"s/execute_deploy_steps/execute_deploy_step/","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":139,"context_line":"* The BaseDriver will have a get_deploy_steps() and execute_deploy_steps()"},{"line_number":140,"context_line":"  functions added and implemented."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def get_deploy_steps(task):"},{"line_number":143,"context_line":"    \"\"Return the deploy steps this interface can perform on a node\"\""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"    param task: a task from TaskManager."},{"line_number":146,"context_line":"    returns: a list of dictionaries as noted above"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"def execute_deploy_step(task, step):"},{"line_number":149,"context_line":"    \"\"Execute the given deploy step on the task.node\"\""},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    param task: a task from TaskManager."},{"line_number":152,"context_line":"    param step: a step from get_deploy_steps()"},{"line_number":153,"context_line":"    raises DeployStepFailed: if the step fails"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"* Testing will be similar to other driver interfaces and each interface will be"},{"line_number":156,"context_line":"  expected to test their implementation thoroughly."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_824943d3","line":153,"range":{"start_line":142,"start_character":0,"end_line":153,"end_character":46},"updated":"2017-01-25 17:22:39.000000000","message":"make it a code block please, so that it is a bit more readable in compiled form.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":163,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":164,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":167,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_025ab383","line":166,"updated":"2017-01-25 17:22:39.000000000","message":"i think this depends on versioning IPA, as this will significantly affect the way we do deployment. Older IPA won\u0027t have these methods and will break. Or we\u0027ll have to provide some compatibility layer to first try new way, and fallback if it fails.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":245,"context_line":"Testing"},{"line_number":246,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"100% unit tested for all new code and changed behavior."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"Upgrades and Backwards Compatibility"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_c2c6eb15","line":248,"updated":"2017-01-25 17:22:39.000000000","message":"Well, it will be run in tempest too, right? :)","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"075093d4a58b8c4130859f3b391cb53832225216","unresolved":false,"context_lines":[{"line_number":254,"context_line":"Old drivers will work with new driver base class because calling code will"},{"line_number":255,"context_line":"cleanly fall back when a driver does not support ``get_deploy_steps``."},{"line_number":256,"context_line":"Likewise, a driver with ``get_deploy_steps`` implemented will work in an older"},{"line_number":257,"context_line":"version of Ironic."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_62d8d7f0","line":257,"updated":"2017-01-25 17:22:39.000000000","message":"See the comment about IPA compatibility.","commit_id":"eeff48aba7ede6f76d053a1823354342e5f3c507"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the need that Ironic supports customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_0bba590a","line":13,"range":{"start_line":13,"start_character":23,"end_line":13,"end_character":29},"updated":"2017-01-28 00:48:20.000000000","message":"Lower case for project names per http://docs.openstack.org/contributor-guide/writing-style/openstack-components.html","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"configuration steps after each node is deployed. As these configuration"},{"line_number":27,"context_line":"steps are executed post-deploy, most of them need a reboot of all the nodes"},{"line_number":28,"context_line":"to be applied, having the need to orchestrate the reboots properly, and"},{"line_number":29,"context_line":"causing performance issues that are not acceptable on a production"},{"line_number":30,"context_line":"environment."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_0b16d9f0","line":29,"range":{"start_line":29,"start_character":51,"end_line":29,"end_character":53},"updated":"2017-01-28 00:48:20.000000000","message":"s/on/in","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option, to ensure that operators have the"},{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_565404fe","line":37,"range":{"start_line":37,"start_character":26,"end_line":37,"end_character":39},"updated":"2017-01-28 00:48:20.000000000","message":"Is it possible to define the config option here?","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":41,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which step"},{"line_number":42,"context_line":"  will be run."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_4bc1c153","line":41,"range":{"start_line":41,"start_character":75,"end_line":41,"end_character":79},"updated":"2017-01-28 00:48:20.000000000","message":"s/step/the step","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"8687acb67aa0ed1c304882f898156d46fd76a6d2","unresolved":false,"context_lines":[{"line_number":47,"context_line":"  priority."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":50,"context_line":"  step, priority and interface."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":53,"context_line":"  which takes the reference deploy_step and execute it."}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_5f1c02c1","line":50,"range":{"start_line":50,"start_character":21,"end_line":50,"end_character":30},"updated":"2017-01-30 08:55:50.000000000","message":"I think the \"interface\" name is misleading, I thought of something like returning the interface of the implementing functions here. Maybe call it interface_class?","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  step, priority and interface."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":53,"context_line":"  which takes the reference deploy_step and execute it."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* The ``priority`` field must be unique, or the conductor will fail to load the"},{"line_number":56,"context_line":"  interface when starting up, and log errors about that overlap. An additional"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_ab978546","line":53,"range":{"start_line":53,"start_character":44,"end_line":53,"end_character":51},"updated":"2017-01-28 00:48:20.000000000","message":"s/execute/executes","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"8687acb67aa0ed1c304882f898156d46fd76a6d2","unresolved":false,"context_lines":[{"line_number":52,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":53,"context_line":"  which takes the reference deploy_step and execute it."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* The ``priority`` field must be unique, or the conductor will fail to load the"},{"line_number":56,"context_line":"  interface when starting up, and log errors about that overlap. An additional"},{"line_number":57,"context_line":"  JSON validation of the deployment steps can be performed to ensure that"},{"line_number":58,"context_line":"  this field is unique."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The default deployment steps will be listed on the DeploymentInterface"},{"line_number":61,"context_line":"  base class."}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_fffa0e74","line":58,"range":{"start_line":55,"start_character":0,"end_line":58,"end_character":23},"updated":"2017-01-30 08:55:50.000000000","message":"Maybe we can execute in alphabetical order if the priority is the same? I think it could be easier to maintain a lower number of priorities.","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"43b290a56912eb9cd44614b394f92f7dc9b735a6","unresolved":false,"context_lines":[{"line_number":52,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":53,"context_line":"  which takes the reference deploy_step and execute it."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* The ``priority`` field must be unique, or the conductor will fail to load the"},{"line_number":56,"context_line":"  interface when starting up, and log errors about that overlap. An additional"},{"line_number":57,"context_line":"  JSON validation of the deployment steps can be performed to ensure that"},{"line_number":58,"context_line":"  this field is unique."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The default deployment steps will be listed on the DeploymentInterface"},{"line_number":61,"context_line":"  base class."}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_acd13459","line":58,"range":{"start_line":55,"start_character":0,"end_line":58,"end_character":23},"in_reply_to":"3a461143_fffa0e74","updated":"2017-01-30 16:07:16.000000000","message":"I see it risky (or not as clear as having different priorities). Can other people give opinions as well?","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"8687acb67aa0ed1c304882f898156d46fd76a6d2","unresolved":false,"context_lines":[{"line_number":99,"context_line":"    ["},{"line_number":100,"context_line":"      {"},{"line_number":101,"context_line":"        \u0027step\u0027: \u0027deployment_function_name\u0027,"},{"line_number":102,"context_line":"        \u0027priority\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":103,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":104,"context_line":"      }"},{"line_number":105,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_7aeb8c13","line":102,"range":{"start_line":102,"start_character":9,"end_line":102,"end_character":17},"updated":"2017-01-30 08:55:50.000000000","message":"We could have a default priority if we allow duplicates.","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"4d631bc79b106bd87af51d8f2122565fb625433c","unresolved":false,"context_lines":[{"line_number":120,"context_line":"means a new ``deploy-steps`` argument will be added to the CLI, and it"},{"line_number":121,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":122,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"},{"line_number":123,"context_line":"to ``rebuild`` or ``active``"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_eb1eedb9","line":123,"range":{"start_line":123,"start_character":18,"end_line":123,"end_character":28},"updated":"2017-01-28 00:48:20.000000000","message":"s/``active``/``active``.","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"8687acb67aa0ed1c304882f898156d46fd76a6d2","unresolved":false,"context_lines":[{"line_number":167,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":168,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":171,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks. A"},{"line_number":172,"context_line":"compatibility layer will need to be added for older IPA to prevent failing"},{"line_number":173,"context_line":"when they don\u0027t have these methods."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a461143_1af9a8c7","line":173,"range":{"start_line":170,"start_character":0,"end_line":173,"end_character":35},"updated":"2017-01-30 08:55:50.000000000","message":"Can you elaborate more on what will be the default behavior? Maybe not here, but mention it somewhere above.\n\nIs the default to just skip the execution of deployment steps?","commit_id":"3c6cee837f6917a63913e755e6e87736aa09e306"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"670fd314eb6affdc3938372f905b2f51c3af4af6","unresolved":false,"context_lines":[{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"* The ``priority`` field must be unique, or the conductor will fail to load the"},{"line_number":57,"context_line":"  interface when starting up, and log errors about that overlap. An additional"},{"line_number":58,"context_line":"  JSON validation of the deployment steps can be performed to ensure that"},{"line_number":59,"context_line":"  this field is unique."}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_4459e259","line":56,"updated":"2017-02-06 10:19:23.000000000","message":"This isn\u0027t a check that is performed when the conductor starts up, it should be checked when a set of deploy steps is provided when updating the provision state.","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"55c48dfb89e0a4c8c02c55e2da9de6cafda9ddd6","unresolved":false,"context_lines":[{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"* The ``priority`` field must be unique, or the conductor will fail to load the"},{"line_number":57,"context_line":"  interface when starting up, and log errors about that overlap. An additional"},{"line_number":58,"context_line":"  JSON validation of the deployment steps can be performed to ensure that"},{"line_number":59,"context_line":"  this field is unique."}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_e1ce2eb3","line":56,"in_reply_to":"1a430d35_4459e259","updated":"2017-02-06 15:55:36.000000000","message":"You question the usage of the priority field on next comments. Shall this be dropped? Feedback/review contributions for other people will be useful","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e1d5968bed7643a06f1abb9b3175a0aa10690c88","unresolved":false,"context_lines":[{"line_number":86,"context_line":"State Machine Impact"},{"line_number":87,"context_line":"--------------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_cc2fa23c","line":89,"updated":"2017-02-13 09:34:28.000000000","message":"Will  disk imaging would be one of the \u0027deploy_steps\u0027?","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"d55492a0148d817edb53da5c237048d61595c540","unresolved":false,"context_lines":[{"line_number":86,"context_line":"State Machine Impact"},{"line_number":87,"context_line":"--------------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_b9750f99","line":89,"in_reply_to":"fa31d9ce_cc2fa23c","updated":"2017-02-14 12:55:42.000000000","message":"Yes. Made it clearer because this isnt the first time I hear this question.","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e1d5968bed7643a06f1abb9b3175a0aa10690c88","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_ac60ae36","line":91,"updated":"2017-02-13 09:34:28.000000000","message":"What would happen if any of the deploy steps were to fail? Will it be treated as DEPLOYFAIL? Disk imaging being a special deploy step wherein imaging should be complete to mark the provisioning to be complete. Would it require to be treated differently?","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"d55492a0148d817edb53da5c237048d61595c540","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_d9a1e3f9","line":91,"in_reply_to":"fa31d9ce_ac60ae36","updated":"2017-02-14 12:55:42.000000000","message":"For deployment to be considered successful, all deploy steps will have to run successfully. Disk imaging being one of the steps, it\u0027s failure will mean DEPLOYFAIL, just like today.","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"670fd314eb6affdc3938372f905b2f51c3af4af6","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    ["},{"line_number":101,"context_line":"      {"},{"line_number":102,"context_line":"        \u0027step\u0027: \u0027deployment_function_name\u0027,"},{"line_number":103,"context_line":"        \u0027priority\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":104,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":105,"context_line":"      }"},{"line_number":106,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_8f2683b8","line":103,"updated":"2017-02-06 10:19:23.000000000","message":"I didn\u0027t get an answer to this, so asking again:\n\nIf this is a list of steps, we don\u0027t need an order here do we? Just execute the steps in order?","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"d55492a0148d817edb53da5c237048d61595c540","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    ["},{"line_number":101,"context_line":"      {"},{"line_number":102,"context_line":"        \u0027step\u0027: \u0027deployment_function_name\u0027,"},{"line_number":103,"context_line":"        \u0027priority\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":104,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":105,"context_line":"      }"},{"line_number":106,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_5995f384","line":103,"in_reply_to":"1a430d35_8f2683b8","updated":"2017-02-14 12:55:42.000000000","message":"I think the reason for priority is that the list is compounded later, with possibly some other steps. deploy_steps should follow the same exact structure that clean_steps has, for consistency reasons.\n\nRegarding priority:\nhttps://github.com/openstack/ironic/blob/master/ironic/conductor/utils.py#L30\n\nAlso of interest, the clean steps REST stuff has no mention of priority.","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"025af0465e4071b59fa971a47737a7908c5ec5d3","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    ["},{"line_number":101,"context_line":"      {"},{"line_number":102,"context_line":"        \u0027step\u0027: \u0027deployment_function_name\u0027,"},{"line_number":103,"context_line":"        \u0027priority\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":104,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":105,"context_line":"      }"},{"line_number":106,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_413622e7","line":103,"in_reply_to":"1a430d35_8f2683b8","updated":"2017-02-06 15:52:29.000000000","message":"Then we shall totally deprecate priority? I\u0027ll need feedback here","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"8b8226149924e0306d9c002415212947767ac0b1","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    ["},{"line_number":101,"context_line":"      {"},{"line_number":102,"context_line":"        \u0027step\u0027: \u0027deployment_function_name\u0027,"},{"line_number":103,"context_line":"        \u0027priority\u0027: \u0027an int or float, used for sorting\u0027,"},{"line_number":104,"context_line":"        \u0027interface\u0027: \u0027interface_name\u0027"},{"line_number":105,"context_line":"      }"},{"line_number":106,"context_line":"    ]"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_193e1bda","line":103,"in_reply_to":"fa31d9ce_5995f384","updated":"2017-02-14 13:00:34.000000000","message":"Found it: manual cleaning has no priority because you provide it as a list, just like Mark Goddard mentioned. (http://docs.openstack.org/developer/ironic/deploy/cleaning.html#how-do-i-change-the-priority-of-a-cleaning-step)\n\nFor automatic steps, the code needs a way to sort all the different steps, from the different drivers because an ultimate list can\u0027t be hand crafted.","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"670fd314eb6affdc3938372f905b2f51c3af4af6","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Nova driver impact"},{"line_number":136,"context_line":"------------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_cf6ecbc8","line":138,"updated":"2017-02-06 10:19:23.000000000","message":"How will a user specify deploy steps when using Ironic with Nova without an associated Nova driver change?","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e1d5968bed7643a06f1abb9b3175a0aa10690c88","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Nova driver impact"},{"line_number":136,"context_line":"------------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_acc7ce10","line":138,"in_reply_to":"1a430d35_cf6ecbc8","updated":"2017-02-13 09:34:28.000000000","message":"++","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"025af0465e4071b59fa971a47737a7908c5ec5d3","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Nova driver impact"},{"line_number":136,"context_line":"------------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a430d35_c1585235","line":138,"in_reply_to":"1a430d35_cf6ecbc8","updated":"2017-02-06 15:52:29.000000000","message":"I need feedback here as well","commit_id":"cee4d52a90b80f512eee6828b7674da62504830d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the need that ironic supports customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_067476fb","line":13,"updated":"2017-02-16 21:07:18.000000000","message":"is it a need or a want? :)\n\nnit s/the need that ironic supports/a need for ironic to support/","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the need that ironic supports customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_26c6da16","line":14,"updated":"2017-02-16 21:07:18.000000000","message":"hmm. this is very vague. we don\u0027t know all the end users\u0027 needs, and I seriously doubt that this would address them all.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the need that ironic supports customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_54d8ca1d","line":14,"in_reply_to":"fa31d9ce_26c6da16","updated":"2017-02-17 11:20:10.000000000","message":"Well, it will give flexibility on deployment steps, so if we don\u0027t cover some needs, extending the driver can provide it.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":27,"context_line":"steps are executed post-deploy, most of them need a reboot of all the nodes"},{"line_number":28,"context_line":"to be applied, having the need to orchestrate the reboots properly, and"},{"line_number":29,"context_line":"causing performance issues that are not acceptable on a production"},{"line_number":30,"context_line":"environment."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_26941ae7","line":30,"updated":"2017-02-16 21:07:18.000000000","message":"Is it true that there is a work around after deploy time, for all the use cases? I am wondering whether there might be cases where there is no work around; that an operator would have to re-something the baremetal node before it was made available. And whether a customizable deploy step would be able to address that.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":27,"context_line":"steps are executed post-deploy, most of them need a reboot of all the nodes"},{"line_number":28,"context_line":"to be applied, having the need to orchestrate the reboots properly, and"},{"line_number":29,"context_line":"causing performance issues that are not acceptable on a production"},{"line_number":30,"context_line":"environment."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_541d2abc","line":30,"in_reply_to":"fa31d9ce_26941ae7","updated":"2017-02-17 11:20:10.000000000","message":"Ok, made the comment a bit more generic...","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_f3addb9b","line":35,"updated":"2017-02-14 16:14:21.000000000","message":"Can we say right up front that this design is heavily based on the clean steps design?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_f46c5e38","line":35,"in_reply_to":"fa31d9ce_f3addb9b","updated":"2017-02-17 11:20:10.000000000","message":"Well, the code structure is heavily based on that, yes.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_20ef81b1","line":35,"in_reply_to":"fa31d9ce_f46c5e38","updated":"2017-02-17 17:15:14.000000000","message":"Yes, I was suggesting that we add a sentence here stating clearly that this feature is heavily based upon the clean steps design. That way reviewers know to brush up on clean steps before reading this spec.\n\nAlso, it might not make sense to say it up front, but if there are any ways in which this feature differs from clean_steps then perhaps those should be enumerated here also?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_13cc2f69","line":37,"updated":"2017-02-14 16:14:21.000000000","message":"What does the config option do? The clean steps feature has a global flag to enable it, automated_clean\u003d\u003ctrue|false\u003e. I don\u0027t see the reference in the REST API section (and could we have a description here anyway?).","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_4b2340a7","line":37,"in_reply_to":"fa31d9ce_13cc2f69","updated":"2017-02-14 20:55:14.000000000","message":"Yes, I don\u0027t think \"deploy_steps\" will be a config option. From the REST API section, it seems as though each node will have its own deploy steps. That\u0027s an attribute on the node, not a config option. Please update the spec to correct this if that was your intention.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_54a7ea4e","line":37,"in_reply_to":"fa31d9ce_4b2340a7","updated":"2017-02-17 11:20:10.000000000","message":"I\u0027m unsure about that so leaving for others to reply. But i see it as a good option, to provide a generic config for all the nodes. Let\u0027s say, i want to update kernel flags on all my nodes, or want an extra partition for collecting logs...","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_01bfdc60","line":37,"in_reply_to":"fa31d9ce_54a7ea4e","updated":"2017-02-17 17:15:14.000000000","message":"How would this interact with deploy steps determined automatically from the node\u0027s drivers or an explicit list of deploy steps provided when setting the provision state?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_86ba266d","line":39,"updated":"2017-02-16 21:07:18.000000000","message":"I need to read more, but are we really going to put in some sort of plugin so that operators can provide their own deploy steps?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":36,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":37,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_b4110660","line":39,"in_reply_to":"fa31d9ce_86ba266d","updated":"2017-02-17 11:20:10.000000000","message":"Yes, operators could create their own drivers extending the base ones, so they can add their own steps.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_490921dd","line":41,"updated":"2017-02-16 21:07:18.000000000","message":"do you really mean \u0027should\u0027, or is it \u0027could\u0027?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  section), to ensure that operators have the"},{"line_number":39,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_3406f620","line":41,"in_reply_to":"fa31d9ce_490921dd","updated":"2017-02-17 11:20:10.000000000","message":"Not my comment , but i guess \u0027should\u0027 is ok","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_76463950","line":43,"updated":"2017-02-14 16:14:21.000000000","message":"How about:\n\nLike the @clean_step decorator, the @deploy_step decorator takes arguments. The ``priority`` argument is mandatory and specifies the order in which the step will be run. The ``argsinfo`` argument is a dictionary containing information about the arguments which may be passed to the deploy step (see @clean_step).\n\nAlso, does it make sense to support ``abortable`` for deploy steps?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_5731aceb","line":43,"in_reply_to":"fa31d9ce_09c5695a","updated":"2017-02-17 11:20:10.000000000","message":"Leaving for others to address this as well. From my point of view, i don\u0027t think it makes sense to abort just a deploy steps, the nodes will be deployed incorrect then. From my experience, I don\u0027t want a node that does not have the configuration I expect, it will break my automated deployment.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_09c5695a","line":43,"in_reply_to":"fa31d9ce_0c11055e","updated":"2017-02-16 21:07:18.000000000","message":"I agree with Mark\u0027s suggestion about rewording. I\u0027d go further and say please provide the actual decorator \u0026 arguments in this spec.\n\nwrt abortable, I think it makes sense, and it will become more apparent as we identify what the actual deploy steps might be and what \u0027abortable\u0027 might mean for the individual steps.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_ccec1bf6","line":43,"in_reply_to":"fa31d9ce_5731aceb","updated":"2017-02-17 17:15:14.000000000","message":"Deployment shouldn\u0027t continue if deploy steps are aborted. \n\nThere is an argument that in the same way that aborting a node in cleanwait puts the node into cleanfailed, aborting a node in deploywait should move the node into deployfailed. However, the state machine currently allows the delete action when in deploywait, which moves it through the normal delete path. Is there a reason why we can\u0027t continue to use this transition rather than inventing an \u0027abort\u0027 mechanism for deployment?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_eb9cf4c1","line":43,"in_reply_to":"fa31d9ce_76463950","updated":"2017-02-14 20:55:14.000000000","message":"With the question of whether deploys should be abortable, I\u0027m not sure. We don\u0027t currently allow aborting deploys, so it might not be strictly necessary, but rather a nice feature to have. We definitely need to think about error handling and make sure nodes aren\u0027t stuck DEPLOYING forever.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_0c11055e","line":43,"in_reply_to":"fa31d9ce_eb9cf4c1","updated":"2017-02-16 15:42:47.000000000","message":"I think aborting the deployment will be still possible. If done the same way as cleaning, when the next clean step is being prepared for execution, we do CLEANWAIT-\u003eCLEANING, then we trigger the agent client, which I guess returns 202, and we switch back to CLEANWAIT. If done the same way with deployment, we\u0027ll still be able to stop deployment if it takes too long.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":47,"context_line":"  and return a list of dictionaries representing those steps, sorted by"},{"line_number":48,"context_line":"  priority."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_8bdc5874","line":45,"range":{"start_line":45,"start_character":47,"end_line":45,"end_character":69},"updated":"2017-02-14 20:55:14.000000000","message":"You mean just the DeployInterface base class, right?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":47,"context_line":"  and return a list of dictionaries representing those steps, sorted by"},{"line_number":48,"context_line":"  priority."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_5748cc5b","line":45,"range":{"start_line":45,"start_character":47,"end_line":45,"end_character":69},"in_reply_to":"fa31d9ce_4c393dd8","updated":"2017-02-17 11:20:10.000000000","message":"I think so as well, every driver related on the node deploy shall be able to have deployment steps.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":43,"context_line":"  step will be run."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":47,"context_line":"  and return a list of dictionaries representing those steps, sorted by"},{"line_number":48,"context_line":"  priority."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_4c393dd8","line":45,"range":{"start_line":45,"start_character":47,"end_line":45,"end_character":69},"in_reply_to":"fa31d9ce_8bdc5874","updated":"2017-02-16 15:42:47.000000000","message":"I thought it will be also used at least in the raid interface...","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":45,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":46,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":47,"context_line":"  and return a list of dictionaries representing those steps, sorted by"},{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_16b17d47","line":48,"updated":"2017-02-14 16:14:21.000000000","message":"get_clean_steps returns an unordered list, the ordering is applied at a higher level.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"65979c890f6b6253fb199d7527a69744f2c326ad","unresolved":false,"context_lines":[{"line_number":47,"context_line":"  and return a list of dictionaries representing those steps, sorted by"},{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_e9757532","line":50,"updated":"2017-02-16 21:07:18.000000000","message":"this bullet seems to be part of the bullet before. This is the same get_deploy_steps() as above, right?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_56e5b535","line":51,"updated":"2017-02-14 16:14:21.000000000","message":"Also include argsinfo and abortable, if using.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_cbe2d02e","line":51,"range":{"start_line":51,"start_character":21,"end_line":51,"end_character":30},"updated":"2017-02-14 20:55:14.000000000","message":"What is this \"interface\" field for? I thought that these will all be part of DeployInterfaces.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_f7ae20e6","line":51,"range":{"start_line":51,"start_character":21,"end_line":51,"end_character":30},"in_reply_to":"fa31d9ce_cbe2d02e","updated":"2017-02-17 11:20:10.000000000","message":"I agree, if the steps are part of the driver, that\u0027s the interface...","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":48,"context_line":"  priority."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 3 keys:"},{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_ecc63f15","line":51,"range":{"start_line":51,"start_character":21,"end_line":51,"end_character":30},"in_reply_to":"fa31d9ce_f7ae20e6","updated":"2017-02-17 17:15:14.000000000","message":"I think consensus is that all drivers will be allowed to provide deploy steps, not just DeployInterface. Therefore we need the interface.\n\nThe structure of the return value should be consistent with cleaning.\n\nCould you respond on the question about argsinfo? I think it is necessary if we allow arguments to be provided to deploy steps.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  step, priority and interface."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":54,"context_line":"  which takes the reference deploy_step and executes it."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"* The ``priority`` field will be used in the same way it is used for cleaning"},{"line_number":57,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_76fe39af","line":54,"updated":"2017-02-14 16:14:21.000000000","message":"execute_clean_steps takes a dict containing \u0027step\u0027 (the name of the method) and optionally \u0027args\u0027 (a dict of keyword args to pass to the method).","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The default deployment steps will be listed on the DeploymentInterface"},{"line_number":61,"context_line":"  base class."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":64,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_367be129","line":61,"updated":"2017-02-14 16:14:21.000000000","message":"nit: DeployInterface\n\nAlso, are deploy_steps limited to this interface? If not (as the rest of this spec suggests), it doesn\u0027t make sense to keep a list on the deploy interface. Why do we need to keep a list of default deployment steps? Can\u0027t we just determine them at runtime?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The default deployment steps will be listed on the DeploymentInterface"},{"line_number":61,"context_line":"  base class."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":64,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_17c1f480","line":61,"in_reply_to":"fa31d9ce_367be129","updated":"2017-02-17 11:20:10.000000000","message":"I think it makes sense to have default steps for each interface, to have consistency and allow to extend those easily.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"},{"line_number":65,"context_line":"  example, an ImageCustomizerDriver could be implemented, inheriting from the"},{"line_number":66,"context_line":"  desired driver, and adding an extra deploy step called customize_image that"},{"line_number":67,"context_line":"  will perform changes in the deployment image."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_f66f89f9","line":67,"updated":"2017-02-14 16:14:21.000000000","message":"Can we call out here how the user-provided deploy steps interact with or override the default deploy steps?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"},{"line_number":65,"context_line":"  example, an ImageCustomizerDriver could be implemented, inheriting from the"},{"line_number":66,"context_line":"  desired driver, and adding an extra deploy step called customize_image that"},{"line_number":67,"context_line":"  will perform changes in the deployment image."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_fb47e61a","line":67,"in_reply_to":"fa31d9ce_f66f89f9","updated":"2017-02-17 11:20:10.000000000","message":"Well, i think it will work as typical inheritance. The individual deployment steps can be overriden, and new ones can be created as well.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"},{"line_number":65,"context_line":"  example, an ImageCustomizerDriver could be implemented, inheriting from the"},{"line_number":66,"context_line":"  desired driver, and adding an extra deploy step called customize_image that"},{"line_number":67,"context_line":"  will perform changes in the deployment image."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_ac9367f9","line":67,"in_reply_to":"fa31d9ce_fb47e61a","updated":"2017-02-17 17:15:14.000000000","message":"Sorry, I meant user-provided as in provided via a deploy steps JSON object when setting the provision state.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"* Continue using custom workarounds depending on the use case. Some of these"},{"line_number":74,"context_line":"  workarounds end up requiring one more boot cycle of the baremetal nodes."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"Data model impact"},{"line_number":78,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_59479d76","line":75,"updated":"2017-02-14 20:55:14.000000000","message":"Another alternative is that users create specific images for each use case. For example, you can create a specific type of image that auto-configures your RAID at boot time. Disadvantages to this are:\n\n1. No immediately apparent way of enforcing a particular type of hardware with a particular kind of image\n\n2. Number of images becomes exponential in the number of deploy steps","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"* Continue using custom workarounds depending on the use case. Some of these"},{"line_number":74,"context_line":"  workarounds end up requiring one more boot cycle of the baremetal nodes."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"Data model impact"},{"line_number":78,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_ec62bf15","line":75,"in_reply_to":"fa31d9ce_59479d76","updated":"2017-02-17 17:15:14.000000000","message":"Also, images can\u0027t account for things that must be configured out of band e.g. via a BMC.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":77,"context_line":"Data model impact"},{"line_number":78,"context_line":"-----------------"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* ``deploy_steps`` will be stored in ``node.driver_internal_info`` the same"},{"line_number":81,"context_line":"  way ``clean_steps`` is currently stored. This does not require any"},{"line_number":82,"context_line":"  migration or new column in the nodes table."},{"line_number":83,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_cc5e0d79","line":80,"updated":"2017-02-16 15:42:47.000000000","message":"There is a separate field for current clean step, do we need the same here?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":77,"context_line":"Data model impact"},{"line_number":78,"context_line":"-----------------"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* ``deploy_steps`` will be stored in ``node.driver_internal_info`` the same"},{"line_number":81,"context_line":"  way ``clean_steps`` is currently stored. This does not require any"},{"line_number":82,"context_line":"  migration or new column in the nodes table."},{"line_number":83,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_5bd2b235","line":80,"in_reply_to":"fa31d9ce_cc5e0d79","updated":"2017-02-17 11:20:10.000000000","message":"I need feedback from other users here, that know more about these clean steps.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":80,"context_line":"* ``deploy_steps`` will be stored in ``node.driver_internal_info`` the same"},{"line_number":81,"context_line":"  way ``clean_steps`` is currently stored. This does not require any"},{"line_number":82,"context_line":"  migration or new column in the nodes table."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"State Machine Impact"},{"line_number":86,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_8b71b878","line":83,"updated":"2017-02-14 20:55:14.000000000","message":"You may have to update the data model more based on dynamic drivers now that that\u0027s landed, since enabled interfaces are stored on nodes. Not sure.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":80,"context_line":"* ``deploy_steps`` will be stored in ``node.driver_internal_info`` the same"},{"line_number":81,"context_line":"  way ``clean_steps`` is currently stored. This does not require any"},{"line_number":82,"context_line":"  migration or new column in the nodes table."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"State Machine Impact"},{"line_number":86,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_bbe1ee00","line":83,"in_reply_to":"fa31d9ce_8b71b878","updated":"2017-02-17 11:20:10.000000000","message":"As well, need feedback","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":85,"context_line":"State Machine Impact"},{"line_number":86,"context_line":"--------------------"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging. The"},{"line_number":89,"context_line":"current disk imaging code will be a ``deploy_step``."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_4b12600a","line":88,"updated":"2017-02-14 20:55:14.000000000","message":"Please move this line somewhere else, since it\u0027s not directly affecting the state machine.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":88,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging. The"},{"line_number":89,"context_line":"current disk imaging code will be a ``deploy_step``."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_ecbf515e","line":91,"updated":"2017-02-16 15:42:47.000000000","message":"Are the states going to be switched between deploying and deploywait as it happens in case of cleaning?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":88,"context_line":"The ``deploy_steps`` will be executed instead of the current disk imaging. The"},{"line_number":89,"context_line":"current disk imaging code will be a ``deploy_step``."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"No new state or transition will be added."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_3beedeec","line":91,"in_reply_to":"fa31d9ce_ecbf515e","updated":"2017-02-17 11:20:10.000000000","message":"need feedback","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":114,"context_line":"* GET requests to the node\u0027s API (/nodes/{node_ident}) and node detail API"},{"line_number":115,"context_line":"  (/nodes/detail) should return the current node.deploy_steps as well."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"Client (CLI) impact"},{"line_number":119,"context_line":"-------------------"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_cbfe50ad","line":117,"updated":"2017-02-14 20:55:14.000000000","message":"Will PATCH (update) node deploy steps be allowed?\n\nAlso, please specify response codes for relevant errors.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":114,"context_line":"* GET requests to the node\u0027s API (/nodes/{node_ident}) and node detail API"},{"line_number":115,"context_line":"  (/nodes/detail) should return the current node.deploy_steps as well."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"Client (CLI) impact"},{"line_number":119,"context_line":"-------------------"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_87330ef6","line":117,"in_reply_to":"fa31d9ce_cbfe50ad","updated":"2017-02-16 15:42:47.000000000","message":"I don\u0027t think we should allow updating it.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":118,"context_line":"Client (CLI) impact"},{"line_number":119,"context_line":"-------------------"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"The python client will need to manage the new ``deploy_steps`` setting. This"},{"line_number":122,"context_line":"means a new ``deploy-steps`` argument will be added to the CLI, and it"},{"line_number":123,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":124,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_0b3308ac","line":121,"range":{"start_line":121,"start_character":0,"end_line":121,"end_character":16},"updated":"2017-02-14 20:55:14.000000000","message":"openstackclient and python-ironicclient","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":123,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":124,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"},{"line_number":125,"context_line":"to ``rebuild`` or ``active``."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"RPC API impact"},{"line_number":129,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_0bda284c","line":126,"updated":"2017-02-14 20:55:14.000000000","message":"Please specify further how this will be used. Is \"--deploy-steps\" going to be an additional argument for node-show, node-set, etc.?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":123,"context_line":"will accept a JSON blob with the format specified before."},{"line_number":124,"context_line":"``deploy-steps`` setting will only be accepted when setting provision state"},{"line_number":125,"context_line":"to ``rebuild`` or ``active``."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"RPC API impact"},{"line_number":129,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_1b767a3e","line":126,"in_reply_to":"fa31d9ce_0bda284c","updated":"2017-02-17 11:20:10.000000000","message":"I\u0027m unsure, because i also can see a valid use case in just defining deploy steps generally, not per node.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3267b10b5da1de031b59c3e64294ae6d2cf3b28c","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Nova driver impact"},{"line_number":137,"context_line":"------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":140,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":141,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":142,"context_line":"steps, but Nova does not make use of that during instance deletion."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_673d3abb","line":139,"updated":"2017-02-16 15:42:47.000000000","message":"Nova won\u0027t be able to provide custom deploy steps either (unless they are in flavor?? don\u0027t think it is a good idea, nova should not care)","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":139,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":140,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":141,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":142,"context_line":"steps, but Nova does not make use of that during instance deletion."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_6bd00420","line":142,"range":{"start_line":142,"start_character":58,"end_line":142,"end_character":66},"updated":"2017-02-14 20:55:14.000000000","message":"s/deletion/creation","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":140,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":141,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":142,"context_line":"steps, but Nova does not make use of that during instance deletion."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Driver API impact"},{"line_number":146,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_abef5ce7","line":143,"updated":"2017-02-14 20:55:14.000000000","message":"Hmm. Maybe in the future users could specify different capabilities they wanted during a deploy via Nova. Fine for now I suppose.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":145,"context_line":"Driver API impact"},{"line_number":146,"context_line":"-----------------"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"* The BaseDriver will have a get_deploy_steps() and execute_deploy_step()"},{"line_number":149,"context_line":"  functions added and implemented::"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def get_deploy_steps(task):"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_abc67c65","line":148,"updated":"2017-02-14 20:55:14.000000000","message":"I think this makes more sense in the DeployInterface instead of BaseDriver. Each node needs a deploy interface, anyway.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":145,"context_line":"Driver API impact"},{"line_number":146,"context_line":"-----------------"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"* The BaseDriver will have a get_deploy_steps() and execute_deploy_step()"},{"line_number":149,"context_line":"  functions added and implemented::"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def get_deploy_steps(task):"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_3bc17e2f","line":148,"in_reply_to":"fa31d9ce_abc67c65","updated":"2017-02-17 11:20:10.000000000","message":"Will it only be limited to DeployInterface? It also has been mentioned upper in the spec, and seems that other interfaces could have deployment steps as well.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":168,"context_line":"Ramdisk impact"},{"line_number":169,"context_line":"--------------"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":172,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_6b972448","line":171,"range":{"start_line":171,"start_character":50,"end_line":171,"end_character":56},"updated":"2017-02-14 20:55:14.000000000","message":"drivers - there\u0027s not just 1 agent driver","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":172,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_cb71f045","line":173,"range":{"start_line":173,"start_character":28,"end_line":173,"end_character":56},"updated":"2017-02-14 20:55:14.000000000","message":"It doesn\u0027t have to just be *prior* to disk imaging, right?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":172,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_2b80ccf6","line":173,"range":{"start_line":173,"start_character":13,"end_line":173,"end_character":25},"updated":"2017-02-14 20:55:14.000000000","message":"s/deploy steps/deploy_steps","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":171,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":172,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":177,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks. A"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_0bbdc8b6","line":174,"range":{"start_line":174,"start_character":14,"end_line":174,"end_character":31},"updated":"2017-02-14 20:55:14.000000000","message":"The deploy steps are going to be specified in ironic, so wouldn\u0027t it make more sense for people to write *extensions* with special functionality (if in-band actions are needed at all)? I was envisioning this, for example:\n\n1. Ironic has a custom deploy step in MyDeployInterface. Call it do_cool_agent_thing\n\n2. Ironic\u0027s do_cool_agent_thing needs ironic-python-agent to do something, so it calls MyCoolAgentExtension in IPA\n\n3. IPA takes this API request and executes the appropriate actions, returns status to ironic\n\n4. Ironic marks this deploy step as completed and continues the deploy\n\nIs that wrong?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"83aa80af3ef3fc996033493ae0ccbe3c8f657519","unresolved":false,"context_lines":[{"line_number":171,"context_line":"The ``ironic-python-agent`` project and ``agent`` driver will be adjusted to"},{"line_number":172,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":177,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks. A"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_1bdbda1c","line":174,"range":{"start_line":174,"start_character":14,"end_line":174,"end_character":31},"in_reply_to":"fa31d9ce_0bbdc8b6","updated":"2017-02-17 11:20:10.000000000","message":"Need feedback here as well","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"fb58c55e940d29d565fd0f6638342609519a5954","unresolved":false,"context_lines":[{"line_number":173,"context_line":"to declare ``deploy steps`` to run prior to disk imaging, and operators will be"},{"line_number":174,"context_line":"able to write hardware managers to modify any deployment steps."},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The code in Ironic should not fail if the call to ``get_deploy_steps`` fails,"},{"line_number":177,"context_line":"this will ensure that Ironic is backwards compatible with older ramdisks. A"},{"line_number":178,"context_line":"compatibility layer will need to be added for older IPA to prevent failing"},{"line_number":179,"context_line":"when they don\u0027t have these methods, skipping these deployment steps and"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_eb2cf403","line":176,"updated":"2017-02-14 20:55:14.000000000","message":"To be clear, get_deploy_steps isn\u0027t only going to support an agent endpoint, right? I.e. I will be able to specify deploy steps within ironic? You seemed to indicate that above via the @deploy_step decorator.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"1322e41cad9bf64f14d9c01fbcb490658759bd06","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Ironic:"},{"line_number":240,"context_line":"  * Add REST API for optionally passing ``deploy_steps``."},{"line_number":241,"context_line":"  * Add support for ``deploy_steps`` to base driver"},{"line_number":242,"context_line":"  * Add support for ``get_deploy_steps`` in ``agent`` driver"},{"line_number":243,"context_line":"  * Adjust developer documentation for ``deploy_steps``"},{"line_number":244,"context_line":"  * Adjust operator documentation for new options"},{"line_number":245,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_9661ed3b","line":242,"updated":"2017-02-14 16:14:21.000000000","message":"Isn\u0027t get_deploy_steps on the base driver? We also need to add execute_deploy_step.\n\nHow much of this code can be reused between clean and deploy steps? Can we call out in this spec if there is any refactoring required to make that happen?","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"9b29b80e986bd1830e09ab07c1360a70698cc0ef","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Ironic:"},{"line_number":240,"context_line":"  * Add REST API for optionally passing ``deploy_steps``."},{"line_number":241,"context_line":"  * Add support for ``deploy_steps`` to base driver"},{"line_number":242,"context_line":"  * Add support for ``get_deploy_steps`` in ``agent`` driver"},{"line_number":243,"context_line":"  * Adjust developer documentation for ``deploy_steps``"},{"line_number":244,"context_line":"  * Adjust operator documentation for new options"},{"line_number":245,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_c7ecf4f5","line":242,"in_reply_to":"fa31d9ce_9661ed3b","updated":"2017-02-17 17:15:14.000000000","message":"Still needs addressing.","commit_id":"e0907f459b064b1ccdd868a5ffc0900823e918a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the a for ironic to support customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs. Having a"},{"line_number":15,"context_line":"way to customize and extend the steps used on deployment can cover"},{"line_number":16,"context_line":"particular use cases for each end user."}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_a03ff1d4","line":13,"range":{"start_line":13,"start_character":6,"end_line":13,"end_character":14},"updated":"2017-02-17 14:43:21.000000000","message":"Perhaps add the word \"need\"?","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"4c95636c41100a3f548e943a1295a6cae128e356","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is the a for ironic to support customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs. Having a"},{"line_number":15,"context_line":"way to customize and extend the steps used on deployment can cover"},{"line_number":16,"context_line":"particular use cases for each end user."}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_209ce168","line":13,"updated":"2017-02-17 17:16:31.000000000","message":"a/the a/a need/","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9516051b92a46bc65408266ad5facbf2652e9cd1","unresolved":false,"context_lines":[{"line_number":13,"context_line":"There is the a for ironic to support customizable deployment steps,"},{"line_number":14,"context_line":"that allows to prepare the servers matching the user needs. Having a"},{"line_number":15,"context_line":"way to customize and extend the steps used on deployment can cover"},{"line_number":16,"context_line":"particular use cases for each end user."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":14,"id":"da36d5c6_f11c8a79","line":16,"updated":"2017-02-20 02:52:11.000000000","message":"the definition of \"user\" is not clear here. Is it a (privileged) user of Ironic API or a (regular) user of the compute API? If the latter, we need to think about nova bits.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":19,"context_line":"Problem description"},{"line_number":20,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Right now, the way of deploying servers in Ironic is rigid and does not"},{"line_number":23,"context_line":"match all the end user needs: features like custom RAID configuration,"},{"line_number":24,"context_line":"custom kernel boot parameters, etc. are a sample of use cases that will"},{"line_number":25,"context_line":"benefit from a custom way of defining deployment steps on Ironic."}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_926244d7","line":22,"range":{"start_line":22,"start_character":0,"end_line":22,"end_character":10},"updated":"2017-02-17 14:43:21.000000000","message":"nit: Maybe change to \"Presently\"? \"Presently the way ironic..\" ?","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a config option (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_f2a380af","line":39,"range":{"start_line":39,"start_character":26,"end_line":39,"end_character":39},"updated":"2017-02-17 14:43:21.000000000","message":"parameter perhaps?  Configuration option, at least to me, causes me to think of a setting in a file.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"4c95636c41100a3f548e943a1295a6cae128e356","unresolved":false,"context_lines":[{"line_number":47,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":48,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":49,"context_line":"  and return a list of dictionaries representing those steps. They will be"},{"line_number":50,"context_line":"  sorted and processed lately as needed."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 2 keys:"},{"line_number":53,"context_line":"  step and priority."}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_ec11dfb0","line":50,"updated":"2017-02-17 17:16:31.000000000","message":"s/lately/later/","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9516051b92a46bc65408266ad5facbf2652e9cd1","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"},{"line_number":56,"context_line":"  which takes a dict containing \u0027step\u0027 and optionally \u0027args\u0027 (a dict of"},{"line_number":57,"context_line":"  keyword args to pass to the method)."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* The ``priority`` field will be used in the same way it is used for cleaning"},{"line_number":60,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"}],"source_content_type":"text/x-rst","patch_set":14,"id":"da36d5c6_1112fe62","line":57,"updated":"2017-02-20 02:52:11.000000000","message":"this is a technical detail, a spec should describe a high-level approach.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":89,"context_line":"* ``deploy_steps`` will be stored in ``node.driver_internal_info`` the same"},{"line_number":90,"context_line":"  way ``clean_steps`` is currently stored. This does not require any"},{"line_number":91,"context_line":"  migration or new column in the nodes table."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"State Machine Impact"},{"line_number":95,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_5289acc9","line":92,"updated":"2017-02-17 14:43:21.000000000","message":"What about the current deploy step?","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9516051b92a46bc65408266ad5facbf2652e9cd1","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                }"},{"line_number":116,"context_line":"            }"},{"line_number":117,"context_line":"        ]"},{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"* GET requests to the node\u0027s API (/nodes/{node_ident}) and node detail API"},{"line_number":121,"context_line":"  (/nodes/detail) should return the current node.deploy_steps as well."}],"source_content_type":"text/x-rst","patch_set":14,"id":"da36d5c6_31170253","line":118,"updated":"2017-02-20 02:52:11.000000000","message":"it\u0027s not entirely clear, but I assume the approach is similar to one of clean steps: if priority \u003d\u003d 0, the step is not executred by default.\n\nNow, in the example you\u0027re providing, will the default steps be executed as well?","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9516051b92a46bc65408266ad5facbf2652e9cd1","unresolved":false,"context_lines":[{"line_number":146,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":147,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":148,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":149,"context_line":"steps, but Nova does not make use of that during instance creation."},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":14,"id":"da36d5c6_510c7642","line":149,"updated":"2017-02-20 02:52:11.000000000","message":"I agree that it\u0027s useful, and I agree that the nova part will require its own (probably heated) discussion.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":146,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":147,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":148,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":149,"context_line":"steps, but Nova does not make use of that during instance creation."},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_12e734e5","line":149,"updated":"2017-02-17 14:43:21.000000000","message":"I guess someone could create some way of mapping something like a flavor to specific steps, but really this seems like something better suited for those that directly run bare metal fleets instead of those that use nova, and would surely be a further, later iteration upon this work.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9516051b92a46bc65408266ad5facbf2652e9cd1","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        \"\"Return the deploy steps this interface can perform on a node\"\""},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        param task: a task from TaskManager."},{"line_number":162,"context_line":"        returns: a list of dictionaries as noted above"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def execute_deploy_step(task, step):"},{"line_number":165,"context_line":"        \"\"Execute the given deploy step on the task.node\"\""}],"source_content_type":"text/x-rst","patch_set":14,"id":"da36d5c6_71097a31","line":162,"updated":"2017-02-20 02:52:11.000000000","message":"nit: incorrect python syntax in this example: doube quote is used instead of triple, and it also ends much earlier than the actual end of this docstring","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"ac35991dc83b95a3e3afdcfa8543ba68615598c2","unresolved":false,"context_lines":[{"line_number":175,"context_line":"Ramdisk impact"},{"line_number":176,"context_line":"--------------"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"The ``ironic-python-agent`` project and ``agent`` drivers will be adjusted to"},{"line_number":179,"context_line":"support ``get_deploy_steps``. That way, ``ironic-python-agent`` will be able"},{"line_number":180,"context_line":"to declare ``deploy_steps`` to run, and operators will be able to write"},{"line_number":181,"context_line":"hardware managers to modify any deployment steps."}],"source_content_type":"text/x-rst","patch_set":14,"id":"fa31d9ce_d2111cb1","line":178,"range":{"start_line":178,"start_character":50,"end_line":178,"end_character":57},"updated":"2017-02-17 14:43:21.000000000","message":"Perhaps interface?, although at the same time all agent drivers essentially means just updating the base agent interface.","commit_id":"a3ecaa9656bd002ec60014784c3330695b9a2c60"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Proposed change"},{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a parameter (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_5a2b2694","line":38,"updated":"2017-02-23 13:23:15.000000000","message":"i find emphasizing \u0027deploy_steps\u0027 odd. i can understand \u0027deploy steps\u0027 (without the underscore). will keep reading...","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a parameter (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_ba10a25a","line":39,"updated":"2017-02-23 13:23:15.000000000","message":"huh? \u0027deploy_steps\u0027 is a parameter?","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"b4ed8f27eb75291bf66828e1e3187210260044bc","unresolved":false,"context_lines":[{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a parameter (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_60f702d3","line":39,"in_reply_to":"da36d5c6_ba10a25a","updated":"2017-02-27 08:39:29.000000000","message":"That comes from previous reviews, where the \"configuration option\" word was used, and there was the suggestion to change to parameter","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a parameter (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":44,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_fa0e9a39","line":41,"updated":"2017-02-23 13:23:15.000000000","message":"what about enabling? this is only used for disabling?","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"b4ed8f27eb75291bf66828e1e3187210260044bc","unresolved":false,"context_lines":[{"line_number":38,"context_line":"* Introduce the concept of ``deploy_steps`` to run during node deployment. It"},{"line_number":39,"context_line":"  will be introduced as a parameter (as referenced on the REST API impact"},{"line_number":40,"context_line":"  section), to ensure that operators have the"},{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":44,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_e03132a3","line":41,"in_reply_to":"da36d5c6_fa0e9a39","updated":"2017-02-27 08:39:29.000000000","message":"well, there will be default deployment steps that will always be enabled, and optionally they could be disabled. If an user wants to enable their own deployment steps, he/she needs to write their own, and will be enabled by default","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  choice of disabling features not needed, or providing their own."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":44,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":45,"context_line":"  step will be run."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_b507d516","line":44,"updated":"2017-02-23 13:23:15.000000000","message":"larger number is higher priority or lower priority?","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":47,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"},{"line_number":48,"context_line":"  base implementation will get a list of functions decorated with @deploy_step"},{"line_number":49,"context_line":"  and return a list of dictionaries representing those steps. They will be"},{"line_number":50,"context_line":"  sorted and processed later as needed."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 2 keys:"},{"line_number":53,"context_line":"  step and priority."}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_55193978","line":50,"updated":"2017-02-23 13:23:15.000000000","message":"sorted alphabetically? by higher priority to lower priority?","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  and return a list of dictionaries representing those steps. They will be"},{"line_number":50,"context_line":"  sorted and processed later as needed."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"* The return value of get_deploy_steps() will be a list of dicts with 2 keys:"},{"line_number":53,"context_line":"  step and priority."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Add a new function execute_deploy_step(deploy_step) to the base interfaces,"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_957bb18b","line":52,"updated":"2017-02-23 13:23:15.000000000","message":"this bullet should be part of the previous bullet.","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"* The default deployment steps will be listed on the base classes adopting"},{"line_number":64,"context_line":"  this method (as DeployInterface)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":67,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_759d5dbb","line":64,"updated":"2017-02-23 13:23:15.000000000","message":"i don\u0027t understand this bullet","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c7d9cf079c452678502576873aa7ea86fb39db04","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  this method (as DeployInterface)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":67,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"},{"line_number":68,"context_line":"  example, an ImageCustomizerDriver could be implemented, inheriting from the"},{"line_number":69,"context_line":"  desired driver, and adding an extra deploy step called customize_image that"},{"line_number":70,"context_line":"  will perform changes in the deployment image. It will be working on a typical"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_55b5b92e","line":67,"updated":"2017-02-23 13:23:15.000000000","message":"what do you mean by \u0027driver\u0027? a hardware type? a particular type of interface? the \u0027classic\u0027 driver?","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"b4ed8f27eb75291bf66828e1e3187210260044bc","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  this method (as DeployInterface)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"},{"line_number":67,"context_line":"  drivers that may be used in addition to the existing Ironic ones: for"},{"line_number":68,"context_line":"  example, an ImageCustomizerDriver could be implemented, inheriting from the"},{"line_number":69,"context_line":"  desired driver, and adding an extra deploy step called customize_image that"},{"line_number":70,"context_line":"  will perform changes in the deployment image. It will be working on a typical"}],"source_content_type":"text/x-rst","patch_set":15,"id":"da36d5c6_c0b8aeca","line":67,"in_reply_to":"da36d5c6_55b5b92e","updated":"2017-02-27 08:39:29.000000000","message":"yes, the default drivers on ironic/drivers","commit_id":"37df840f771468c54bc316a329a8afa77130b7c7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"},{"line_number":62,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* The default deployment steps will be listed on all the classes than inherit"},{"line_number":65,"context_line":"  from the DeployInterface one."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_13576203","line":64,"updated":"2017-03-07 11:11:59.000000000","message":"Please describe a list of default steps with priorities.","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"ded997dc393b4f61eac37109f241f5e3f7de87e4","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"},{"line_number":62,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* The default deployment steps will be listed on all the classes than inherit"},{"line_number":65,"context_line":"  from the DeployInterface one."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* Custom deployment steps can be added by vendors, creating their custom"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_c2569fd1","line":64,"in_reply_to":"9a30ddce_13576203","updated":"2017-03-08 09:10:02.000000000","message":"So at the moment we decided to go with just pre-deploymetn and post-deployment, and i mentioned pre-deployment containing partition and post-deployment containing bootloader. Do you need more clarification on this point? Maybe I","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  basis."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* As an initial step, before changing all the schema, only pre-deployment"},{"line_number":81,"context_line":"  interfaces and post-deployment interfaces will be implemented."},{"line_number":82,"context_line":"  The `pre-deployment`  interface will include all the steps that are now used"},{"line_number":83,"context_line":"  for partitioning the image."},{"line_number":84,"context_line":"  The `post-deployment` interface will include the bootloader installation."}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_d336aab3","line":81,"range":{"start_line":81,"start_character":2,"end_line":81,"end_character":12},"updated":"2017-03-07 11:11:59.000000000","message":"\"interfaces\" term used for ironic drivers, please use something else, looks like they will be non full-functional driver\u0027s interfaces.","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"ded997dc393b4f61eac37109f241f5e3f7de87e4","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  basis."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* As an initial step, before changing all the schema, only pre-deployment"},{"line_number":81,"context_line":"  interfaces and post-deployment interfaces will be implemented."},{"line_number":82,"context_line":"  The `pre-deployment`  interface will include all the steps that are now used"},{"line_number":83,"context_line":"  for partitioning the image."},{"line_number":84,"context_line":"  The `post-deployment` interface will include the bootloader installation."}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_42de2f40","line":81,"range":{"start_line":81,"start_character":2,"end_line":81,"end_character":12},"in_reply_to":"9a30ddce_d336aab3","updated":"2017-03-08 09:10:02.000000000","message":"I still see that as an interface, as it will expose some methods that can be overriden an extended, on that scope. Which term will do you suggest?","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":84,"context_line":"  The `post-deployment` interface will include the bootloader installation."},{"line_number":85,"context_line":"  Both pre and post-deployment interfaces could be extended by end-users to"},{"line_number":86,"context_line":"  provide their own functionality."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Alternatives"},{"line_number":90,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_ee0905df","line":87,"updated":"2017-03-07 11:11:59.000000000","message":"Please describe \"deployment\" term here more definitely. Looks like (from above) it\u0027s write image? Or more? Maybe we can in the future to split all deployment into steps?","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"ded997dc393b4f61eac37109f241f5e3f7de87e4","unresolved":false,"context_lines":[{"line_number":84,"context_line":"  The `post-deployment` interface will include the bootloader installation."},{"line_number":85,"context_line":"  Both pre and post-deployment interfaces could be extended by end-users to"},{"line_number":86,"context_line":"  provide their own functionality."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Alternatives"},{"line_number":90,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_22be9bd4","line":87,"in_reply_to":"9a30ddce_ee0905df","updated":"2017-03-08 09:10:02.000000000","message":"Yes, in the future everything related to the deployment will be converted into steps. I tried to cover updating previous sentences.","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":95,"context_line":"* Users can create their own images for each use case. But the limitation"},{"line_number":96,"context_line":"  is that the number of images can grow exponentially, and that there is no"},{"line_number":97,"context_line":"  ability to match an specific type of hardware with an specific image."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Data model impact"},{"line_number":101,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_eed74521","line":98,"updated":"2017-03-07 11:11:59.000000000","message":"Easy-customizable deploy driver usage (like ansible deploy driver).","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":117,"context_line":"* Users will be able to specify the deploy steps manually when initiating"},{"line_number":118,"context_line":"  deploy, following a JSON schema (example adapted from"},{"line_number":119,"context_line":"  node-set-clean-state.json)::"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    {"},{"line_number":122,"context_line":"        \"target\": \"active\","},{"line_number":123,"context_line":"        \"deploy_steps\": ["}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_d3306a0a","line":120,"updated":"2017-03-07 11:11:59.000000000","message":"As I understand no ability to change default deployment steps via api?","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        \"deploy_steps\": ["},{"line_number":124,"context_line":"            {"},{"line_number":125,"context_line":"                \"interface\": \"deploy\","},{"line_number":126,"context_line":"                \"step\": \"upgrade_firmware\","},{"line_number":127,"context_line":"                \"args\": {"},{"line_number":128,"context_line":"                    \"force\": \"True\""},{"line_number":129,"context_line":"                }"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_d3d22a34","line":126,"range":{"start_line":126,"start_character":25,"end_line":126,"end_character":41},"updated":"2017-03-07 11:11:59.000000000","message":"nit: this step looks like clean step (manual), maybe use something else for example (like \"set_bios_config\").","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":157,"context_line":"Nova driver impact"},{"line_number":158,"context_line":"------------------"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":161,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":162,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":163,"context_line":"steps, but Nova does not make use of that during instance creation."}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_229a5115","line":160,"updated":"2017-03-07 11:11:59.000000000","message":"In l145-146 mentioned triggering node to active state (rebuild, active API targets), but these requests issued by nova driver, and this spec proposed to pass deploy steps via additional option.","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"102a53a931450dcf17794f887dc7928c11670be6","unresolved":false,"context_lines":[{"line_number":160,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":161,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":162,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":163,"context_line":"steps, but Nova does not make use of that during instance creation."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9a30ddce_052637ba","line":163,"updated":"2017-03-07 11:11:59.000000000","message":"This is strange for me. Proposed feature obviously determine some behavior of instance on baremetal (RAID, hardware settings etc.). There is no way to set parameters for instance.","commit_id":"342e952e8d98c505e5588ac3899a8282203283b2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":43,"context_line":"* Add a decorator @deploy_step to decorate steps that should run"},{"line_number":44,"context_line":"  as a part of deploy. The ``priority`` field specifies the order in which the"},{"line_number":45,"context_line":"  step will be run. It is a non-zero number, so the sorting will be in natural"},{"line_number":46,"context_line":"  increasing order. Core deployment steps will have a range reserved for them,"},{"line_number":47,"context_line":"  between the greatest pre-deploy step and the lowest post-deploy step."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* Add a new function get_deploy_steps() to the base interface classes. The"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_fee7aee1","line":46,"range":{"start_line":46,"start_character":20,"end_line":46,"end_character":41},"updated":"2017-03-08 15:47:24.000000000","message":"What are Core deployment steps? What is the range for pre-deploy, core and post-deploy?","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The ``priority`` field will be used in the same way it is used for cleaning"},{"line_number":61,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"},{"line_number":62,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* The default deployment steps will be listed on all the classes than inherit"},{"line_number":65,"context_line":"  from the DeployInterface one. So all steps involving deploying an image onto"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_c39bf7c7","line":62,"range":{"start_line":62,"start_character":26,"end_line":62,"end_character":48},"updated":"2017-03-08 15:47:24.000000000","message":"May be you can provide github link\nhttps://github.com/openstack/ironic/blob/master/ironic/conductor/utils.py","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"5b185634d383d38bbf942167e883983ba18e76bd","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* The ``priority`` field will be used in the same way it is used for cleaning"},{"line_number":61,"context_line":"  steps. When equal priority occurs, the steps are sorted by following the"},{"line_number":62,"context_line":"  interface priority. See ``conductor/utils.py``."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* The default deployment steps will be listed on all the classes than inherit"},{"line_number":65,"context_line":"  from the DeployInterface one. So all steps involving deploying an image onto"}],"source_content_type":"text/x-rst","patch_set":17,"id":"5ff73747_362c0598","line":62,"range":{"start_line":62,"start_character":26,"end_line":62,"end_character":48},"in_reply_to":"9a30ddce_c39bf7c7","updated":"2017-04-26 11:52:23.000000000","message":"I think most people involved in this project know how to find utils.py. Do you agree?","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":74,"context_line":"  inheritance behaviour, where methods can be overriden or new ones can"},{"line_number":75,"context_line":"  be added."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* The default deployment steps will be be applied consistently to all the"},{"line_number":78,"context_line":"  nodes in the deployment. However, an external implementation could define"},{"line_number":79,"context_line":"  deploy steps that look at node properties and deploy specifically per node"},{"line_number":80,"context_line":"  basis."}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_feb40ef3","line":77,"range":{"start_line":77,"start_character":2,"end_line":77,"end_character":30},"updated":"2017-03-08 15:47:24.000000000","message":"What are default deployment steps? How are they specified?","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"* As an initial step, before changing all the schema, only pre-deployment"},{"line_number":83,"context_line":"  interfaces and post-deployment interfaces will be implemented."},{"line_number":84,"context_line":"  The `pre-deployment`  interface will include all the steps that are now used"},{"line_number":85,"context_line":"  for partitioning the image."},{"line_number":86,"context_line":"  The `post-deployment` interface will include the bootloader installation."},{"line_number":87,"context_line":"  Both pre and post-deployment interfaces could be extended by end-users to"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_be60d636","line":84,"range":{"start_line":84,"start_character":2,"end_line":84,"end_character":33},"updated":"2017-03-08 15:47:24.000000000","message":"What is pre-deployment/post-deployment interfaces? Do you mean pre-deployment methods within power, management, deploy and raid?","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"deploy_steps\": ["},{"line_number":128,"context_line":"            {"},{"line_number":129,"context_line":"                \"interface\": \"deploy\","},{"line_number":130,"context_line":"                \"step\": \"upgrade_firmware\","},{"line_number":131,"context_line":"                \"args\": {"},{"line_number":132,"context_line":"                    \"force\": \"True\""},{"line_number":133,"context_line":"                }"}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_232a132d","line":130,"range":{"start_line":130,"start_character":16,"end_line":130,"end_character":43},"updated":"2017-03-08 15:47:24.000000000","message":"Probably need to add \u0027Priority\u0027 somewhere? Or it would execute them in the given order?\nMay be you need to elaboarte on \u0027automated deploy steps\u0027 which has priority and \u0027manual deploy steps\u0027 which do not take priority but gets executed in the given order.","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"d1151bc8cb216d0a03d9686316e44ad6c164016b","unresolved":false,"context_lines":[{"line_number":161,"context_line":"Nova driver impact"},{"line_number":162,"context_line":"------------------"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":165,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":166,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":167,"context_line":"steps, but Nova does not make use of that during instance creation."}],"source_content_type":"text/x-rst","patch_set":17,"id":"9a30ddce_1e164255","line":164,"range":{"start_line":164,"start_character":0,"end_line":164,"end_character":6},"updated":"2017-03-08 15:47:24.000000000","message":"With nova boot would one be able to run automated deploy (equivalent to automated cleaning) steps but may not be able to run manual deploy steps (equivalent to manual cleaning?","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"5b185634d383d38bbf942167e883983ba18e76bd","unresolved":false,"context_lines":[{"line_number":161,"context_line":"Nova driver impact"},{"line_number":162,"context_line":"------------------"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"None. This spec provides Ironic with the ability to run deploy steps during"},{"line_number":165,"context_line":"deployment. Similar to how cleaning runs, the cleaning runs a predefined"},{"line_number":166,"context_line":"set of steps. Manual cleaning allows the operator to provide a list of clean"},{"line_number":167,"context_line":"steps, but Nova does not make use of that during instance creation."}],"source_content_type":"text/x-rst","patch_set":17,"id":"5ff73747_3651a50f","line":164,"range":{"start_line":164,"start_character":0,"end_line":164,"end_character":6},"in_reply_to":"9a30ddce_1e164255","updated":"2017-04-26 11:52:23.000000000","message":"The default behavior would be the automated deploy. Manually running deploy steps is (afaik) outside the scope of this spec.","commit_id":"b7f3fc5712c47a04ba803347059c4b69511843f1"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":40,"context_line":"configuration steps are executed post-deploy, most of them need a reboot"},{"line_number":41,"context_line":"of the nodes, having the need to orchestrate the reboots"},{"line_number":42,"context_line":"properly, and causing performance issues that are not acceptable in a"},{"line_number":43,"context_line":"production environment."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_5bf3409f","line":43,"updated":"2018-01-03 17:17:44.000000000","message":"The other way is to have groups of nodes configured in advance (using clean steps) for each required combination of configurations. This leads to strange capacity planning issues.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":40,"context_line":"configuration steps are executed post-deploy, most of them need a reboot"},{"line_number":41,"context_line":"of the nodes, having the need to orchestrate the reboots"},{"line_number":42,"context_line":"properly, and causing performance issues that are not acceptable in a"},{"line_number":43,"context_line":"production environment."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_fbb3afe7","line":43,"in_reply_to":"9f91af0f_5bf3409f","updated":"2018-01-09 23:22:49.000000000","message":"True, I\u0027ll add that in.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"09edc393c3bfd6fa4971c1c44ec66f83fd1a92be","unresolved":false,"context_lines":[{"line_number":40,"context_line":"configuration steps are executed post-deploy, most of them need a reboot"},{"line_number":41,"context_line":"of the nodes, having the need to orchestrate the reboots"},{"line_number":42,"context_line":"properly, and causing performance issues that are not acceptable in a"},{"line_number":43,"context_line":"production environment."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3fa0c359_e9f9b44d","line":43,"in_reply_to":"9f91af0f_fbb3afe7","updated":"2018-02-23 02:43:19.000000000","message":"I moved this paragraph to the Alternatives section.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":66,"context_line":"this -- the actual clean steps need to be specified in the request and it"},{"line_number":67,"context_line":"can only be done with a node in the ``manageable`` state."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"With deployment, there is one list of deploy steps; there is no"},{"line_number":70,"context_line":"``automated deployment`` or ``manual deployment``. The list of"},{"line_number":71,"context_line":"deploy steps to execute will incorporate ``one-time`` steps specified at the"},{"line_number":72,"context_line":"time of node deployment."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"What is a deploy step?"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_bb736ce7","line":72,"range":{"start_line":69,"start_character":0,"end_line":72,"end_character":24},"updated":"2018-01-03 17:17:44.000000000","message":"Is this another way of looking at things:\n\nIn contrast, with deployment we have default steps and override steps. The configuration defines what happens by default when the node is deployed, but API users can override the deploy steps configuration when the node is deployed. The default configuration means the deploy behaves just as it does today.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":75,"context_line":"What is a deploy step?"},{"line_number":76,"context_line":"~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":77,"context_line":"Functions that are deploy steps will be decorated with ``@deploy_step``,"},{"line_number":78,"context_line":"defined in ironic/drivers/base.py as follows::"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":" def deploy_step(priority, argsinfo\u003dNone):"},{"line_number":81,"context_line":"    \"\"\"Decorator for deployment steps."}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_fb3fb4d3","line":78,"updated":"2018-01-03 17:17:44.000000000","message":"Why not add a new unified step concept instead? Something like:\n\n  def @step(clean_priority\u003d0, deploy_priority\u003d0, argsinfo\u003dNone)\n\ni.e. any deploy step is available as a manual clean step, by default its not automatic.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"09edc393c3bfd6fa4971c1c44ec66f83fd1a92be","unresolved":false,"context_lines":[{"line_number":75,"context_line":"What is a deploy step?"},{"line_number":76,"context_line":"~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":77,"context_line":"Functions that are deploy steps will be decorated with ``@deploy_step``,"},{"line_number":78,"context_line":"defined in ironic/drivers/base.py as follows::"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":" def deploy_step(priority, argsinfo\u003dNone):"},{"line_number":81,"context_line":"    \"\"\"Decorator for deployment steps."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3fa0c359_ac609aa6","line":78,"in_reply_to":"9f91af0f_70281e96","updated":"2018-02-23 02:43:19.000000000","message":"Just looked at this again. Your decorator has separate priorities for clean/deploy. I suppose we could add separate ones for abortable too. Then the question is whether there might be different argsinfo and/or new args that we haven\u0027t thought of yet, for deploy that aren\u0027t applicable to clean. I think we could always have this new decorator in the future and deprecate/remove the clean_step \u0026 deploy_step decorators if we want.\n\nI\u0027m not sure how much we gain from having a combined decorator, so right now, to avoid having to make too many code changes, etc, my feeling is that it would be easier to have a separate deploy_step decorator.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":75,"context_line":"What is a deploy step?"},{"line_number":76,"context_line":"~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":77,"context_line":"Functions that are deploy steps will be decorated with ``@deploy_step``,"},{"line_number":78,"context_line":"defined in ironic/drivers/base.py as follows::"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":" def deploy_step(priority, argsinfo\u003dNone):"},{"line_number":81,"context_line":"    \"\"\"Decorator for deployment steps."}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_70281e96","line":78,"in_reply_to":"9f91af0f_fb3fb4d3","updated":"2018-01-09 23:22:49.000000000","message":"Because it isn\u0027t clear to me, right now, what the right arguments would be for a generic @step. For instance, the current clean_step decorator has priority, abortable, argsinfo. We don\u0027t know yet, if we will allow aborting of a deploy step. If we do, would abortable be applicable for both clean \u0026 deploy? What if we want to allow it for a particular step for clean only, but not deploy?\n\nPresumably argsinfo would be the same for the step, whether in deploy or clean.\n\nThe priority could also be different for cleaning vs deployment.\n\nHaving a separate deploy_step decorator would make it clearer. (Also easier to implement, no need to worry about deprecating old \u0027clean_step\u0027...)\n\nI really need to spend time to actually implement this to see what pitfalls are out there...","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":112,"context_line":"  ``core`` step into separate ``core`` steps. Steps to"},{"line_number":113,"context_line":"  be performed before this new core step (such as RAID configuration), should"},{"line_number":114,"context_line":"  have priorities less than 40. Likewise, steps to be performed after this"},{"line_number":115,"context_line":"  core step should have priorities larger than 70."},{"line_number":116,"context_line":"* ``always`` steps. These are steps that are turned on via the priority values"},{"line_number":117,"context_line":"  being set from configuration options.  They will always be executed if their"},{"line_number":118,"context_line":"  priorities are non-zero. Note that these are overrideable on a"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_b72b8080","line":115,"updated":"2018-01-03 17:17:44.000000000","message":"I actually like this idea, but there is a problem / hidden cost. When we do that split out, older API microversions will have to show multiple steps as the single core step.\n\nI still think what you have here is the correct approach, I just wanted to say the above out loud.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":112,"context_line":"  ``core`` step into separate ``core`` steps. Steps to"},{"line_number":113,"context_line":"  be performed before this new core step (such as RAID configuration), should"},{"line_number":114,"context_line":"  have priorities less than 40. Likewise, steps to be performed after this"},{"line_number":115,"context_line":"  core step should have priorities larger than 70."},{"line_number":116,"context_line":"* ``always`` steps. These are steps that are turned on via the priority values"},{"line_number":117,"context_line":"  being set from configuration options.  They will always be executed if their"},{"line_number":118,"context_line":"  priorities are non-zero. Note that these are overrideable on a"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_fb016f6b","line":115,"in_reply_to":"9f91af0f_b72b8080","updated":"2018-01-09 23:22:49.000000000","message":"OMG, I\u0027m going to leave that to whoever inherits this :D","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":119,"context_line":"  per-node-deployment basis, via the ``one-time`` steps (next bullet)."},{"line_number":120,"context_line":"  **[rloo, note, do we want to allow the API request to be able to turn off"},{"line_number":121,"context_line":"  or change any/all of the \u0027always\u0027 steps? Or might we want some flag to"},{"line_number":122,"context_line":"  indicate that a step isn\u0027t overrideable? Or punt this to some future RFE?]**"},{"line_number":123,"context_line":"* ``one-time`` steps. These are steps that are specified in the API request"},{"line_number":124,"context_line":"  to be performed on that particular node during the deployment process. If"},{"line_number":125,"context_line":"  this step is also an ``always`` step, the settings of this step (e.g."}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_376530e2","line":122,"updated":"2018-01-03 17:17:44.000000000","message":"I think we could special case the `core` step so it can\u0027t have its priority changed, except for disabling it.\n\nThe use case here is back to RAID. By default you might want to setup mirrored disks on every boot, but you want to override that to striped for some deploys. That seems OK.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":119,"context_line":"  per-node-deployment basis, via the ``one-time`` steps (next bullet)."},{"line_number":120,"context_line":"  **[rloo, note, do we want to allow the API request to be able to turn off"},{"line_number":121,"context_line":"  or change any/all of the \u0027always\u0027 steps? Or might we want some flag to"},{"line_number":122,"context_line":"  indicate that a step isn\u0027t overrideable? Or punt this to some future RFE?]**"},{"line_number":123,"context_line":"* ``one-time`` steps. These are steps that are specified in the API request"},{"line_number":124,"context_line":"  to be performed on that particular node during the deployment process. If"},{"line_number":125,"context_line":"  this step is also an ``always`` step, the settings of this step (e.g."}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_bb25270b","line":122,"in_reply_to":"9f91af0f_376530e2","updated":"2018-01-09 23:22:49.000000000","message":"At least for now, the core step (L104) cannot be disabled. I\u0027m guessing (hoping) you mean s/core/always/ in your comment. Because RAID can be an \u0027always\u0027 step.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":124,"context_line":"  to be performed on that particular node during the deployment process. If"},{"line_number":125,"context_line":"  this step is also an ``always`` step, the settings of this step (e.g."},{"line_number":126,"context_line":"  priority, arguments) will be used, not the corresponding ``always`` step."},{"line_number":127,"context_line":"  It is an error to try to override a ``core`` step."},{"line_number":128,"context_line":"  **[rloo, is it possible that there would be a step that someone would want"},{"line_number":129,"context_line":"  performed more than once during the deployment? maybe we don\u0027t want to go"},{"line_number":130,"context_line":"  there...]**"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_777098dd","line":127,"updated":"2018-01-03 17:17:44.000000000","message":"I am not sure, might want to allow people to disable a `core` step. Maybe we only allow the priority to be changed to 0, but allow everything else?","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":124,"context_line":"  to be performed on that particular node during the deployment process. If"},{"line_number":125,"context_line":"  this step is also an ``always`` step, the settings of this step (e.g."},{"line_number":126,"context_line":"  priority, arguments) will be used, not the corresponding ``always`` step."},{"line_number":127,"context_line":"  It is an error to try to override a ``core`` step."},{"line_number":128,"context_line":"  **[rloo, is it possible that there would be a step that someone would want"},{"line_number":129,"context_line":"  performed more than once during the deployment? maybe we don\u0027t want to go"},{"line_number":130,"context_line":"  there...]**"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_3b7fd7e0","line":127,"in_reply_to":"9f91af0f_777098dd","updated":"2018-01-09 23:22:49.000000000","message":"Right now, the core step is needed. if it is disabled, the deployment won\u0027t work. After someone breaks it up into several steps, we can decide which ones of those are core and which are not. Hmm, does this mean that we will always have at least one core step; or will we just make all the steps \u0027always\u0027 or \u0027one-time\u0027 steps. Sigh.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":127,"context_line":"  It is an error to try to override a ``core`` step."},{"line_number":128,"context_line":"  **[rloo, is it possible that there would be a step that someone would want"},{"line_number":129,"context_line":"  performed more than once during the deployment? maybe we don\u0027t want to go"},{"line_number":130,"context_line":"  there...]**"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"When are deploy steps executed?"},{"line_number":133,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_57f3140b","line":130,"updated":"2018-01-03 17:17:44.000000000","message":"I think we say a step only happens at most once (per clean or deploy), and you just get to choose the priority and arguments.\n\nIf you think about RAID, its kinda does two runs if you have a mix of mirrored and striped disks, but really that is just one run with complex config. Seems a good simplifying assumption.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":127,"context_line":"  It is an error to try to override a ``core`` step."},{"line_number":128,"context_line":"  **[rloo, is it possible that there would be a step that someone would want"},{"line_number":129,"context_line":"  performed more than once during the deployment? maybe we don\u0027t want to go"},{"line_number":130,"context_line":"  there...]**"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"When are deploy steps executed?"},{"line_number":133,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_9b586388","line":130,"in_reply_to":"9f91af0f_57f3140b","updated":"2018-01-09 23:22:49.000000000","message":"I\u0027m good with this. If needed, someone can make it more flexible it later :)","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":10202,"name":"Wan-yen Hsu","email":"wanyenhsu@gmail.com"},"change_message_id":"f8a428d80243c079874cbe1d80356561cd367000","unresolved":false,"context_lines":[{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Each deploy step has a priority; a non-negative integer. The steps are"},{"line_number":136,"context_line":"executed from highest priority to lowest priority. Steps with priorities of"},{"line_number":137,"context_line":"zero (0) are not executed."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"For steps having the same priority, their order is determined by which"},{"line_number":140,"context_line":"Interface implements the step; they are sorted from highest Interface priority"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5f93b717_5f0e943b","line":137,"updated":"2018-01-29 22:42:39.000000000","message":"Overall, I like the idea of deployment steps and thank you for the spec.  I have a couple questions:  1) Does the deployment steps get executed after Nova scheduler selected a node?  Some deployment steps have hardware dependency, ex, RAID config will have dependency on the node with RAID controller.  If Nova selected a node that does not have the corresponding hardware capability, then the deploy step will fail.  2) Some deployment step may take a long time to complete and better to do it asynchronously.  One example is firmware update (although it might be better off to do it as a cleaning step).  Does the deployment framework allow one async deployment step to complete before executing another deployment step (similar to dependency requirement)?  For instance, firmware update to complete before OS deployment step.\nThanks!","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"09edc393c3bfd6fa4971c1c44ec66f83fd1a92be","unresolved":false,"context_lines":[{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Each deploy step has a priority; a non-negative integer. The steps are"},{"line_number":136,"context_line":"executed from highest priority to lowest priority. Steps with priorities of"},{"line_number":137,"context_line":"zero (0) are not executed."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"For steps having the same priority, their order is determined by which"},{"line_number":140,"context_line":"Interface implements the step; they are sorted from highest Interface priority"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3fa0c359_ac63ba19","line":137,"in_reply_to":"5f93b717_5f0e943b","updated":"2018-02-23 02:43:19.000000000","message":"Good questions Wan-yen.\n\nRe 1) Yes, the deploy steps only happen *after* the nova-virt-ironic-driver issues the \u0027ironic-set-provision-state ACTIVE\u0027 request. I think it is up to the deploy step itself (in your case RAID config) to handle the case if it cannot do its job cuz of unavailable hardware or whatever. I suppose it could either not do anything (e.g. just skip me, use whatever RAID config is already there), or if the step thinks it is important, FAIL the entire deploy process.\n\nRe 2) yes, the deploy steps/process will be similar to the clean step process. A step has to be finished before the next one is started.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":146,"context_line":"* raid: 1"},{"line_number":147,"context_line":"* **[rloo TODO: the above are the cleaning interface priorities; need to"},{"line_number":148,"context_line":"  decide what/which interfaces makes sense for deployment. OR just add"},{"line_number":149,"context_line":"  them into the list and prioritize when we have steps in those interfaces]**"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"For steps that have the same priority and are implemented by the"},{"line_number":152,"context_line":"same Interface, they will be executed in alphabetical order (starting from Eh"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_37469023","line":149,"updated":"2018-01-03 17:17:44.000000000","message":"Good question, I would say keep it the same.\n\nBut I think something we are missing here is in-band vs out-of-band. We want to define things such that we have a minimum number of reboot cycles.\n\nMaybe that means we do: out-of-band, in-band then out-of-band as a kind of meta ordering that you must fit into?\n\nIts not clear to me how that works with the clean steps today.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":146,"context_line":"* raid: 1"},{"line_number":147,"context_line":"* **[rloo TODO: the above are the cleaning interface priorities; need to"},{"line_number":148,"context_line":"  decide what/which interfaces makes sense for deployment. OR just add"},{"line_number":149,"context_line":"  them into the list and prioritize when we have steps in those interfaces]**"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"For steps that have the same priority and are implemented by the"},{"line_number":152,"context_line":"same Interface, they will be executed in alphabetical order (starting from Eh"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_16874a64","line":149,"in_reply_to":"9f91af0f_37469023","updated":"2018-01-09 23:22:49.000000000","message":"All the steps can have priorities assigned to them, so the order can be decided ahead of time. We just need to deal with the corner cases where two or more steps have the same priority (or raise an error and not do anything).\n\nThe out-of-band steps are usually in the power or management in\nterfaces, and those two interfaces are done first (IF the steps have the same priority) so that would address your out-of-band before in-band. Really, on one should use the same priority for two steps; it is too confusing unless you know the algorithm.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":162,"context_line":"any that are specified in the request, and will execute them, one at a time."},{"line_number":163,"context_line":"**[rloo, wow, that seems so easy; is that all there is too it? :D]**"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Alternatives"},{"line_number":167,"context_line":"------------"},{"line_number":168,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_d792c4f6","line":165,"updated":"2018-01-03 17:17:44.000000000","message":"Don\u0027t we also need to add some example optional deployment steps? Maybe we could do RAID?\n\nOnce we do that, it brings up the question of configuration. I guess you want to be able to change the default deploy and clean priority.\n\nThe default RAID configuration is on set on the Node in the API, but you probably want a default for when that is not set, and store that in config?","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":162,"context_line":"any that are specified in the request, and will execute them, one at a time."},{"line_number":163,"context_line":"**[rloo, wow, that seems so easy; is that all there is too it? :D]**"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Alternatives"},{"line_number":167,"context_line":"------------"},{"line_number":168,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_368a8e69","line":165,"in_reply_to":"9f91af0f_d792c4f6","updated":"2018-01-09 23:22:49.000000000","message":"Oh. good question. I was only thinking about the framework/deploy steps. But yeah, clearly some people want RAID as a deploy step so I\u0027ll add that in as part of the spec. Hmm, but then, as you mention, what about the config. Isn\u0027t that what your deploy template spec addresses? Let me think about it.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"f2bd9d8014aadadab13bb2af97588aa4d5c0c8e1","unresolved":false,"context_lines":[{"line_number":195,"context_line":"State Machine Impact"},{"line_number":196,"context_line":"--------------------"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"No new state or transition will be added."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"The state of the node will alternate from ``deploying`` to ``deploywait``"},{"line_number":201,"context_line":"for each asynchronous deploy step."}],"source_content_type":"text/x-rst","patch_set":19,"id":"ff82abbf_50902e4f","line":198,"range":{"start_line":198,"start_character":0,"end_line":198,"end_character":26},"updated":"2017-11-30 19:37:09.000000000","message":"Just thinking some kind of deploy_prepare state would be nice. would allow operators to better identify issues in their deploy process.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"86c82117fe35e578ce3b058119f3c416c4cbd49b","unresolved":false,"context_lines":[{"line_number":195,"context_line":"State Machine Impact"},{"line_number":196,"context_line":"--------------------"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"No new state or transition will be added."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"The state of the node will alternate from ``deploying`` to ``deploywait``"},{"line_number":201,"context_line":"for each asynchronous deploy step."}],"source_content_type":"text/x-rst","patch_set":19,"id":"ff82abbf_d3ec482b","line":198,"range":{"start_line":198,"start_character":0,"end_line":198,"end_character":26},"in_reply_to":"ff82abbf_50902e4f","updated":"2017-11-30 20:03:15.000000000","message":"Good question. For this spec, I\u0027d rather not have to add new states; that can be done later. Also, i am thinking/hoping that when we break up the existing deployment process into several deploy steps, it\u0027ll be clearer, when there are issues, at what point in the deployment, an issue occurred.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    \"deploy_steps\": ["},{"line_number":224,"context_line":"      {"},{"line_number":225,"context_line":"        \"interface\": \"raid\","},{"line_number":226,"context_line":"        \"priority\": 10,"},{"line_number":227,"context_line":"        \"step\": \"create_configuration\","},{"line_number":228,"context_line":"        \"args\": {\"create_nonroot_volumes\": False, // optional keyword argument"},{"line_number":229,"context_line":"                 ... }               // more keyword arguments (if applicable)"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_8038743d","line":226,"updated":"2018-01-03 17:17:44.000000000","message":"Interestingly, we don\u0027t include \"priority\" for manual clean steps, the order specified is used instead, which is way more friendly.\nhttps://docs.openstack.org/ironic/latest/admin/cleaning.html#starting-manual-cleaning-via-api\n\nNow quite how we resolve that with before/after core... and before/after any existing configured steps. Maybe we just require the core step to be included in the list, if deploy_steps are specified?","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    \"deploy_steps\": ["},{"line_number":224,"context_line":"      {"},{"line_number":225,"context_line":"        \"interface\": \"raid\","},{"line_number":226,"context_line":"        \"priority\": 10,"},{"line_number":227,"context_line":"        \"step\": \"create_configuration\","},{"line_number":228,"context_line":"        \"args\": {\"create_nonroot_volumes\": False, // optional keyword argument"},{"line_number":229,"context_line":"                 ... }               // more keyword arguments (if applicable)"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_fb472f76","line":226,"in_reply_to":"9f91af0f_8038743d","updated":"2018-01-09 23:22:49.000000000","message":"I think it\u0027d be a burden to ask operators to specify the entire list of deploy steps that they want executed. But then you\u0027ll ask -- how is that different from manual cleaning? Well, cuz it is \u0027manual cleaning\u0027. For automated cleaning, the operator doesn\u0027t specify anything via an API request.\n\nThat\u0027s what makes these deploy steps different. Another way would be to allow the operator to \u0027refer\u0027 (vs \u0027override\u0027) a \u0027core\u0027 or \u0027always\u0027 deploy step, to allow them to be able to easily specify the entire list of deploy steps to execute. but what if they miss one...","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":265,"context_line":"~~~~~~~~~~~~~~~"},{"line_number":266,"context_line":"The GET /v1/nodes/* requests that return information about nodes will"},{"line_number":267,"context_line":"be modified to also return the node\u0027s ``deploy_step`` field and the"},{"line_number":268,"context_line":"deploy-related information in the node\u0027s ``driver_internal_info`` field."},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"GET deploy steps"},{"line_number":271,"context_line":"~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_206de831","line":268,"updated":"2018-01-03 17:17:44.000000000","message":"I think we should define the error cases here. The current deploy_step show which thing caused the deploy to go into an error step, just like with cleaning?","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":265,"context_line":"~~~~~~~~~~~~~~~"},{"line_number":266,"context_line":"The GET /v1/nodes/* requests that return information about nodes will"},{"line_number":267,"context_line":"be modified to also return the node\u0027s ``deploy_step`` field and the"},{"line_number":268,"context_line":"deploy-related information in the node\u0027s ``driver_internal_info`` field."},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"GET deploy steps"},{"line_number":271,"context_line":"~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_7b531f3a","line":268,"in_reply_to":"9f91af0f_206de831","updated":"2018-01-09 23:22:49.000000000","message":"Yeah, whatever we do with cleaning, should be similar for deploy steps. (Just that I\u0027ve forgotten what that was...)","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":295,"context_line":""},{"line_number":296,"context_line":"The deploy steps is represented as a list of step dictionaries (in JSON"},{"line_number":297,"context_line":"format). Each dictionary should have the keys ``interface``, ``priority``,"},{"line_number":298,"context_line":"and ``step``; ``args`` is optional."},{"line_number":299,"context_line":""},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_805f1471","line":298,"updated":"2018-01-03 17:17:44.000000000","message":"I assume that is the same as manual clean? It seems sensible.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":295,"context_line":""},{"line_number":296,"context_line":"The deploy steps is represented as a list of step dictionaries (in JSON"},{"line_number":297,"context_line":"format). Each dictionary should have the keys ``interface``, ``priority``,"},{"line_number":298,"context_line":"and ``step``; ``args`` is optional."},{"line_number":299,"context_line":""},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_1b3453fb","line":298,"in_reply_to":"9f91af0f_805f1471","updated":"2018-01-09 23:22:49.000000000","message":"If i recall, the same except for the additional \u0027priority\u0027. I\u0027ll look into it and update the spec.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"f2bd9d8014aadadab13bb2af97588aa4d5c0c8e1","unresolved":false,"context_lines":[{"line_number":367,"context_line":""},{"line_number":368,"context_line":"None with the existing deployment process. New deployment steps may add"},{"line_number":369,"context_line":"a performance impact, for instance, doing RAID configuration during the"},{"line_number":370,"context_line":"deployment process means that the user will have to wait awhile before"},{"line_number":371,"context_line":"their instance is ready to be used."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"ff82abbf_b0ee5a89","line":370,"range":{"start_line":370,"start_character":34,"end_line":370,"end_character":63},"updated":"2017-11-30 19:37:09.000000000","message":"Will this impact the deploy time_out setting? if so will we be able to set a timeout for each step? and would that setting be added to the overall deploy time out.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3c6fc82cdb5edc83a9c08d60ccc60b4a2840fdfc","unresolved":false,"context_lines":[{"line_number":367,"context_line":""},{"line_number":368,"context_line":"None with the existing deployment process. New deployment steps may add"},{"line_number":369,"context_line":"a performance impact, for instance, doing RAID configuration during the"},{"line_number":370,"context_line":"deployment process means that the user will have to wait awhile before"},{"line_number":371,"context_line":"their instance is ready to be used."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_bb2207b8","line":370,"range":{"start_line":370,"start_character":34,"end_line":370,"end_character":63},"in_reply_to":"9f91af0f_9a06a186","updated":"2018-01-09 23:22:49.000000000","message":"yup. should document this in the admin guide.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"65f26f6a1898e1753b67df962119f1ac0cc4a1b0","unresolved":false,"context_lines":[{"line_number":367,"context_line":""},{"line_number":368,"context_line":"None with the existing deployment process. New deployment steps may add"},{"line_number":369,"context_line":"a performance impact, for instance, doing RAID configuration during the"},{"line_number":370,"context_line":"deployment process means that the user will have to wait awhile before"},{"line_number":371,"context_line":"their instance is ready to be used."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"9f91af0f_9a06a186","line":370,"range":{"start_line":370,"start_character":34,"end_line":370,"end_character":63},"in_reply_to":"ff82abbf_539ef854","updated":"2018-01-03 17:17:44.000000000","message":"Might be worth saying the time_out setting may need to be adjusted, depending on what you do to the deploy steps?\n\nSeems fine to keep the timeout the same.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"86c82117fe35e578ce3b058119f3c416c4cbd49b","unresolved":false,"context_lines":[{"line_number":367,"context_line":""},{"line_number":368,"context_line":"None with the existing deployment process. New deployment steps may add"},{"line_number":369,"context_line":"a performance impact, for instance, doing RAID configuration during the"},{"line_number":370,"context_line":"deployment process means that the user will have to wait awhile before"},{"line_number":371,"context_line":"their instance is ready to be used."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"ff82abbf_539ef854","line":370,"range":{"start_line":370,"start_character":34,"end_line":370,"end_character":63},"in_reply_to":"ff82abbf_b0ee5a89","updated":"2017-11-30 20:03:15.000000000","message":"That\u0027s a good question. I had to take a look to see how things work now. With cleaning and deployment, there is a periodic check that will put the  node in a FAIL state if the node is in a [CLEAN|DEPLOY]WAIT state and if the ramdisk has not heartbeated for CONF.[clean|deploy]_callback_timeout. \n\nSo no, it shouldn\u0027t impact the deploy_callback_timeout config value, unless someone adds a deploy step that causes the ramdisk to work so hard that it cannot heartbeat for a long time...\n\nThe key here is that the timeout value is used to time out if there is no heartbeat, vs the total length of time to do *something* in the ramdisk.","commit_id":"872335b63265b53bd3ec8ce158f8d59a4c0b7361"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Deployment steps"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651185"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"There is a need for ironic to support customizable and extendable deployment"},{"line_number":14,"context_line":"steps. This would provide the ability to prepare bare metal nodes (servers)"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_62586630","line":11,"updated":"2018-08-23 13:53:53.000000000","message":"please change to a story","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"What is a deploy step?"},{"line_number":72,"context_line":"~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":73,"context_line":"Functions that are deploy steps will be decorated with ``@deploy_step``,"},{"line_number":74,"context_line":"defined in ironic/drivers/base.py as follows::"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_02417239","line":72,"updated":"2018-08-23 13:53:53.000000000","message":"I think we can drop this whole introduction now.","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":115,"context_line":"  treated as one (big) ``core`` deploy step. Splitting the existing"},{"line_number":116,"context_line":"  process into two or more steps is left for future work (unless"},{"line_number":117,"context_line":"  some obvious, easy-to-implement steps can be done). This step will have"},{"line_number":118,"context_line":"  a hard-coded priority value of 50."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"  To plan for the future, we will reserve the range of priority numbers"},{"line_number":121,"context_line":"  40..70 (inclusive) for the split out of the current deployment process"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_223eeeb7","line":118,"updated":"2018-08-23 13:53:53.000000000","message":"we ended up with 100","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":118,"context_line":"  a hard-coded priority value of 50."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"  To plan for the future, we will reserve the range of priority numbers"},{"line_number":121,"context_line":"  40..70 (inclusive) for the split out of the current deployment process"},{"line_number":122,"context_line":"  ``core`` step into separate ``core`` steps. Steps to"},{"line_number":123,"context_line":"  be performed before this new core step (such as RAID configuration), should"},{"line_number":124,"context_line":"  have priorities less than 40. Likewise, steps to be performed after this"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_c2461a51","line":121,"updated":"2018-08-23 13:53:53.000000000","message":"nit: 50-150?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":134,"context_line":""},{"line_number":135,"context_line":"  For example, a RAID deploy step could be an ``always`` step."},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"  A beer to someone that comes up with a better name than ``always``."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* ``one-time`` steps. These are steps that are specified in the `API request"},{"line_number":140,"context_line":"  \u003chttps://developer.openstack.org/api-ref/baremetal/#change-node-provision-state\u003e`_"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_e243163e","line":137,"updated":"2018-08-23 13:53:53.000000000","message":"\"persistent\"? \"permanent\"? \"standard\"?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  This is one way to disable an ``always`` step or change the order in which"},{"line_number":146,"context_line":"  it is executed."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  It is an error to try to override a ``core`` step."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When are deploy steps executed?"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_8276e2a3","line":148,"updated":"2018-08-23 13:53:53.000000000","message":"And I guess it\u0027s an error to use priority inside [50, 150] range?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":149,"context_line":""},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When are deploy steps executed?"},{"line_number":152,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Each deploy step has a priority; a non-negative integer. The steps are"},{"line_number":155,"context_line":"executed from highest priority to lowest priority. Steps with priorities of"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_a27bde89","line":152,"updated":"2018-08-23 13:53:53.000000000","message":"This can be dropped now?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":182,"context_line":"(see `REST API impact`_ for details)."},{"line_number":183,"context_line":"The conductor will generate a list of the deploy steps, incorporating"},{"line_number":184,"context_line":"any that are specified in the request, and will execute them, one at a time."},{"line_number":185,"context_line":"**[rloo, wow, that seems so easy; is that all there is too it? :D]**"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"**TODO**:"},{"line_number":188,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_426c4acf","line":185,"updated":"2018-08-23 13:53:53.000000000","message":"\\o/","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":187,"context_line":"**TODO**:"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"*John asks*: Don\u0027t we also need to add some example optional deployment steps?"},{"line_number":190,"context_line":"Maybe we could do RAID?"},{"line_number":191,"context_line":"Once we do that, it brings up the question of configuration. I guess you want"},{"line_number":192,"context_line":"to be able to change the default deploy and clean priority."},{"line_number":193,"context_line":"The default RAID configuration is on set on the Node in the API, but you"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_627146a8","line":190,"updated":"2018-08-23 13:53:53.000000000","message":"Metadata cleaning will be a good example for people who disable automated cleaning (hi tripleo).","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":191,"context_line":"Once we do that, it brings up the question of configuration. I guess you want"},{"line_number":192,"context_line":"to be able to change the default deploy and clean priority."},{"line_number":193,"context_line":"The default RAID configuration is on set on the Node in the API, but you"},{"line_number":194,"context_line":"probably want a default for when that is not set, and store that in config?"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"*me*: I think we will need another RFE to enhance the RAID process to"},{"line_number":197,"context_line":"allow for specifying the RAID config outside of the node\u0027s"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_026ad2b1","line":194,"updated":"2018-08-23 13:53:53.000000000","message":"I\u0027d leave out RAID, it has its own caveats.","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":198,"context_line":"``target_raid_config`` field, OR we decide that the RAID config has to come"},{"line_number":199,"context_line":"from the ``target_raid_config`` field if a RAID deploy step is specified."},{"line_number":200,"context_line":"I suspect it would be better to defer this discussion (and/or keep it in the"},{"line_number":201,"context_line":"back of our minds) while we hammer out the traits templates work."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Alternatives"},{"line_number":204,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_2267ceeb","line":201,"updated":"2018-08-23 13:53:53.000000000","message":"++","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"* use a customizable DeployInterface like the `ansible`_ deploy interface"},{"line_number":223,"context_line":"  (although the `ansible`_ deploy interface is not recommended for production"},{"line_number":224,"context_line":"  use)."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_c25ffa0c","line":224,"updated":"2018-08-23 13:53:53.000000000","message":"nit: isn\u0027t it?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":227,"context_line":"Data model impact"},{"line_number":228,"context_line":"-----------------"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"Similar to clean steps, a Node object will be updated with:"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* a new ``deploy_step`` field: this is the current deploy step that is being"},{"line_number":233,"context_line":"  executed or None if no steps have been executed yet. This will require an"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_e25c761a","line":230,"updated":"2018-08-23 13:53:53.000000000","message":"This is all done","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":248,"context_line":"states.DEPLOYWAIT (``wait call-back``) for each asynchronous deploy step."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"It has been suggested that some kind of ``deploy prepare`` state would be"},{"line_number":251,"context_line":"useful, to allow operators to better identify issues in their deploy process."},{"line_number":252,"context_line":"The hope is that splitting the deployment into separate steps will help with"},{"line_number":253,"context_line":"the identification of any issues. (Also, it is always possible to add this new"},{"line_number":254,"context_line":"state in the future; it is out of scope for this proposal.)"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_829b42c7","line":251,"updated":"2018-08-23 13:53:53.000000000","message":"I\u0027m not sure how it helps.. Let\u0027s maybe elaborate or move to alternatives.","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":310,"context_line":"This is similar to that of a clean step, with the addition of the \"priority\""},{"line_number":311,"context_line":"field in a deploy step."},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"The \"interface\", \"priority\", and \"step\" keys are required for all steps."},{"line_number":314,"context_line":"If a step takes additional keyword arguments, the \"args\" key may be specified."},{"line_number":315,"context_line":"It is a dictionary of keyword arguments, with each keyword-argument entry being"},{"line_number":316,"context_line":"\u003cname\u003e: \u003cvalue\u003e."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_a2a0bef5","line":313,"updated":"2018-08-23 13:53:53.000000000","message":"It\u0027s HTTP 400 right away of they\u0027re missing, right?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":327,"context_line":"A new Bare Metal API version is needed to support this."},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"GET /v1/nodes/*"},{"line_number":330,"context_line":"~~~~~~~~~~~~~~~"},{"line_number":331,"context_line":"The GET /v1/nodes/* requests that return information about nodes will"},{"line_number":332,"context_line":"be modified to also return the node\u0027s ``deploy_step`` field and the"},{"line_number":333,"context_line":"deploy-related information in the node\u0027s ``driver_internal_info`` field."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_42a1aaf6","line":330,"updated":"2018-08-23 13:53:53.000000000","message":"This all seems done","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"441cce4d35493c4719aa4b865259743feb9714ac","unresolved":false,"context_lines":[{"line_number":337,"context_line":"progress (or hasn\u0027t started yet)."},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"If the deployment fails, the ``deploy_step`` field will show which step caused"},{"line_number":340,"context_line":"the deployment to fail."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"For older API microversions, this ``deploy_step`` field will not be available."},{"line_number":343,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"3fa0c359_be2191b6","line":340,"updated":"2018-02-23 02:51:03.000000000","message":"John wanted to be more specific about error handling in the API. Not sure it should be described here or elsewhere in the spec, or not described at all (seems like in the admin guide?)\n\nI feel like I am starting to write a tome on how ironic works otherwise :-(\n\nthe node\u0027s last_error should indicate what the error was, the \u0027deploy_step\u0027 field shows the step that failed. the node\u0027s driver_internal_info[\u0027deploy_steps\u0027] has the list of steps, so find the \u0027deploy_step\u0027 in this list and you can figure out what steps were executed and which ones weren\u0027t yet.\n\nSomeone let me know what/if/how much of this they want documented in this spec, and where...","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":347,"context_line":"specification. The reason for this is because ironic does not provide a"},{"line_number":348,"context_line":"way to get the list of cleaning steps; a mechanism to do that is in"},{"line_number":349,"context_line":"the `RFE to get list of clean steps`_. Once that has been implemented,"},{"line_number":350,"context_line":"getting the deploy steps will be implemented in a similar fashion."},{"line_number":351,"context_line":""},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_62a62612","line":350,"updated":"2018-08-23 13:53:53.000000000","message":"++","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":354,"context_line":"-------------------"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"The python library\u0027s ``ironicclient.v1.node.NodeManager.set_provision_state()``"},{"line_number":357,"context_line":"method will be updated to take an optional ``deploysteps`` parameter."},{"line_number":358,"context_line":"It defaults to None, and can only be specified when setting the provision"},{"line_number":359,"context_line":"state to ``active`` or ``rebuild``."},{"line_number":360,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_02af32e3","line":357,"updated":"2018-08-23 13:53:53.000000000","message":"I\u0027m not sure what we were thinking when doing cleansteps, but let\u0027s please do deploy_steps here. I can volunteer to rename cleansteps with deprecation.","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":359,"context_line":"state to ``active`` or ``rebuild``."},{"line_number":360,"context_line":""},{"line_number":361,"context_line":"We use ``deploysteps`` because that is consistent with the existing"},{"line_number":362,"context_line":"``cleansteps``, although this author would prefer ``deploy_steps``."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"The OpenStackClient baremetal plugin\u0027s CLI commands ``baremetal node deploy``"},{"line_number":365,"context_line":"and ``baremetal node rebuild``"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_22acaeeb","line":362,"updated":"2018-08-23 13:53:53.000000000","message":"YES","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":363,"context_line":""},{"line_number":364,"context_line":"The OpenStackClient baremetal plugin\u0027s CLI commands ``baremetal node deploy``"},{"line_number":365,"context_line":"and ``baremetal node rebuild``"},{"line_number":366,"context_line":"will accept a new, optional argument ``--deploy-steps``."},{"line_number":367,"context_line":"Its value could be one of:"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"* the path to a file containing the deploy steps"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_c2b4da38","line":366,"updated":"2018-08-23 13:53:53.000000000","message":"we would have to use --deploysteps, but let\u0027s not.","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b683b88b40e5725832e8a16c662f322c15fa74a1","unresolved":false,"context_lines":[{"line_number":489,"context_line":"  * rloo"},{"line_number":490,"context_line":""},{"line_number":491,"context_line":"Other contributors:"},{"line_number":492,"context_line":"  * dtantsur"},{"line_number":493,"context_line":"  * TheJulia"},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"Work Items"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f79a3b5_e2b1d645","line":492,"updated":"2018-08-23 13:53:53.000000000","message":"++","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7a3db0b827947221cad20e63590d1271dc020875","unresolved":false,"context_lines":[{"line_number":500,"context_line":"  * Add the ``core`` deploy step"},{"line_number":501,"context_line":"  * Update the conductor to get the deploy steps and execute them"},{"line_number":502,"context_line":"  * Add support for ``get_deploy_steps()`` in ``agent`` Interfaces"},{"line_number":503,"context_line":"  * Add REST API for optionally passing ``deploy_steps``"},{"line_number":504,"context_line":"  * Update documentation for ``deploy_steps``"},{"line_number":505,"context_line":"  * Test this in CI"},{"line_number":506,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"df7087c5_312068ac","line":503,"updated":"2018-03-14 21:08:53.000000000","message":"This work item is really the only part of this spec that we decided to leave out of the first iteration. The first iteration was agreed to build the framework and split the existing deployment into multiple steps. I feel like we should drop the API stuff from this spec and use this spec for the first iteration that we build. Thoughts?","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"879f29ccf092df2bbd34a444db39df09b825de77","unresolved":false,"context_lines":[{"line_number":500,"context_line":"  * Add the ``core`` deploy step"},{"line_number":501,"context_line":"  * Update the conductor to get the deploy steps and execute them"},{"line_number":502,"context_line":"  * Add support for ``get_deploy_steps()`` in ``agent`` Interfaces"},{"line_number":503,"context_line":"  * Add REST API for optionally passing ``deploy_steps``"},{"line_number":504,"context_line":"  * Update documentation for ``deploy_steps``"},{"line_number":505,"context_line":"  * Test this in CI"},{"line_number":506,"context_line":""}],"source_content_type":"text/x-rst","patch_set":20,"id":"df7087c5_1402f20a","line":503,"in_reply_to":"df7087c5_312068ac","updated":"2018-03-14 21:10:06.000000000","message":"Now I see Ruby has already written the minimal spec separately, ignore me :)","commit_id":"0cf5790ddaa4f94f71d7e450ddbfaece119c725a"}]}
