)]}'
{"doc/source/devref/specs/pike/terminate-lease-at-anytime.rst":[{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"5e7ea5f2916fdee0c228d77f7c977f5bbb291952","unresolved":false,"context_lines":[{"line_number":26,"context_line":"* As Wei, I want to be able to query/update/terminate a resource usage request"},{"line_number":27,"context_line":"  at any point in time. (from the `capacity management user story`_)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":".. _capacity management user story: https://github.com/openstack/openstack-user-stories/blob/master/user-stories/proposed/capacity-management.rst"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Proposed change"},{"line_number":32,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_0e8ffccc","line":29,"range":{"start_line":29,"start_character":36,"end_line":29,"end_character":145},"updated":"2017-03-31 10:21:17.000000000","message":"It\u0027s better to point the docs in openstack.org, doen\u0027t it?\n\nhttp://specs.openstack.org/openstack/openstack-user-stories/user-stories/proposed/capacity-management.html","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"2d118f84f22cb4a8f8e2988ead6e71ee71690b33","unresolved":false,"context_lines":[{"line_number":26,"context_line":"* As Wei, I want to be able to query/update/terminate a resource usage request"},{"line_number":27,"context_line":"  at any point in time. (from the `capacity management user story`_)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":".. _capacity management user story: https://github.com/openstack/openstack-user-stories/blob/master/user-stories/proposed/capacity-management.rst"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Proposed change"},{"line_number":32,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_1bca6e6c","line":29,"range":{"start_line":29,"start_character":36,"end_line":29,"end_character":145},"in_reply_to":"dfeb2761_0e8ffccc","updated":"2017-04-03 06:42:00.000000000","message":"Done","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"5e7ea5f2916fdee0c228d77f7c977f5bbb291952","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Change the delete_lease() method of the ManagerService class to accept a lease"},{"line_number":35,"context_line":"delete request even if the lease has been already started."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_9174519b","line":36,"updated":"2017-03-31 10:21:17.000000000","message":"How does the user terminate his/her resource usage request?  I can imagine 2 options. When the user want to terminate the usage request now, 1. he/she calls delete-lease API 2. calls update-lease API with end_time is now.\n\nFrom my understand of the userstory, user wants to terminate their reservation anytime. So #2 looks fine for the usecase since delete-lease API deletes reservations as well as leases.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"f66f1076b432ecbb80de8b9efb490ab00a3cd9d3","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Change the delete_lease() method of the ManagerService class to accept a lease"},{"line_number":35,"context_line":"delete request even if the lease has been already started."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_e72e0942","line":36,"in_reply_to":"dfeb2761_3bd652c5","updated":"2017-04-03 08:40:01.000000000","message":"Supporting both API sounds good.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"2d118f84f22cb4a8f8e2988ead6e71ee71690b33","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Change the delete_lease() method of the ManagerService class to accept a lease"},{"line_number":35,"context_line":"delete request even if the lease has been already started."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_3bd652c5","line":36,"in_reply_to":"dfeb2761_9174519b","updated":"2017-04-03 06:42:00.000000000","message":"I think its better to support both of 2 operations. For option 1, the lease\ncan completely deleted from Blazar DB, while option 2 can only terminate\nthe lease and the lease information remains in the Blazar DB.\nUser can chose the appropriate operation.\n\nI will update the spec after we make a consensus.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":17352,"name":"Gerald Kunzmann","email":"kunzmann@docomolab-euro.com","username":"GeraldK"},"change_message_id":"22f052d18296ea8ac6677c9859d3f4f651f3c364","unresolved":false,"context_lines":[{"line_number":96,"context_line":"Dependencies"},{"line_number":97,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Depends on the `on-end-options blueprint`_ because it changes the on_end"},{"line_number":100,"context_line":"behavior of resource plugins which are called by the delete_lease() method."},{"line_number":101,"context_line":"This terminate-lease-at-anytime blueprint should be implemented after the"},{"line_number":102,"context_line":"force-deletion feature of the on-end-options blueprint is implemented."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. _on-end-options blueprint: https://blueprints.launchpad.net/blazar/+spec/on-end-options"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ffe62b97_7b67b8b8","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":70},"updated":"2017-03-29 09:26:10.000000000","message":"We should agree on the expected behaviour:\n- Is delete_lease only possible for leases that have already started but where no ressources are used/allocated yet? Or can it also terminate the lease similar to lease end?\n- Is the delete_lease an action that should be executed immediately without any on_end notifications and actions? In that case, I would prefer to call it \"terminate_lease\" to make clear this is immediate termination not a \"soft\" deletion.\n- Or, if an on_end action is defined, would delete_lease still call this action? This would then mean that the lease is not deleted immediately as the on_end action may require some time.\n- Would delete_lease still send a notification about the lease to be ending? Does that make sense?","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"f66f1076b432ecbb80de8b9efb490ab00a3cd9d3","unresolved":false,"context_lines":[{"line_number":96,"context_line":"Dependencies"},{"line_number":97,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Depends on the `on-end-options blueprint`_ because it changes the on_end"},{"line_number":100,"context_line":"behavior of resource plugins which are called by the delete_lease() method."},{"line_number":101,"context_line":"This terminate-lease-at-anytime blueprint should be implemented after the"},{"line_number":102,"context_line":"force-deletion feature of the on-end-options blueprint is implemented."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. _on-end-options blueprint: https://blueprints.launchpad.net/blazar/+spec/on-end-options"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_a7dda143","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":70},"in_reply_to":"dfeb2761_1646c550","updated":"2017-04-03 08:40:01.000000000","message":"OK, it looks fine.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"2d118f84f22cb4a8f8e2988ead6e71ee71690b33","unresolved":false,"context_lines":[{"line_number":96,"context_line":"Dependencies"},{"line_number":97,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Depends on the `on-end-options blueprint`_ because it changes the on_end"},{"line_number":100,"context_line":"behavior of resource plugins which are called by the delete_lease() method."},{"line_number":101,"context_line":"This terminate-lease-at-anytime blueprint should be implemented after the"},{"line_number":102,"context_line":"force-deletion feature of the on-end-options blueprint is implemented."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. _on-end-options blueprint: https://blueprints.launchpad.net/blazar/+spec/on-end-options"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_1646c550","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":70},"in_reply_to":"dfeb2761_312105fd","updated":"2017-04-03 06:42:00.000000000","message":"For current implementation, the Blazar sends notification at the end of the update_lease() or the delete_lease() method of the ManagerService class. That means the notification will be sent after the Blazar finishes the on_end action.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"811add08cf887954c82c91f626d9da7be55e1af5","unresolved":false,"context_lines":[{"line_number":96,"context_line":"Dependencies"},{"line_number":97,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Depends on the `on-end-options blueprint`_ because it changes the on_end"},{"line_number":100,"context_line":"behavior of resource plugins which are called by the delete_lease() method."},{"line_number":101,"context_line":"This terminate-lease-at-anytime blueprint should be implemented after the"},{"line_number":102,"context_line":"force-deletion feature of the on-end-options blueprint is implemented."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. _on-end-options blueprint: https://blueprints.launchpad.net/blazar/+spec/on-end-options"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ffe62b97_8e869165","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":70},"in_reply_to":"ffe62b97_7b67b8b8","updated":"2017-03-30 01:42:37.000000000","message":"My plans are:\n\n* The delete_lease terminates a lease even if some resources have already been used/allocated.\n* The delete_lease is not a \"soft\" deletion. So it immediately calls on_end actions of resource plugins (for physical-host-plugin, that means it immediately force-deletes instances on reserved hosts) without calling before_end actions including the before_end notification. I agree to call it a \"terminate_lease.\"\n* \"terminate_lease\" is not a scheduled operation but an on-demand operation triggered by an operator. So, I think the notification is not necessary.","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"5e7ea5f2916fdee0c228d77f7c977f5bbb291952","unresolved":false,"context_lines":[{"line_number":96,"context_line":"Dependencies"},{"line_number":97,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Depends on the `on-end-options blueprint`_ because it changes the on_end"},{"line_number":100,"context_line":"behavior of resource plugins which are called by the delete_lease() method."},{"line_number":101,"context_line":"This terminate-lease-at-anytime blueprint should be implemented after the"},{"line_number":102,"context_line":"force-deletion feature of the on-end-options blueprint is implemented."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. _on-end-options blueprint: https://blueprints.launchpad.net/blazar/+spec/on-end-options"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dfeb2761_312105fd","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":70},"in_reply_to":"ffe62b97_8e869165","updated":"2017-03-31 10:21:17.000000000","message":"To be clarified, which timing does Blazar send the terminate_lease notification? 1. a time when blazar finishes the on_end action. 2. a time when the user deletes their lease.\n\nAs I mentioned above, we can terminate reservations by 2 ways. If you plan to send the notification at end of on_end action it sounds like \"reservation_end\" rather than \"lease_terminate\".","commit_id":"73bf095e0d9a2710e88694c05a92707b79b9d51e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e23b825533fe138e48d23187dd44fe230828983e","unresolved":false,"context_lines":[{"line_number":38,"context_line":"   Change the update_lease() method of the ManagerService class to accept a"},{"line_number":39,"context_line":"   request with the \"end_date\" parameter equal to \"now.\" Then, the"},{"line_number":40,"context_line":"   update_lease() method calls the on_end() method of resource plugins for"},{"line_number":41,"context_line":"   terminating the lease."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"2. Lease termination by the delete lease request"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"bff0334d_76fd3439","line":41,"updated":"2017-04-06 08:44:34.000000000","message":"I don\u0027t thik it\u0027s good to call on_end() method in update_lease() because of following 2 reason.  1. _event thread works as a different thread in the manager. It could cause race condition for event\u0027s status.  2. update lease API waits to send the response until on_end() execution ends. It makes API request take so long and can\u0027t expect the timeout of the API.\n\nIMO, update_lease() and delete_lease() should update just end_date of the lease\u0027s end_lease event to current time in the API request then replay a response. Next _event() loop, the pulse is 10s, catches the end_lease events.","commit_id":"d3855d1f453a46397f87750409aaaf2c4494065d"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e23b825533fe138e48d23187dd44fe230828983e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"   Change the delete_lease() method of the ManagerService class to accept a"},{"line_number":46,"context_line":"   request even if the lease has been already started. Then, the update_lease()"},{"line_number":47,"context_line":"   method calls the on_end() method of resource plugins and delete the entry of"},{"line_number":48,"context_line":"   the lease from the Blazar DB."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Alternatives"},{"line_number":51,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bff0334d_968558b0","line":48,"updated":"2017-04-06 08:44:34.000000000","message":"same as above.","commit_id":"d3855d1f453a46397f87750409aaaf2c4494065d"}]}
