Merge "Prevent leases from being deleted during event execution"

This commit is contained in:
Zuul 2019-02-26 07:32:42 +00:00 committed by Gerrit Code Review
commit ffdfd05bd0
2 changed files with 13 additions and 2 deletions

View File

@ -307,8 +307,12 @@ COMBINATIONS = {
},
LeaseStatus.DELETING: {
'reservation': ReservationStatus.ALL,
'start_lease': EventStatus.ALL,
'end_lease': EventStatus.ALL
'start_lease': (EventStatus.UNDONE,
EventStatus.DONE,
EventStatus.ERROR),
'end_lease': (EventStatus.UNDONE,
EventStatus.DONE,
EventStatus.ERROR)
},
LeaseStatus.UPDATING: {
'reservation': ReservationStatus.ALL,

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Blazar now prevents leases from being deleted while their start_lease or
end_lease events are in progress, to avoid concurrently accessing shared
objects. For more details, see `bug 1791741
<https://bugs.launchpad.net/blazar/+bug/1791741>`_.