Allow terminating leases in ERROR state when start_lease failed

Commit 8d2f4a0f0e added a valid state
transition from ERROR to TERMINATING, to allow a lease in the ERROR
state to attempt to clean itself up upon lease end. However, it did not
work for leases which failed to start as there was no corresponding
combination of statuses for it.

Change-Id: I3ff29958f04a55b4c39272c528b1630564c62e34
This commit is contained in:
Pierre Riteau 2018-10-15 18:54:59 +01:00
parent 74c53636b8
commit 6ca69c00fa
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ COMBINATIONS = {
'reservation': (ReservationStatus.ACTIVE,
ReservationStatus.DELETED,
ReservationStatus.ERROR),
'start_lease': (EventStatus.DONE,),
'start_lease': (EventStatus.DONE,
EventStatus.ERROR),
'end_lease': (EventStatus.IN_PROGRESS,)
},
LeaseStatus.TERMINATED: {