)]}'
{"specs/approved/allocation-api.rst":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":40,"context_line":"#. Via the database, similar to how metalsmith_ now operates."},{"line_number":41,"context_line":"#. Via the Placement_ service, similar to how nova currently operates."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"This spec concetrates on the API design and the first (standalone) case."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Allocation process"},{"line_number":46,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_848dd9db","line":43,"range":{"start_line":43,"start_character":10,"end_line":43,"end_character":21},"updated":"2018-11-20 13:19:03.000000000","message":"nit: concentrates","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":40,"context_line":"#. Via the database, similar to how metalsmith_ now operates."},{"line_number":41,"context_line":"#. Via the Placement_ service, similar to how nova currently operates."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"This spec concetrates on the API design and the first (standalone) case."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Allocation process"},{"line_number":46,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b1f2839b","line":43,"range":{"start_line":43,"start_character":10,"end_line":43,"end_character":21},"in_reply_to":"3f79a3b5_848dd9db","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"   * ``provision_state\u003davailable``"},{"line_number":70,"context_line":"   * ``maintenance\u003dFalse``"},{"line_number":71,"context_line":"   * ``power_state!\u003dNone``"},{"line_number":72,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":73,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":74,"context_line":"   * requested traits are a superset of node traits"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_845b995f","line":71,"range":{"start_line":71,"start_character":7,"end_line":71,"end_character":24},"updated":"2018-11-20 13:19:03.000000000","message":"Is this not implied by the provision state \u0026 maintenance?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"   * ``provision_state\u003davailable``"},{"line_number":70,"context_line":"   * ``maintenance\u003dFalse``"},{"line_number":71,"context_line":"   * ``power_state!\u003dNone``"},{"line_number":72,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":73,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":74,"context_line":"   * requested traits are a superset of node traits"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_3124331a","line":71,"range":{"start_line":71,"start_character":7,"end_line":71,"end_character":24},"in_reply_to":"3f79a3b5_845b995f","updated":"2018-11-20 14:30:57.000000000","message":"There is a corner case. In old API nodes are created with provision_state\u003davailable. And even if the power credentials are not there, the nodes do not move into maintenance after at least one power sync succeeds. Legacy...","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":82,"context_line":"#. Acquire a lock on the first node. If locking succeeds, check that the"},{"line_number":83,"context_line":"   assumptions are still valid about this node, and reserve it by setting its"},{"line_number":84,"context_line":"   ``instance_uuid`` to the ``uuid`` of the allocation. In the same database"},{"line_number":85,"context_line":"   transation set"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"   * allocation\u0027s ``node_uuid`` to the node\u0027s UUID,"},{"line_number":88,"context_line":"   * allocation\u0027s ``state`` to ``active``,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_a447b579","line":85,"range":{"start_line":85,"start_character":3,"end_line":85,"end_character":13},"updated":"2018-11-20 13:19:03.000000000","message":"nit: transaction","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":82,"context_line":"#. Acquire a lock on the first node. If locking succeeds, check that the"},{"line_number":83,"context_line":"   assumptions are still valid about this node, and reserve it by setting its"},{"line_number":84,"context_line":"   ``instance_uuid`` to the ``uuid`` of the allocation. In the same database"},{"line_number":85,"context_line":"   transation set"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"   * allocation\u0027s ``node_uuid`` to the node\u0027s UUID,"},{"line_number":88,"context_line":"   * allocation\u0027s ``state`` to ``active``,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_51276f1e","line":85,"range":{"start_line":85,"start_character":3,"end_line":85,"end_character":13},"in_reply_to":"3f79a3b5_a447b579","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":99,"context_line":"Deallocation: database backend"},{"line_number":100,"context_line":"------------------------------"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"The deallocation process will in one transation:"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* unset node\u0027s ``instance_uuid``"},{"line_number":105,"context_line":"* unset node\u0027s ``allocation_uuid``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_44334113","line":102,"range":{"start_line":102,"start_character":0,"end_line":102,"end_character":48},"updated":"2018-11-20 13:19:03.000000000","message":"Is this in response to a DELETE allocations/\u003cuuid\u003e, or setting provision_state to deleted, or both?\n\nPresumably this fails for all the usual reasons that unsetting the instance_uuid might fail, e.g. node is active?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":99,"context_line":"Deallocation: database backend"},{"line_number":100,"context_line":"------------------------------"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"The deallocation process will in one transation:"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* unset node\u0027s ``instance_uuid``"},{"line_number":105,"context_line":"* unset node\u0027s ``allocation_uuid``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_1131f758","line":102,"range":{"start_line":102,"start_character":0,"end_line":102,"end_character":48},"in_reply_to":"3f79a3b5_44334113","updated":"2018-11-20 14:30:57.000000000","message":"Yeah, I\u0027ll expand this.","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":140,"context_line":"* Make each consumer invent their own allocation procedure or use metalsmith_."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"* Write a new service for managing reservations (probably based on metalsmith_"},{"line_number":143,"context_line":"  code base)."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Data model impact"},{"line_number":146,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_db01600a","line":143,"updated":"2018-11-20 13:19:03.000000000","message":"Alternative 3:\n\nMake the allocation API stateless and blocking. Request a node matching a particular spec. Returns a node UUID, or a reason why it failed and whether the caller should retry.\n\nI\u0027m not saying that\u0027s necessarily a better approach, but it\u0027s certainly simpler, and it would be good to explicitly call out the reasons for storing the non-blocking API.","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":140,"context_line":"* Make each consumer invent their own allocation procedure or use metalsmith_."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"* Write a new service for managing reservations (probably based on metalsmith_"},{"line_number":143,"context_line":"  code base)."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Data model impact"},{"line_number":146,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_711aabc7","line":143,"in_reply_to":"3f79a3b5_db01600a","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":155,"context_line":"  .. note:: This field is useful, for example, for systems using host names,"},{"line_number":156,"context_line":"            like metalsmith_."},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* ``node_uuid`` reserved node UUID (can be ``null``)."},{"line_number":159,"context_line":"* ``updated_at``/``created_at`` standard update/creation date time fields."},{"line_number":160,"context_line":"* ``resource_class`` mandatory requested resource class."},{"line_number":161,"context_line":"* ``state`` allocation state, see `State Machine Impact`_."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_1669edf5","line":158,"range":{"start_line":158,"start_character":4,"end_line":158,"end_character":13},"updated":"2018-11-20 13:19:03.000000000","message":"Foreign key?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":155,"context_line":"  .. note:: This field is useful, for example, for systems using host names,"},{"line_number":156,"context_line":"            like metalsmith_."},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* ``node_uuid`` reserved node UUID (can be ``null``)."},{"line_number":159,"context_line":"* ``updated_at``/``created_at`` standard update/creation date time fields."},{"line_number":160,"context_line":"* ``resource_class`` mandatory requested resource class."},{"line_number":161,"context_line":"* ``state`` allocation state, see `State Machine Impact`_."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_71ddcbdc","line":158,"range":{"start_line":158,"start_character":4,"end_line":158,"end_character":13},"in_reply_to":"3f79a3b5_1669edf5","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":166,"context_line":"Introduce a helper table ``allocation_traits`` mapping an allocation to its"},{"line_number":167,"context_line":"requested traits (very similar to ``node_traits``)."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Update the ``nodes`` table with a new field ``allocation_uuid``. It will be set"},{"line_number":170,"context_line":"to a UUID of a corresponding allocation. Unlike ``instance_uuid``, it will only"},{"line_number":171,"context_line":"be set when an allocation is created. If ``allocation_uuid`` is not empty,"},{"line_number":172,"context_line":"``instance_uuid`` will hold the same value (the opposite is not necessary"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_36450973","line":169,"range":{"start_line":169,"start_character":46,"end_line":169,"end_character":61},"updated":"2018-11-20 13:19:03.000000000","message":"foreign key?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":166,"context_line":"Introduce a helper table ``allocation_traits`` mapping an allocation to its"},{"line_number":167,"context_line":"requested traits (very similar to ``node_traits``)."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"Update the ``nodes`` table with a new field ``allocation_uuid``. It will be set"},{"line_number":170,"context_line":"to a UUID of a corresponding allocation. Unlike ``instance_uuid``, it will only"},{"line_number":171,"context_line":"be set when an allocation is created. If ``allocation_uuid`` is not empty,"},{"line_number":172,"context_line":"``instance_uuid`` will hold the same value (the opposite is not necessary"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b1fcc340","line":169,"range":{"start_line":169,"start_character":46,"end_line":169,"end_character":61},"in_reply_to":"3f79a3b5_36450973","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    * a non-existing ``node_uuid`` is provided."},{"line_number":220,"context_line":"    * the ``resource_class`` value is invalid."},{"line_number":221,"context_line":"    * ``traits`` is provided and is not a list of strings."},{"line_number":222,"context_line":"    * ``name`` is not an accepted name."},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"  * 406 Conflict if"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_d6713548","line":221,"range":{"start_line":221,"start_character":48,"end_line":221,"end_character":50},"updated":"2018-11-20 13:19:03.000000000","message":"valid trait strings","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    * a non-existing ``node_uuid`` is provided."},{"line_number":220,"context_line":"    * the ``resource_class`` value is invalid."},{"line_number":221,"context_line":"    * ``traits`` is provided and is not a list of strings."},{"line_number":222,"context_line":"    * ``name`` is not an accepted name."},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"  * 406 Conflict if"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_d17cdfc8","line":221,"range":{"start_line":221,"start_character":48,"end_line":221,"end_character":50},"in_reply_to":"3f79a3b5_d6713548","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":245,"context_line":"    * ``resource_class`` is invalid."},{"line_number":246,"context_line":"    * ``node`` does not exist."},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"* ``GET /v1/allocations/\u003cuuid or name\u003e`` retrive an allocation."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"  Parameters:"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_966bbd52","line":248,"range":{"start_line":248,"start_character":41,"end_line":248,"end_character":48},"updated":"2018-11-20 13:19:03.000000000","message":"nit: retrieve","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":245,"context_line":"    * ``resource_class`` is invalid."},{"line_number":246,"context_line":"    * ``node`` does not exist."},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"* ``GET /v1/allocations/\u003cuuid or name\u003e`` retrive an allocation."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"  Parameters:"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_31b7538b","line":248,"range":{"start_line":248,"start_character":41,"end_line":248,"end_character":48},"in_reply_to":"3f79a3b5_966bbd52","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":253,"context_line":""},{"line_number":254,"context_line":"  Error codes:"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"  * 404 Not Found if the allocation is not found."},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":259,"context_line":"  the node."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b6c4b943","line":256,"updated":"2018-11-20 13:19:03.000000000","message":"400 if any fields are invalid","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":253,"context_line":""},{"line_number":254,"context_line":"  Error codes:"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"  * 404 Not Found if the allocation is not found."},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":259,"context_line":"  the node."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_51ba0f70","line":256,"in_reply_to":"3f79a3b5_b6c4b943","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":258,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":259,"context_line":"  the node."},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"  No request or response body. Response code is HTTP 204 No Content."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"  .. note::"},{"line_number":264,"context_line":"      This request will succeed only for real allocations. It will not be"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_36d669fa","line":261,"updated":"2018-11-20 13:19:03.000000000","message":"Might fail if the instance_uuid cannot be unset.","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":258,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":259,"context_line":"  the node."},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"  No request or response body. Response code is HTTP 204 No Content."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"  .. note::"},{"line_number":264,"context_line":"      This request will succeed only for real allocations. It will not be"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_f13ebbe1","line":261,"in_reply_to":"3f79a3b5_36d669fa","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    * the node cannot be found."},{"line_number":282,"context_line":"    * there is no allocation for the node."},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"  * 400 Bad Request if"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    * node has ``instance_uuid`` that does not correspond to any allocation."},{"line_number":287,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_56d9a524","line":284,"updated":"2018-11-20 13:19:03.000000000","message":"or any fields are invalid","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    * the node cannot be found."},{"line_number":282,"context_line":"    * there is no allocation for the node."},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"  * 400 Bad Request if"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    * node has ``instance_uuid`` that does not correspond to any allocation."},{"line_number":287,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_11425768","line":284,"in_reply_to":"3f79a3b5_56d9a524","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":303,"context_line":"      be revisited in future API versions."},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"  The ``allocation_uuid`` field is read-only, an attempt to change it directly"},{"line_number":306,"context_line":"  will result in HTTP 400 (Bad Request)."},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"Client (CLI) impact"},{"line_number":309,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_f6f8f17e","line":306,"updated":"2018-11-20 13:19:03.000000000","message":"Are there any corner cases where we need to ensure allocations are deleted? e.g. deleting a node that is in maintenance (can\u0027t remember if this is possible).","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":303,"context_line":"      be revisited in future API versions."},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"  The ``allocation_uuid`` field is read-only, an attempt to change it directly"},{"line_number":306,"context_line":"  will result in HTTP 400 (Bad Request)."},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"Client (CLI) impact"},{"line_number":309,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_8c85f055","line":306,"in_reply_to":"3f79a3b5_f6f8f17e","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":364,"context_line":""},{"line_number":365,"context_line":"The metalsmith_ project implements a superset of the proposed feature on a"},{"line_number":366,"context_line":"client side. After this API is introduced, metalsmith will switch the"},{"line_number":367,"context_line":"``reserve_node`` call to it the following way:"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"* If the request contains a ``resource_class`` and, optionally, ``traits`` and"},{"line_number":370,"context_line":"  exactly one candidate node, the new API will be used."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_d61b75c9","line":367,"range":{"start_line":367,"start_character":22,"end_line":367,"end_character":27},"updated":"2018-11-20 13:19:03.000000000","message":"to do it?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":364,"context_line":""},{"line_number":365,"context_line":"The metalsmith_ project implements a superset of the proposed feature on a"},{"line_number":366,"context_line":"client side. After this API is introduced, metalsmith will switch the"},{"line_number":367,"context_line":"``reserve_node`` call to it the following way:"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"* If the request contains a ``resource_class`` and, optionally, ``traits`` and"},{"line_number":370,"context_line":"  exactly one candidate node, the new API will be used."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_0c24805e","line":367,"range":{"start_line":367,"start_character":22,"end_line":367,"end_character":27},"in_reply_to":"3f79a3b5_d61b75c9","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"None"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"In the future we may use the allocation API in the nova driver, but there are"},{"line_number":387,"context_line":"no plans for it now. Currently going through the allocation API will result in"},{"line_number":388,"context_line":"an attempt of double allocation in Placement_ if Placement is used as an"},{"line_number":389,"context_line":"allocation backend."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_565e8578","line":386,"range":{"start_line":386,"start_character":0,"end_line":386,"end_character":62},"updated":"2018-11-20 13:19:03.000000000","message":"not sure how this would work, given that placement does this in nova already.","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"None"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"In the future we may use the allocation API in the nova driver, but there are"},{"line_number":387,"context_line":"no plans for it now. Currently going through the allocation API will result in"},{"line_number":388,"context_line":"an attempt of double allocation in Placement_ if Placement is used as an"},{"line_number":389,"context_line":"allocation backend."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_6ce974e2","line":386,"range":{"start_line":386,"start_character":0,"end_line":386,"end_character":62},"in_reply_to":"3f79a3b5_565e8578","updated":"2018-11-20 14:30:57.000000000","message":"I\u0027m open for this possibility, but haven\u0027t put any thoughts in it.","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"303ce513d226a8a6e976d1562dd12721ae0d0feb","unresolved":false,"context_lines":[{"line_number":459,"context_line":"* Unit tests will be provided."},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"* We can add support for the new API to bifrost_ (e.g. via metalsmith), and"},{"line_number":462,"context_line":"  test it in a bifrost CI job (which we need to add to the ironic gate)."},{"line_number":463,"context_line":""},{"line_number":464,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":465,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b6d359d4","line":462,"updated":"2018-11-20 13:19:03.000000000","message":"Tempest tests?","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fbac8f6e0011fbaf485024bef24e847cfa22e2b","unresolved":false,"context_lines":[{"line_number":459,"context_line":"* Unit tests will be provided."},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"* We can add support for the new API to bifrost_ (e.g. via metalsmith), and"},{"line_number":462,"context_line":"  test it in a bifrost CI job (which we need to add to the ironic gate)."},{"line_number":463,"context_line":""},{"line_number":464,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":465,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_ecaee49f","line":462,"in_reply_to":"3f79a3b5_b6d359d4","updated":"2018-11-20 14:30:57.000000000","message":"Done","commit_id":"530a974451c04719aa6079ced9c5c3820eca4dd9"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"f72f04e35e87bc26d555a5e21ba978b4e63b33d3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"The API user story is as follows:"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"   Given a resource class and, optionally, a list of required traits, return me"},{"line_number":26,"context_line":"   an available bare metal node and set ``instance_uuid`` on it to make it as"},{"line_number":27,"context_line":"   reserved."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_95d5f04a","line":26,"range":{"start_line":26,"start_character":67,"end_line":26,"end_character":71},"updated":"2018-11-20 15:42:47.000000000","message":"mark?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"f34b79c099d9677e499a3036a2614ede78103b40","unresolved":false,"context_lines":[{"line_number":23,"context_line":"The API user story is as follows:"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"   Given a resource class and, optionally, a list of required traits, return me"},{"line_number":26,"context_line":"   an available bare metal node and set ``instance_uuid`` on it to make it as"},{"line_number":27,"context_line":"   reserved."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_6b358cf4","line":26,"range":{"start_line":26,"start_character":67,"end_line":26,"end_character":71},"in_reply_to":"3f79a3b5_95d5f04a","updated":"2018-11-26 13:07:56.000000000","message":"Yeah, seems like it would be mark.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a8db70b7fec68097a7a243a7bd06642dc1700b23","unresolved":false,"context_lines":[{"line_number":55,"context_line":"#. The conductor creates an *Allocation* object in the database with"},{"line_number":56,"context_line":"   ``state\u003dallocating`` and ``conductor_affinity\u003d\u003chost name\u003e``."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"#. A thread is spawned for the remaining allocation process, and the allocation"},{"line_number":59,"context_line":"   object is returned to the caller."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Allocation: database backend"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_847856f6","line":58,"range":{"start_line":58,"start_character":31,"end_line":58,"end_character":59},"updated":"2018-11-21 12:30:17.000000000","message":"What is the remaining allocation process? Is it provisionong of the node? May be elaboration here would be useful.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"806e6a37fb012f25ec0bc1a52e5d275ba24ecadc","unresolved":false,"context_lines":[{"line_number":55,"context_line":"#. The conductor creates an *Allocation* object in the database with"},{"line_number":56,"context_line":"   ``state\u003dallocating`` and ``conductor_affinity\u003d\u003chost name\u003e``."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"#. A thread is spawned for the remaining allocation process, and the allocation"},{"line_number":59,"context_line":"   object is returned to the caller."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Allocation: database backend"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_cdc0b1fc","line":58,"range":{"start_line":58,"start_character":31,"end_line":58,"end_character":59},"in_reply_to":"3f79a3b5_847856f6","updated":"2018-11-21 12:36:16.000000000","message":"It\u0027s literally specified 3 lines after this..","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"f34b79c099d9677e499a3036a2614ede78103b40","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"   * ``provision_state\u003davailable``"},{"line_number":70,"context_line":"   * ``maintenance\u003dFalse``"},{"line_number":71,"context_line":"   * ``power_state!\u003dNone``"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"     .. note::"},{"line_number":74,"context_line":"      This is required for compatibility with really old API versions that"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_2b047418","line":71,"updated":"2018-11-26 13:07:56.000000000","message":"One thought, we could also add (later) in owner validation... so we could potentially leverage a tenant (if supplied) and then use their rights. I\u0027ve got the beginnings of all of that on my laptop and it is just kind of a logical progression. :)","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a8db70b7fec68097a7a243a7bd06642dc1700b23","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_c4308eba","line":79,"range":{"start_line":79,"start_character":5,"end_line":79,"end_character":13},"updated":"2018-11-21 12:30:17.000000000","message":"Can it be node names as well?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"806e6a37fb012f25ec0bc1a52e5d275ba24ecadc","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_0dda29e6","line":79,"range":{"start_line":79,"start_character":5,"end_line":79,"end_character":13},"in_reply_to":"3f79a3b5_c4308eba","updated":"2018-11-21 12:36:16.000000000","message":"As I state below, names are converted to UUIDs on the API level. This is because names can be changed, so we need to fix them at the point where they were specified.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"13457d27792e500dae2cdffe199e0e5f2558f280","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_bec7a097","line":80,"range":{"start_line":80,"start_character":28,"end_line":80,"end_character":36},"updated":"2018-11-21 08:42:08.000000000","message":"Is this a superset or subset?\n\nIn other words, suppose I request a super_cpu + great_disk + shinning_memory, but the node only has super_cpu, will it be chosen?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a8db70b7fec68097a7a243a7bd06642dc1700b23","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_648bba21","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":22},"updated":"2018-11-21 12:30:17.000000000","message":"What about node\u0027s capabilities? Some of the users do use node capabilities for filtering of the nodes.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"566f4f72207760feb0367528608460b40885e2b0","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_b14ece8e","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":22},"in_reply_to":"3f79a3b5_25d12a57","updated":"2018-11-23 16:29:13.000000000","message":"Yes, I agree, this spec need not be blocked for the support of quantitative scheduling.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"21fc054405f8e4937c3224af7e8d138f3262f8d0","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_fc3bcf96","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":22},"in_reply_to":"3f79a3b5_4dfd813a","updated":"2018-11-22 08:50:05.000000000","message":"I understand futuristically, capabilities will go away but  there are uses cases in Ironic where people use capabilities for selecting the nodes. The scheduling of GPUs on K8S needs GPU count. See example at [0]. Also as you may be aware that Nova also have deferred their deprecation plans [1] for capabilities post discussion over mailing list [2]. Given that Ironic still support capabilities, not sure if it would be good idea to not support it in allocation.\n[0] https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/\n[1] https://review.openstack.org/#/c/603102/\n[2] http://lists.openstack.org/pipermail/openstack-dev/2018-September/thread.html#134895","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"806e6a37fb012f25ec0bc1a52e5d275ba24ecadc","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_4dfd813a","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":22},"in_reply_to":"3f79a3b5_648bba21","updated":"2018-11-21 12:36:16.000000000","message":"Capabilities are on the path of being deprecated in Nova, and are not supported by Placement. We cannot rely on them here. The users (tripleo included) will have to use pre-filtering.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"206e7d72868213e7008e2204948e775e8defd936","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_5ec9ac4f","line":80,"range":{"start_line":80,"start_character":28,"end_line":80,"end_character":36},"in_reply_to":"3f79a3b5_bec7a097","updated":"2018-11-21 08:47:50.000000000","message":"Oh, I tried so hard to make it right and I guess I still did it wrong :D Yeah, it should be subset, so in your case the node will not be selected. I can fix here or in a follow-up.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"18b3a69ba7f3949956741414d6a053ad42a92afb","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   * ``instance_uuid\u003dNone``"},{"line_number":78,"context_line":"   * ``resource_class\u003d\u003crequested resource class\u003e``"},{"line_number":79,"context_line":"   * ``uuid`` in the list of candidate nodes (if provided)"},{"line_number":80,"context_line":"   * requested traits are a superset of node traits"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"#. If the list is empty, set allocation\u0027s ``state`` to ``error`` and"},{"line_number":83,"context_line":"   ``last_error`` to the explanation."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_25d12a57","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":22},"in_reply_to":"3f79a3b5_fc3bcf96","updated":"2018-11-22 10:02:41.000000000","message":"I fully understand that you guys are relying on capabilities. TripleO relies on them as well, however:\n\n1. It\u0027s not possible to do an efficient database lookup for nodes with capabilities, it will have to be done in Python.\n\n2. It\u0027s not possible to use capabilities with the planned placement backend - it simply does not support them. Again, we\u0027ll have to do filtering in Python.\n\n3. I\u0027m pretty sure someone will block an attempt to add capabilities here. If we commit to them in the API, we\u0027ll have to support them forever, even when Nova gets rid of their support.\n\nNova has deferred their deprecation plan only until we reach the feature parity with traits, i.e. when the deploy templates work is done. They clearly indicated their absence of desire to support quantitative scheduling.\n\nIf you think it\u0027s critically important, would it be possible to move it out of the scope of this spec? I would prefer it not to get blocked on the feature that can be added in a later microversion.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a8db70b7fec68097a7a243a7bd06642dc1700b23","unresolved":false,"context_lines":[{"line_number":112,"context_line":"* unset node\u0027s ``allocation_id``,"},{"line_number":113,"context_line":"* delete the allocation."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"The deallocation is triggered either explicitly via API or when a node is torn"},{"line_number":116,"context_line":"down (at the same time when node\u0027s ``instance_uuid`` and ``instance_info`` are"},{"line_number":117,"context_line":"purged)."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_8dd2b931","line":116,"range":{"start_line":115,"start_character":59,"end_line":116,"end_character":5},"updated":"2018-11-21 12:30:17.000000000","message":"Does it mean the allocation of the node is valid for a one-time use? If one needs the same node again  then he needs to perform another \u0027allocation\u0027 API call?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"806e6a37fb012f25ec0bc1a52e5d275ba24ecadc","unresolved":false,"context_lines":[{"line_number":112,"context_line":"* unset node\u0027s ``allocation_id``,"},{"line_number":113,"context_line":"* delete the allocation."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"The deallocation is triggered either explicitly via API or when a node is torn"},{"line_number":116,"context_line":"down (at the same time when node\u0027s ``instance_uuid`` and ``instance_info`` are"},{"line_number":117,"context_line":"purged)."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_6dfabd44","line":116,"range":{"start_line":115,"start_character":59,"end_line":116,"end_character":5},"in_reply_to":"3f79a3b5_8dd2b931","updated":"2018-11-21 12:36:16.000000000","message":"Yes, precisely the same way instance_uuid works now (also see the note below).","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"13457d27792e500dae2cdffe199e0e5f2558f280","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  and starts the allocation procedure for each of them."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* If the conductor handling an allocation stops without a replacement, the"},{"line_number":140,"context_line":"  reservation becomes orphaned. All conductors periodically fetch list of"},{"line_number":141,"context_line":"  allocations belonging to dead conductors and each tries to resume them."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  First, it tries to update the ``conductor_affinity`` by doing something"},{"line_number":144,"context_line":"  like::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_7ec3485a","line":141,"range":{"start_line":140,"start_character":32,"end_line":141,"end_character":42},"updated":"2018-11-21 08:42:08.000000000","message":"How conductors know which conductor is dead? I think this can be done in the take over process, triggered by the _sync_local_state task.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6b25d61435f8d54a9021c82588fd42c907cd1697","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  and starts the allocation procedure for each of them."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* If the conductor handling an allocation stops without a replacement, the"},{"line_number":140,"context_line":"  reservation becomes orphaned. All conductors periodically fetch list of"},{"line_number":141,"context_line":"  allocations belonging to dead conductors and each tries to resume them."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  First, it tries to update the ``conductor_affinity`` by doing something"},{"line_number":144,"context_line":"  like::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_e49fca61","line":141,"range":{"start_line":140,"start_character":32,"end_line":141,"end_character":42},"in_reply_to":"3f79a3b5_1ea4944b","updated":"2018-11-21 09:43:01.000000000","message":"We don\u0027t have a hash ring for allocations (we could, but I doubt we should). See the WHERE conductor_affinity trick below though.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"206e7d72868213e7008e2204948e775e8defd936","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  and starts the allocation procedure for each of them."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* If the conductor handling an allocation stops without a replacement, the"},{"line_number":140,"context_line":"  reservation becomes orphaned. All conductors periodically fetch list of"},{"line_number":141,"context_line":"  allocations belonging to dead conductors and each tries to resume them."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  First, it tries to update the ``conductor_affinity`` by doing something"},{"line_number":144,"context_line":"  like::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_9ef8a47e","line":141,"range":{"start_line":140,"start_character":32,"end_line":141,"end_character":42},"in_reply_to":"3f79a3b5_7ec3485a","updated":"2018-11-21 08:47:50.000000000","message":"We already have primitives for that in our database API, we timeout -ING states for dead conductors similarly.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f5eea3e73d4e760dc145eab87aa769e3d86004e3","unresolved":false,"context_lines":[{"line_number":137,"context_line":"  and starts the allocation procedure for each of them."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* If the conductor handling an allocation stops without a replacement, the"},{"line_number":140,"context_line":"  reservation becomes orphaned. All conductors periodically fetch list of"},{"line_number":141,"context_line":"  allocations belonging to dead conductors and each tries to resume them."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  First, it tries to update the ``conductor_affinity`` by doing something"},{"line_number":144,"context_line":"  like::"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_1ea4944b","line":141,"range":{"start_line":140,"start_character":32,"end_line":141,"end_character":42},"in_reply_to":"3f79a3b5_9ef8a47e","updated":"2018-11-21 09:06:47.000000000","message":"Just thinking if there is any periodic task at hand we can use :)\n\nIt wouldn\u0027t cause any race issue here right? It will be fine if it\u0027s similar to _check_orphan_nodes, because iter_nodes only return nodes currently mapped to it.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"236c5ab46b83a5f8c91ca1e619d35e863cf731a1","unresolved":false,"context_lines":[{"line_number":188,"context_line":"  table."},{"line_number":189,"context_line":"* ``updated_at``/``created_at`` standard update/creation date time fields."},{"line_number":190,"context_line":"* ``resource_class`` mandatory requested resource class."},{"line_number":191,"context_line":"* ``candidate_nodes`` list of node UUIDs to choose from (can be ``null``)."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"  .. note:: This allows a caller to pre-filter nodes by arbitrary criteria."},{"line_number":194,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_ec7b44f0","line":191,"range":{"start_line":191,"start_character":35,"end_line":191,"end_character":40},"updated":"2018-11-20 14:48:40.000000000","message":"IDs?\n\nAlso, what happens if we delete a node that is in one or more candidate node lists?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"a1d6033794aefc5b1b4acad22589d133cfc69ebf","unresolved":false,"context_lines":[{"line_number":188,"context_line":"  table."},{"line_number":189,"context_line":"* ``updated_at``/``created_at`` standard update/creation date time fields."},{"line_number":190,"context_line":"* ``resource_class`` mandatory requested resource class."},{"line_number":191,"context_line":"* ``candidate_nodes`` list of node UUIDs to choose from (can be ``null``)."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"  .. note:: This allows a caller to pre-filter nodes by arbitrary criteria."},{"line_number":194,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_320192b5","line":191,"range":{"start_line":191,"start_character":35,"end_line":191,"end_character":40},"in_reply_to":"3f79a3b5_cca5284b","updated":"2018-11-20 15:04:35.000000000","message":"Works for me.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"aa9a4668f2c6e2580f6769120cde0091dba22ccb","unresolved":false,"context_lines":[{"line_number":188,"context_line":"  table."},{"line_number":189,"context_line":"* ``updated_at``/``created_at`` standard update/creation date time fields."},{"line_number":190,"context_line":"* ``resource_class`` mandatory requested resource class."},{"line_number":191,"context_line":"* ``candidate_nodes`` list of node UUIDs to choose from (can be ``null``)."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"  .. note:: This allows a caller to pre-filter nodes by arbitrary criteria."},{"line_number":194,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_cca5284b","line":191,"range":{"start_line":191,"start_character":35,"end_line":191,"end_character":40},"in_reply_to":"3f79a3b5_ec7b44f0","updated":"2018-11-20 14:51:25.000000000","message":"\u003e IDs?\n\nI was thinking about IDs, but it will require conversion when this value comes from and to users. May be not worth it.\n\n\u003e Also, what happens if we delete a node that is in one or more candidate node lists?\n\nThat\u0027s a good question. I\u0027m thinking of taking an easy approach and just skip such nodes with a warning.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"f72f04e35e87bc26d555a5e21ba978b4e63b33d3","unresolved":false,"context_lines":[{"line_number":258,"context_line":"    * ``traits`` is provided and is not a list of valid trait strings."},{"line_number":259,"context_line":"    * ``name`` is not an accepted name."},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"  * 406 Conflict if"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"    * the provided ``uuid`` is not unique or matches ``instance_uuid`` of any"},{"line_number":264,"context_line":"      node."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_52520e38","line":261,"range":{"start_line":261,"start_character":4,"end_line":261,"end_character":7},"updated":"2018-11-20 15:42:47.000000000","message":"409?\n\n406 is if they sent an \u0027accept\u0027 header and we can\u0027t satisfy it.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e8141a383bbcb25aa15a89860e42039be4ad7dcb","unresolved":false,"context_lines":[{"line_number":258,"context_line":"    * ``traits`` is provided and is not a list of valid trait strings."},{"line_number":259,"context_line":"    * ``name`` is not an accepted name."},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"  * 406 Conflict if"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"    * the provided ``uuid`` is not unique or matches ``instance_uuid`` of any"},{"line_number":264,"context_line":"      node."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_f8ee9b1e","line":261,"range":{"start_line":261,"start_character":4,"end_line":261,"end_character":7},"in_reply_to":"3f79a3b5_52520e38","updated":"2018-11-20 16:27:25.000000000","message":"My bad, I always confuse the numbers :) I\u0027ll fix it in a new changeset or a follow-up","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a8db70b7fec68097a7a243a7bd06642dc1700b23","unresolved":false,"context_lines":[{"line_number":294,"context_line":"  * 400 Bad Request if any of the requested fields is invalid."},{"line_number":295,"context_line":"  * 404 Not Found if the allocation is not found."},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":298,"context_line":"  the node."},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"  No request or response body. Response code is HTTP 204 No Content."},{"line_number":301,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_c4ff2e67","line":298,"range":{"start_line":297,"start_character":70,"end_line":298,"end_character":11},"updated":"2018-11-21 12:30:17.000000000","message":"Will this tear-down the node if its in \u0027active\u0027 state?","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"806e6a37fb012f25ec0bc1a52e5d275ba24ecadc","unresolved":false,"context_lines":[{"line_number":294,"context_line":"  * 400 Bad Request if any of the requested fields is invalid."},{"line_number":295,"context_line":"  * 404 Not Found if the allocation is not found."},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"* ``DELETE /v1/allocations/\u003cuuid or name\u003e`` remove the allocation and release"},{"line_number":298,"context_line":"  the node."},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"  No request or response body. Response code is HTTP 204 No Content."},{"line_number":301,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_8d94f9e7","line":298,"range":{"start_line":297,"start_character":70,"end_line":298,"end_character":11},"in_reply_to":"3f79a3b5_c4ff2e67","updated":"2018-11-21 12:36:16.000000000","message":"No. It won\u0027t even be possible, see line 305.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"f34b79c099d9677e499a3036a2614ede78103b40","unresolved":false,"context_lines":[{"line_number":516,"context_line":""},{"line_number":517,"context_line":"* The standalone integration tests will be updated to use the new API."},{"line_number":518,"context_line":""},{"line_number":519,"context_line":"* We can add support for the new API to bifrost_ (e.g. via metalsmith), and"},{"line_number":520,"context_line":"  test it in a bifrost CI job."},{"line_number":521,"context_line":""},{"line_number":522,"context_line":"Upgrades and Backwards Compatibility"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_a6e75945","line":519,"updated":"2018-11-26 13:07:56.000000000","message":"++ since that should be fairly lightweight of a test.","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"f72f04e35e87bc26d555a5e21ba978b4e63b33d3","unresolved":false,"context_lines":[{"line_number":534,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":".. _metalsmith: https://docs.openstack.org/metalsmith/latest/"},{"line_number":537,"context_line":".. _Placement: https://docs.openstack.org/nova/latest/user/placement.html"},{"line_number":538,"context_line":".. _bifrost: https://docs.openstack.org/bifrost/latest/"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_32167259","line":537,"range":{"start_line":537,"start_character":15,"end_line":537,"end_character":73},"updated":"2018-11-20 15:42:47.000000000","message":"this will be out of date soon: https://docs.openstack.org/placement/latest/\n\nprobably soon enough that you may as well use the new url","commit_id":"693de03e8e72a0826767609b40623f0088c2eba2"}]}
