Cannot delete a lease which failed to start until after end_date
Bug #1713768 reported by
Pierre Riteau
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
High
|
Hiroaki Kobayashi |
Bug Description
If a lease has failed to start (e.g. because the host had been accidentally removed from the freepool), it cannot be deleted until after its end date: the error "Invalid event status" is returned instead. This is because of the following code in delete_lease():
if (datetime.
start_event = db_api.
'lease_id',
'asc',
{
}
)
if not start_event:
raise common_
Changed in blazar: | |
importance: | Undecided → High |
Changed in blazar: | |
assignee: | nobody → Hiroaki Kobayashi (hiro-kobayashi) |
Changed in blazar: | |
milestone: | none → 0.4.0 |
Changed in blazar: | |
milestone: | 0.4.0 → queens-1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/499411
Review: https:/