Create leases with lease duration instead of end date

Bug #1717290 reported by Pierre Riteau on 2017-09-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pierre Riteau

Bug Description

It would be useful to be able to run:

    blazar lease-create --duration 2h

which would create a lease starting "now" and ending at now+2h. Currently only +24h is possible without giving any date argument.

It could be combined with a start date as well:

    blazar lease-create --start-date "2050-01-01 00:00" --duration 2h

Pierre Riteau (priteau) on 2018-09-10
Changed in blazar:
importance: Undecided → Wishlist
Pierre Riteau (priteau) wrote :

There was discussion at the Stein PTG about this approach: support in client vs support in API. Pierre will prepare a client-side patch and we will continue the discussion on Gerrit.

Changed in blazar:
assignee: nobody → Pierre Riteau (priteau)
milestone: none → stein-1
status: New → Confirmed
Pierre Riteau (priteau) on 2018-10-15
Changed in blazar:
milestone: stein-1 → stein-2
Pierre Riteau (priteau) on 2019-01-10
Changed in blazar:
milestone: stein-2 → stein-3
Pierre Riteau (priteau) on 2019-04-15
Changed in blazar:
milestone: stein-3 → train-1
Asmita Singh (asmita2018) wrote :

support in client vs support in API

Support in client:-
If we add support in client, then there is below issue.

If 'start-date' is not given then considered as 'now'
here in pythonclient. The actual start value is set in
the blazar api service. Considering this point, the end_time
is not exactly as it would be expected.

Support in API:-

So IMO, since we are supporting microversion in
(Add microversion support), we can handle 'lease duration' by bumping microversion at Blazar API side.

Kindly confirm.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers