Downgrade the log level for Unknown port online/offline

This error can be observed when metadata port up/down. The up/down of the
port out of topology should not be error, which will be noticed by user.

It should be something noticed by admin.

Change-Id: Ib76ddbfc2c8fefe8ac051d14b2a29888c03483da
Related-Bug: #1613615
This commit is contained in:
Hong Hui Xiao 2016-09-17 09:41:23 +08:00
parent 602565f8ab
commit d937cd36da

View File

@ -67,7 +67,7 @@ class Topology(object):
self.ovs_ports[port_id] = ovs_port
port_type = ovs_port.get_type()
if port_type not in self.ovs_port_type:
LOG.error(_LE("Unknown port online: %s") % str(ovs_port))
LOG.info(_LI("Unmanaged port online: %s"), ovs_port)
return
handler_name = '_' + port_type + '_port_' + action
@ -95,7 +95,7 @@ class Topology(object):
port_type = ovs_port.get_type()
if port_type not in self.ovs_port_type:
LOG.error(_LE("Unknown port offline: %s") % str(ovs_port))
LOG.info(_LI("Unmanaged port offline: %s"), ovs_port)
return
handler_name = '_' + port_type + '_port_deleted'