https://blueprints.launchpad.net/blazar/+spec/terminate-lease-at-anytime
Enable lease termination at any time even if the lease has already started.
Blazar does not allow any leases to be deleted if they have already started. Though it is possible to change the end time of a lease by the lease update request with the appropriate “end_date” parameter, a more intuitive operation for immediate lease termination should be provided.
Support two ways for the lease termination.
Lease termination by the update lease request with “end_date” = “now”
Change the update_lease() method of the ManagerService class to accept a request with the “end_date” parameter equal to “now.” Then, the update_lease() method calls the on_end() method of resource plugins for terminating the lease.
Lease termination by the delete lease request
Change the delete_lease() method of the ManagerService class to accept a request even if the lease has been already started. Then, the update_lease() method calls the on_end() method of resource plugins and delete the entry of the lease from the Blazar DB.
None.
None.
URL: PUT /<version>/leases/<id>
Allow the “end_date” parameter to be “now.”
None.
None.
None.
None.
None.
None.
Depends on the on-end-options blueprint because it changes the on_end behavior of resource plugins which are called by the update_lease() and delete_lease() method. This terminate-lease-at-anytime blueprint should be implemented after the force-deletion feature of the on-end-options blueprint is implemented.
None.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.