]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Downgrade log level for gone port on status update
authorKevin Benton <blak111@gmail.com>
Thu, 2 Jul 2015 08:45:46 +0000 (01:45 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 2 Jul 2015 09:07:12 +0000 (02:07 -0700)
If a port is deleted immediately before a status update arrives
from the L2 agent, the port will be missing from the DB. The current
code was logging this at the warning level, but this occurs during
normal operations so it should only be a debug event.

Change-Id: I22af81e6807bfccb4c906ec0873fcbfca67b72df

neutron/plugins/ml2/plugin.py

index a56039d4548119039d8ad5b4538e902454baea61..105d0f5d58c3105c1b8dc1e9d3111b119198b89d 100644 (file)
@@ -1397,8 +1397,8 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
                 session.begin(subtransactions=True):
             port = db.get_port(session, port_id)
             if not port:
-                LOG.warning(_LW("Port %(port)s updated up by agent not found"),
-                            {'port': port_id})
+                LOG.debug("Port %(port)s update to %(val)s by agent not found",
+                          {'port': port_id, 'val': status})
                 return None
             if (port.status != status and
                 port['device_owner'] != const.DEVICE_OWNER_DVR_INTERFACE):