]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix l3 agent to not create already deleted router
authorOleg Bondarev <obondarev@mirantis.com>
Thu, 11 Jun 2015 10:38:55 +0000 (13:38 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 19 Jun 2015 14:38:53 +0000 (17:38 +0300)
commit74b0c53da5d7e4305606c100becf34966d8af350
tree0bc73bbedba67e2b3508f4b1d9b0eaca9c1121f4
parent4d35f1526504250cab5949414186947fadc2aade
Fix l3 agent to not create already deleted router

In case router is deleted during l3 agent resync,
the "deleted" event is processed with higher priority, then
resync event for the router may be processed which will recreate
already deleted router.
This happens due to timestamp not being properly updated for deleted
router in router processor.
The fix adds timestamp update for deleted router.

Functional test will be updated in a follow-up patch

Logging was improved to make debugging a bit easier.

Closes-Bug: #1455439
Change-Id: I2d060064acccc10591a3d90be9011f116548cfce
neutron/agent/l3/agent.py
neutron/tests/unit/agent/l3/test_agent.py