missing 'before_end_date' value in lease response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
New
|
Undecided
|
Neha Alhat |
Bug Description
Description:
In lease-create and lease-show APIs response you get values of 'start_date'
and 'end_date' of lease, but missing 'before_end_date' value. It is use full
information if user wants to update 'before_end_date' of lease.
Steps:
1. create a lease
$ blazar lease-create --reservation resource_
2. Check lease response
Created a new lease:
+------
| Field | Value |
+------
| created_at | 2018-10-11 12:05:33 |
| degraded | False |
| end_date | 2018-10-
| events | { |
| | "status": "UNDONE", |
| | "lease_id": "b1f7b2e6-
| | "event_type": "end_lease", |
| | "created_at": "2018-10-11 12:05:35", |
| | "updated_at": null, |
| | "time": "2018-10-
| | "id": "22ae5220-
| | } |
| | { |
| | "status": "UNDONE", |
| | "lease_id": "b1f7b2e6-
| | "event_type": "start_lease", |
| | "created_at": "2018-10-11 12:05:35", |
| | "updated_at": null, |
| | "time": "2018-10-
| | "id": "276bd15d-
| | } |
| | { |
| | "status": "UNDONE", |
| | "lease_id": "b1f7b2e6-
| | "event_type": "before_end_lease", |
| | "created_at": "2018-10-11 12:05:35", |
| | "updated_at": null, |
| | "time": "2018-10-
| | "id": "82e9132b-
| | } |
| id | b1f7b2e6-
| name | lease-1 |
| project_id | bb11c6001512450
| reservations | { |
| | "status": "pending", |
| | "memory_mb": 1024, |
| | "lease_id": "b1f7b2e6-
| | "resource_
| | "disk_gb": 20, |
| | "resource_id": "00a3ccba-
| | "created_at": "2018-10-11 12:05:33", |
| | "updated_at": "2018-10-11 12:05:35", |
| | "missing_
| | "server_group_id": "e7f43c55-
| | "amount": 1, |
| | "affinity": false, |
| | "flavor_id": "3b730291-
| | "id": "3b730291-
| | "aggregate_id": 106, |
| | "vcpus": 1, |
| | "resource_type": "virtual:instance", |
| | "resources_
| | } |
| start_date | 2018-10-
| status | PENDING |
| trust_id | f3f0a175d2ec4d9
| updated_at | 2018-10-11 12:05:35 |
| user_id | 9e1363ac34754d9
+------
Changed in blazar: | |
assignee: | nobody → Neha Alhat (nehaalhat) |