From d1f1722e0edb63c73b60c80abafa63749349cd8e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 22 Sep 2014 07:39:27 +0900 Subject: [PATCH] ofagent: Drop log level of tenant-triggerable events To prevent evil tenants from flooding logs. Closes-Bug: #1372196 Change-Id: I617e9fedf8a8c5e95c6067b716c83778d4d8cc7e --- neutron/plugins/ofagent/agent/arp_lib.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neutron/plugins/ofagent/agent/arp_lib.py b/neutron/plugins/ofagent/agent/arp_lib.py index e97394dc2..db844b37e 100644 --- a/neutron/plugins/ofagent/agent/arp_lib.py +++ b/neutron/plugins/ofagent/agent/arp_lib.py @@ -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) -- 2.45.2