]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ofagent: Drop log level of tenant-triggerable events
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Sun, 21 Sep 2014 22:39:27 +0000 (07:39 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Sun, 21 Sep 2014 22:47:33 +0000 (07:47 +0900)
To prevent evil tenants from flooding logs.

Closes-Bug: #1372196
Change-Id: I617e9fedf8a8c5e95c6067b716c83778d4d8cc7e

neutron/plugins/ofagent/agent/arp_lib.py

index e97394dc2a325cebb65f9e2c68a35ed2cbdce939..db844b37e9c92250748599dccc67628e05aa452a 100644 (file)
@@ -148,11 +148,11 @@ class ArpLib(object):
         try:
             pkt = packet.Packet(msg.data)
         except Exception as e:
-            LOG.info(_LI("Unparsable packet: got exception %s"), e)
+            LOG.debug("Unparsable packet: got exception %s", e)
             return
-        LOG.info(_LI("packet-in dpid %(dpid)s in_port %(port)s pkt %(pkt)s"),
-                 {'dpid': dpid_lib.dpid_to_str(datapath.id),
-                 'port': port, 'pkt': pkt})
+        LOG.debug("packet-in dpid %(dpid)s in_port %(port)s pkt %(pkt)s",
+                  {'dpid': dpid_lib.dpid_to_str(datapath.id),
+                  'port': port, 'pkt': pkt})
 
         if metadata is None:
             LOG.info(_LI("drop non tenant packet"))
@@ -160,12 +160,12 @@ class ArpLib(object):
         network = metadata & meta.NETWORK_MASK
         pkt_ethernet = pkt.get_protocol(ethernet.ethernet)
         if not pkt_ethernet:
-            LOG.info(_LI("drop non-ethernet packet"))
+            LOG.debug("drop non-ethernet packet")
             return
         pkt_vlan = pkt.get_protocol(vlan.vlan)
         pkt_arp = pkt.get_protocol(arp.arp)
         if not pkt_arp:
-            LOG.info(_LI("drop non-arp packet"))
+            LOG.debug("drop non-arp packet")
             return
 
         arptbl = self._arp_tbl.get(network)