)]}'
{"specs/approved/ironic-hw-composition.rst":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"134ed7312462e4fa9a5753d1c768428708262dd7","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Nowadays, it is possible to compose hardware on-demand out of some pool of"},{"line_number":19,"context_line":"components. E.g. there exists an Intel Rack Scale Architecture [#]_"},{"line_number":20,"context_line":"specification, that defines how to set up compute and storage pools to be used"},{"line_number":21,"context_line":"for the composition process, that is managed by POD Manager API [#]_."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a6eadb0_3deafc0f","line":19,"updated":"2016-12-14 16:42:59.000000000","message":"Archirecture/Design","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"134ed7312462e4fa9a5753d1c768428708262dd7","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"hardware-compositor project will expose REST API to handle requests from"},{"line_number":30,"context_line":"various projects (nova, ironic, orchestration tools) to compose hardware."},{"line_number":31,"context_line":"Initially hardware-compositor will use Intel RSA POD Manager API for that,"},{"line_number":32,"context_line":"other implementations of composition APIs can be added if available. The"},{"line_number":33,"context_line":"composed nodes can be registered in ironic and used for deployment."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a6eadb0_7dcb94a5","line":31,"updated":"2016-12-14 16:42:59.000000000","message":"RSA/RSD","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":49,"context_line":"will be introduced to the state machine. The following transitions will be"},{"line_number":50,"context_line":"added:"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"- ``ALLOCATING`` -\u003e ``ALLOCATED`` when allocation is finished successfully;"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"- ``ALLOCATING`` -\u003e ``COMPOSE FAIL`` on failure;"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_4569ce1e","line":52,"updated":"2018-01-16 13:10:05.000000000","message":"what\u0027s the initial state? I expect it to be ENROLL -\u003e ALLOCATING, which fits into existing API structure nicely and does not require a new set of API endpoints. And the final state should be MANAGEABLE.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"- ``ALLOCATING`` -\u003e ``ALLOCATED`` when allocation is finished successfully;"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"- ``ALLOCATING`` -\u003e ``COMPOSE FAIL`` on failure;"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- ``ALLOCATE FAIL`` -\u003e ``ALLOCATING`` to retry;"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_e559fa8d","line":54,"updated":"2018-01-16 13:10:05.000000000","message":"please pick either ALLOCATE or COMPOSE. I\u0027d prefer ENROLL -\u003e COMPOSING -\u003e {COMPOSE WAIT} -\u003e {MANAGEABLE,COMPOSE FAIL}","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":56,"context_line":"- ``ALLOCATE FAIL`` -\u003e ``ALLOCATING`` to retry;"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- ``ALLOCATED`` -\u003e ``ASSEMBLING`` to start assembling process after all the"},{"line_number":59,"context_line":"  requierd hardware resources were reserved;"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- ``ASSEMBLING`` -\u003e ``COMPOSE FAIL`` on failure;"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_055f4672","line":59,"updated":"2018-01-16 13:10:05.000000000","message":"this feels really too detailed.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- ``ASSEMBLING`` -\u003e ``COMPOSE FAIL`` on failure;"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"- ``ASSEMBLING`` -\u003e ``AVAILABLE`` when composition process finishes."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Nodes in ``COMPOSE FAIL`` state can be safely deleted via"},{"line_number":66,"context_line":"``ironic node-delete`` command."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_a5577258","line":63,"updated":"2018-01-16 13:10:05.000000000","message":"s/AVAIALABLE/MANAGEABLE/ in any case (there is no point in automatic availability here)","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":63,"context_line":"- ``ASSEMBLING`` -\u003e ``AVAILABLE`` when composition process finishes."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Nodes in ``COMPOSE FAIL`` state can be safely deleted via"},{"line_number":66,"context_line":"``ironic node-delete`` command."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"hardware-compositor project will be updating ironic node\u0027s provision state"},{"line_number":69,"context_line":"when the composed node state changes."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_c554fe55","line":66,"updated":"2018-01-16 13:10:05.000000000","message":"nit: openstack node delete","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":71,"context_line":"REST API impact"},{"line_number":72,"context_line":"---------------"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"A new /compose endpoint will be added to ironic. When POSTing the desired node"},{"line_number":75,"context_line":"configuration to this endpoint, the request will be redirected to"},{"line_number":76,"context_line":"hardware-compositor, if present. If the response to the request is 201, ironic"},{"line_number":77,"context_line":"will create a node record in the DB in ``ALLOCATING`` provisioning state."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_654deac2","line":74,"updated":"2018-01-16 13:10:05.000000000","message":"I don\u0027t believe we need new entities added to API. Especially since you\u0027re using them as a proxy for nodes API as explained just below.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":74,"context_line":"A new /compose endpoint will be added to ironic. When POSTing the desired node"},{"line_number":75,"context_line":"configuration to this endpoint, the request will be redirected to"},{"line_number":76,"context_line":"hardware-compositor, if present. If the response to the request is 201, ironic"},{"line_number":77,"context_line":"will create a node record in the DB in ``ALLOCATING`` provisioning state."},{"line_number":78,"context_line":"Otherwise, the error will be returned."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"In case of using nova, this endpoint may be called by a scheduler/placement"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_854a76a9","line":77,"updated":"2018-01-16 13:10:05.000000000","message":"I\u0027d prefer we don\u0027t work around the state machine this way, and have ENROLL -\u003e (compose) -\u003e COMPOSING transition.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":95,"context_line":"Driver API impact"},{"line_number":96,"context_line":"-----------------"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"None"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Nova driver impact"},{"line_number":101,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_25c92225","line":98,"updated":"2018-01-16 13:10:05.000000000","message":"I expect quite some driver API impact here..","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":101,"context_line":"------------------"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"If nova will fail to schedule an instance to the node, it will try to call into"},{"line_number":104,"context_line":"/compose endpoint to create a node. If composition request succeeds"},{"line_number":105,"context_line":"(POST /compose returns 201), nova continues the deployment process, setting all"},{"line_number":106,"context_line":"the required fields on the newly created ironic node that is in ``ALLOCATING``"},{"line_number":107,"context_line":"state."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_45ceae2e","line":104,"updated":"2018-01-16 13:10:05.000000000","message":"I can hardly imagine nova buying into that.. It also means that any \"real\" node will have priority over composing. It also means we\u0027re injecting our code into scheduling, as we don\u0027t have much control over Placement from within the driver.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3c402cbf40688d681da12f14b0df19f2bf8f0cef","unresolved":false,"context_lines":[{"line_number":145,"context_line":"---------------------------------"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"This service will accept requests only with JSON payloads and will return only"},{"line_number":148,"context_line":"JSON payloads in responses."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Authentication"},{"line_number":151,"context_line":"~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_e5ceda2b","line":148,"updated":"2018-01-16 13:10:05.000000000","message":"This new service seems to be just one implementation, and I\u0027d prefer it to be moved out of scope of this spec.","commit_id":"a2fef985f37564d6f4af61a767f66a2d7a09259c"}]}
