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:
parent
74c53636b8
commit
6ca69c00fa
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue