)]}'
{"doc/source/devref/specs/queens/state-machine.rst":[{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"fef513bd8e79dc60c3efab164d2f95d7575831f0","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Overview"},{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Define states of a lease, reservation and event as follows."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Lease states"},{"line_number":44,"context_line":"^^^^^^^^^^^^"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_4e5ab52a","line":41,"updated":"2017-10-04 07:49:41.000000000","message":"It\u0027s better to define what information each resource\u0027s status represent first.  Following is my idea:\n\n- A reservation is primitive resource in Blazar, so status of reservation represents results of plugin\u0027s method.\n  ex)\n  - nodes of state-machine in reservation represent results of methods in plugin, like start_lease and etc, and edges represent methods in plugin.\n- A lease is consist of set of reservations and set of events, so status of lease is defined a combination of status of reseravtion and events.\n  ex)\n  - a lease is in SCHEDULED status when all reservation are in pending status.\n  - a lease is in ACTIVE status when all reservation are in active status\n  - a lease is in ACTIVE/SCHEDULED_DEGRADED when one or more reservation in the lease is in missing_resource status\n\netc... how do you think?","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"da67cd8fc653b057bbfe1ddc3e081ec37915e32c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Overview"},{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Define states of a lease, reservation and event as follows."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Lease states"},{"line_number":44,"context_line":"^^^^^^^^^^^^"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_2db858e3","line":41,"in_reply_to":"7f515b1d_4e5ab52a","updated":"2017-10-06 04:44:22.000000000","message":"I proposed to change the status of reservation to represent capacity\nsatisfaction. My proposal includes removing states like ACTIVE because\nsuch states can be found in the lease status. e.g. if the lease status is\nACTIVE and the reservation status is SATISFIED, it is obvious that\nthe reserved resource is completely leased.\n\nIf we make the reservation status to care states like PENDING, ACTIVE,\nCOMPLETED and so on, the states graph become as big as the lease\nstates graph because we should adds states like PENDING_RESOURCES_CHANGED, PENDING_MISSING_RESOURCES, \nACTIVE_RESOURCES_CHANGED, ACTIVE_MISSING_RESOURCES, etc.\n\nI think simplicity is important for preventing inconsistency between the\nlease states and reservation states. So I want to keep the reservation\nstates graph small.\n\nOn the other hand, I agree with your opinion that the status of \nreservation should represent results of plugin\u0027s method because it is\na primitive resource in Blazar. It can improve the independence of the \nresource plugin. However, at the same time, it causes verbose\ninformation in the lease status and the reservation status. i.e. both can\nsay I am active.\n\nHmm... needs more discussion ;-)","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"fef513bd8e79dc60c3efab164d2f95d7575831f0","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Lease states"},{"line_number":44,"context_line":"^^^^^^^^^^^^"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"A lease has following three basic stable states:"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* **SCHEDULED**: A lease has been successfully created and ready to start. The"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_832e46f8","line":45,"updated":"2017-10-04 07:49:41.000000000","message":"The state graph looks bit complex to me because the edges represent some kinds of information, like API calls and results of methods triggered by events and etc.\n\nAs I mentioned above, it\u0027s better to define what information edges in the graph represent.","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"da67cd8fc653b057bbfe1ddc3e081ec37915e32c","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Lease states"},{"line_number":44,"context_line":"^^^^^^^^^^^^"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"A lease has following three basic stable states:"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* **SCHEDULED**: A lease has been successfully created and ready to start. The"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_cd9d4467","line":45,"in_reply_to":"7f515b1d_832e46f8","updated":"2017-10-06 04:44:22.000000000","message":"I will make edges to represent  methods in the manager to make it simpler. thanks!","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"fef513bd8e79dc60c3efab164d2f95d7575831f0","unresolved":false,"context_lines":[{"line_number":82,"context_line":"If it fails to complete the process at the transitional states, the lease"},{"line_number":83,"context_line":"changes to following FAILED states:"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* **START_FAILED**"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* **TERMINATE_FAILED**"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"* **DELETE_FAILED**"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":".. image:: ../../../images/lease_states.png"},{"line_number":92,"context_line":"   :width: 600 px"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_ee5281de","line":89,"range":{"start_line":85,"start_character":0,"end_line":89,"end_character":19},"updated":"2017-10-04 07:49:41.000000000","message":"Do we need to classify the three patterns?  The three status look equal to ERROR and don\u0027t require user to different actions to recover from the error.\n\nIf someone want to classify these, status_reason field looks reasonable.","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"da67cd8fc653b057bbfe1ddc3e081ec37915e32c","unresolved":false,"context_lines":[{"line_number":82,"context_line":"If it fails to complete the process at the transitional states, the lease"},{"line_number":83,"context_line":"changes to following FAILED states:"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* **START_FAILED**"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* **TERMINATE_FAILED**"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"* **DELETE_FAILED**"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":".. image:: ../../../images/lease_states.png"},{"line_number":92,"context_line":"   :width: 600 px"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7f515b1d_2d861815","line":89,"range":{"start_line":85,"start_character":0,"end_line":89,"end_character":19},"in_reply_to":"7f515b1d_ee5281de","updated":"2017-10-06 04:44:22.000000000","message":"Now that I think we do not need to classify them. I will add ERROR status\nand remove them.","commit_id":"379549c641634312757e112c6a2eb34620be2b47"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"2a1f6e790f2ac018bd70640e1e250f53afdf3630","unresolved":false,"context_lines":[{"line_number":104,"context_line":"Relationships between states"},{"line_number":105,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"The following graph shows conditions of states of reservations and events"},{"line_number":108,"context_line":"that have to be satisfied for each lease state."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"+----------------------+------------------------------------+----------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_d7ff4a65","line":107,"range":{"start_line":107,"start_character":14,"end_line":107,"end_character":19},"updated":"2017-10-19 08:31:25.000000000","message":"s/graph/table?","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"1101310b29001c5109ca325e1f5438f81ef141fa","unresolved":false,"context_lines":[{"line_number":104,"context_line":"Relationships between states"},{"line_number":105,"context_line":"^^^^^^^^^^^^^^^^^^^^^^^^^^^"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"The following graph shows conditions of states of reservations and events"},{"line_number":108,"context_line":"that have to be satisfied for each lease state."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"+----------------------+------------------------------------+----------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_b0dcbf74","line":107,"range":{"start_line":107,"start_character":14,"end_line":107,"end_character":19},"in_reply_to":"3f4b6375_d7ff4a65","updated":"2017-10-20 03:17:51.000000000","message":"Done","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"2a1f6e790f2ac018bd70640e1e250f53afdf3630","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"The following graph shows conditions of states of reservations and events"},{"line_number":108,"context_line":"that have to be satisfied for each lease state."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":111,"context_line":"| Lease state          | Reservation states                 | Event states                           |"},{"line_number":112,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_f70a4688","line":109,"updated":"2017-10-19 08:31:25.000000000","message":"I think it\u0027s good to add define CREATING/STARTING/TERMINATING/DELETING status here. It help everyone to avoid confused about status change.","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"1101310b29001c5109ca325e1f5438f81ef141fa","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"The following graph shows conditions of states of reservations and events"},{"line_number":108,"context_line":"that have to be satisfied for each lease state."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":111,"context_line":"| Lease state          | Reservation states                 | Event states                           |"},{"line_number":112,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_5018eb1b","line":109,"in_reply_to":"3f4b6375_f70a4688","updated":"2017-10-20 03:17:51.000000000","message":"Done","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"2a1f6e790f2ac018bd70640e1e250f53afdf3630","unresolved":false,"context_lines":[{"line_number":111,"context_line":"| Lease state          | Reservation states                 | Event states                           |"},{"line_number":112,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":113,"context_line":"| NOT_STARTED          | At least one reservation state is  | State of start_lease event is UNDONE   |"},{"line_number":114,"context_line":"|                      | pending and others are pending or  | state of end_lease event is UNDONE     |"},{"line_number":115,"context_line":"|                      | error                              |                                        |"},{"line_number":116,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":117,"context_line":"| ACTIVE               | At least one reservation state is  | State of start_lease event is DONE and |"},{"line_number":118,"context_line":"|                      | active                             | state of end_lease event is UNDONE     |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_57ac7a8b","line":115,"range":{"start_line":114,"start_character":0,"end_line":115,"end_character":30},"updated":"2017-10-19 08:31:25.000000000","message":"At least one reservation is in error status, its lease status should go ERROR.","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"1101310b29001c5109ca325e1f5438f81ef141fa","unresolved":false,"context_lines":[{"line_number":111,"context_line":"| Lease state          | Reservation states                 | Event states                           |"},{"line_number":112,"context_line":"+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+"},{"line_number":113,"context_line":"| NOT_STARTED          | At least one reservation state is  | State of start_lease event is UNDONE   |"},{"line_number":114,"context_line":"|                      | pending and others are pending or  | state of end_lease event is UNDONE     |"},{"line_number":115,"context_line":"|                      | error                              |                                        |"},{"line_number":116,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":117,"context_line":"| ACTIVE               | At least one reservation state is  | State of start_lease event is DONE and |"},{"line_number":118,"context_line":"|                      | active                             | state of end_lease event is UNDONE     |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_90c8a355","line":115,"range":{"start_line":114,"start_character":0,"end_line":115,"end_character":30},"in_reply_to":"3f4b6375_57ac7a8b","updated":"2017-10-20 03:17:51.000000000","message":"I thought the lease should be active at least one reservation is active for\nutilizing healthy reservations. However, now that I think the lease status\nshould express error at least one reservation is error because the lease\nstatus is the first touch point that the lease owner sees. I\u0027ve updated\nconditions.","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"2a1f6e790f2ac018bd70640e1e250f53afdf3630","unresolved":false,"context_lines":[{"line_number":114,"context_line":"|                      | pending and others are pending or  | state of end_lease event is UNDONE     |"},{"line_number":115,"context_line":"|                      | error                              |                                        |"},{"line_number":116,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":117,"context_line":"| ACTIVE               | At least one reservation state is  | State of start_lease event is DONE and |"},{"line_number":118,"context_line":"|                      | active                             | state of end_lease event is UNDONE     |"},{"line_number":119,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":120,"context_line":"| TERMINATED           | All reservation states are deleted | State of end_lease event is DONE       |"},{"line_number":121,"context_line":"+----------------------+------------------------------------+----------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_57c59a3b","line":118,"range":{"start_line":117,"start_character":1,"end_line":118,"end_character":31},"updated":"2017-10-19 08:31:25.000000000","message":"Lease status goes ACTIVE once all reservations are in active status, doesn\u0027t it?  If at least one reservation is in pending status, I thought it\u0027s in STARTING status.","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"1101310b29001c5109ca325e1f5438f81ef141fa","unresolved":false,"context_lines":[{"line_number":114,"context_line":"|                      | pending and others are pending or  | state of end_lease event is UNDONE     |"},{"line_number":115,"context_line":"|                      | error                              |                                        |"},{"line_number":116,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":117,"context_line":"| ACTIVE               | At least one reservation state is  | State of start_lease event is DONE and |"},{"line_number":118,"context_line":"|                      | active                             | state of end_lease event is UNDONE     |"},{"line_number":119,"context_line":"+----------------------+------------------------------------+----------------------------------------+"},{"line_number":120,"context_line":"| TERMINATED           | All reservation states are deleted | State of end_lease event is DONE       |"},{"line_number":121,"context_line":"+----------------------+------------------------------------+----------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f4b6375_7007671e","line":118,"range":{"start_line":117,"start_character":1,"end_line":118,"end_character":31},"in_reply_to":"3f4b6375_57c59a3b","updated":"2017-10-20 03:17:51.000000000","message":"same with above.","commit_id":"6b83f982b91893dba043971952488f5eccb2172e"},{"author":{"_account_id":13192,"name":"Souville","display_name":"Bertrand Souville","email":"souville@docomolab-euro.com","username":"bertys"},"change_message_id":"43c77e1ef27ac3baca7d4f60f20da5113ccc3507","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/blazar/+spec/state-machine"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Define state machines for a lease, reservation and event. And utilize the"},{"line_number":15,"context_line":"status field of the leases table which is not used for now."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\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":6,"id":"3f4b6375_3e870bb8","line":15,"range":{"start_line":14,"start_character":58,"end_line":15,"end_character":59},"updated":"2017-10-25 10:18:45.000000000","message":"Shall we add ...is not used for now in Blazar v1?\n\nhttps://github.com/openstack/blazar/blob/master/blazar/api/v2/controllers/extensions/lease.py#L65","commit_id":"bc18184610e6f52fec685eb12320ea5ad78e5602"},{"author":{"_account_id":13192,"name":"Souville","display_name":"Bertrand Souville","email":"souville@docomolab-euro.com","username":"bertys"},"change_message_id":"0871986c29aa2976db340dc4b84a2ebc57eb13c0","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/blazar/+spec/state-machine"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Define state machines for a lease, reservation and event. And utilize the"},{"line_number":15,"context_line":"status field of the leases table which is not used for now."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\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":6,"id":"3f4b6375_ee0be98a","line":15,"range":{"start_line":14,"start_character":58,"end_line":15,"end_character":59},"in_reply_to":"3f4b6375_327de56d","updated":"2017-10-26 04:24:22.000000000","message":"This was WIP and unfortunately never completed but still advertised on Wiki page. I am OK with your proposal. My question is: shall we undo all the changes introduced by https://review.openstack.org/#/c/90755?\n\nThanks","commit_id":"bc18184610e6f52fec685eb12320ea5ad78e5602"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"02ae3b4afe3ffcf78027bb3ba4f9667f04193423","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/blazar/+spec/state-machine"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Define state machines for a lease, reservation and event. And utilize the"},{"line_number":15,"context_line":"status field of the leases table which is not used for now."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\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":6,"id":"3f4b6375_327de56d","line":15,"range":{"start_line":14,"start_character":58,"end_line":15,"end_character":59},"in_reply_to":"3f4b6375_3e870bb8","updated":"2017-10-26 01:17:26.000000000","message":"To my understand, v2 doesn\u0027t use the status field of the leases table \nin blazar-db, neither. Although the Lease object of v2 has a \u0027status\u0027 \nmember, I couldn\u0027t find code that set any status to it.","commit_id":"bc18184610e6f52fec685eb12320ea5ad78e5602"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"0c5b38ed7f904b5664b89a306a61c467a356f380","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/blazar/+spec/state-machine"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Define state machines for a lease, reservation and event. And utilize the"},{"line_number":15,"context_line":"status field of the leases table which is not used for now."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\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":6,"id":"3f4b6375_f72df894","line":15,"range":{"start_line":14,"start_character":58,"end_line":15,"end_character":59},"in_reply_to":"3f4b6375_ee0be98a","updated":"2017-10-26 06:44:12.000000000","message":"I plan to undo the changes except the status field in the leases schema\nbecause my proposal uses only the \u0027status\u0027. Although introducing \n\u0027action\u0027 and \u0027status_reason\u0027 might be a good solution at the time the \npatch 90755 was proposed, I think my proposal can make the\nimplementation simpler.\n\nIf my proposal destroys important features the old implementation provides,\nplease let me know it.","commit_id":"bc18184610e6f52fec685eb12320ea5ad78e5602"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"fd4c36b6f9e5a15ee8a60af28ffbc31f093db5a6","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/blazar/+spec/state-machine"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Define state machines for a lease, reservation and event. And utilize the"},{"line_number":15,"context_line":"status field of the leases table which is not used for now."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\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":6,"id":"3f4b6375_786b1bf0","line":15,"range":{"start_line":14,"start_character":58,"end_line":15,"end_character":59},"in_reply_to":"3f4b6375_f72df894","updated":"2017-10-27 05:43:07.000000000","message":"Blazar v2 API is deprecated in current activities.  It\u0027s not need to follow previous changes only for v2.","commit_id":"bc18184610e6f52fec685eb12320ea5ad78e5602"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"61f1d56f8992049bde930772af40a75386c62480","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"A lease has the following four stable statuses:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* **NOT_STARTED**: A lease has been successfully created and is ready to start."},{"line_number":56,"context_line":"  The lease stays in this status until it starts."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"* **ACTIVE**: A lease has been started and is active."}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_9371b447","line":55,"range":{"start_line":55,"start_character":4,"end_line":55,"end_character":15},"updated":"2017-10-31 21:10:29.000000000","message":"I am thinking it could be better to use PENDING to match the reservation status? Also, NOT_STARTED could also mean ended, so it isn\u0027t the most accurate.","commit_id":"599bd191c1dba1e133a4ab04fba620bb1d7d8fea"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"c117f94f00b7f9f3953f20fb13e5c431c5d0f45f","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"A lease has the following four stable statuses:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* **NOT_STARTED**: A lease has been successfully created and is ready to start."},{"line_number":56,"context_line":"  The lease stays in this status until it starts."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"* **ACTIVE**: A lease has been started and is active."}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_5f79f3f9","line":55,"range":{"start_line":55,"start_character":4,"end_line":55,"end_character":15},"in_reply_to":"3f4b6375_9371b447","updated":"2017-11-01 08:56:24.000000000","message":"Agree. Done.","commit_id":"599bd191c1dba1e133a4ab04fba620bb1d7d8fea"}]}
