]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Log end of router updates for PD and delete branches
authorRyan Moats <rmoats@us.ibm.com>
Wed, 28 Oct 2015 16:01:28 +0000 (11:01 -0500)
committerRyan Moats <rmoats@us.ibm.com>
Wed, 28 Oct 2015 16:01:28 +0000 (11:01 -0500)
These execution branches call continue directly without
logging the end of the router update.  This leads to
confusion about when the last router update finishes if
it is a delete or a PD update.

Change-Id: Id82e7374aa9336e0adea3042238f30f716208373
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Closes-bug: #1511004

neutron/agent/l3/agent.py

index 8191c5a814b176a68d2b15cf43ac721f8d1faa3b..f20c004adb868f5f33e685aefe534cab3f86afce 100644 (file)
@@ -466,6 +466,7 @@ class L3NATAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback,
                       update.id, update.action, update.priority)
             if update.action == queue.PD_UPDATE:
                 self.pd.process_prefix_update()
+                LOG.debug("Finished a router update for %s", update.id)
                 continue
             router = update.router
             if update.action != queue.DELETE_ROUTER and not router:
@@ -495,6 +496,7 @@ class L3NATAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback,
                     # processing queue (like events from fullsync) in order to
                     # prevent deleted router re-creation
                     rp.fetched_and_processed(update.timestamp)
+                LOG.debug("Finished a router update for %s", update.id)
                 continue
 
             try: