NSX|V: delete old pending-update/delete edges
Commit If07937636f2312e86ae71d7345053ef72b28e2aa added the logic to delete edges which are waiting to be created for too long. This commit does the same also for edges waiting to be updated or deleted. Change-Id: I9ca1c525593c28fb9ee7610d2f1dd3cee6f81939
This commit is contained in:
parent
659ea71520
commit
b642470390
|
@ -328,8 +328,11 @@ class EdgeManager(object):
|
|||
|
||||
def _clean_all_error_edge_bindings(self, context, availability_zone):
|
||||
# Find all backup edges in error state &
|
||||
# backup edges which are in pending-create state for too long
|
||||
filters = {'status': [constants.ERROR, constants.PENDING_CREATE],
|
||||
# backup edges which are in pending-XXX state for too long
|
||||
filters = {'status': [constants.ERROR,
|
||||
constants.PENDING_CREATE,
|
||||
constants.PENDING_UPDATE,
|
||||
constants.PENDING_DELETE],
|
||||
'availability_zone': [availability_zone.name]}
|
||||
like_filters = {'router_id': vcns_const.BACKUP_ROUTER_PREFIX + "%"}
|
||||
router_bindings = nsxv_db.get_nsxv_router_bindings(
|
||||
|
|
Loading…
Reference in New Issue