← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1621650] [NEW] PortNotFound in DHCP agent logs

 

Public bug reported:

The DHCP agent can call update_dhcp_port, in which case a PortNotFound
exception can be thrown. This currently goes uncaught and leads to lots
of log noise.

http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22Remote%20error%3A%20PortNotFound%5C%22


2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server [req-cadd9638-976b-4c45-8a67-b8e027c31b07 - -] Exception during message handling
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     ectxt.value = e.inner_exc
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     self.force_reraise()
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/db/api.py", line 82, in wrapped
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     traceback.format_exc())
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     self.force_reraise()
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/db/api.py", line 77, in wrapped
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/api/rpc/handlers/dhcp_rpc.py", line 274, in update_dhcp_port
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return self._port_action(plugin, context, port, 'update_port')
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/api/rpc/handlers/dhcp_rpc.py", line 100, in _port_action
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return plugin.update_port(context, port['id'], port)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/common/utils.py", line 618, in inner
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kwargs)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/plugins/ml2/plugin.py", line 1364, in update_port
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     raise exc.PortNotFound(port_id=id)
2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server PortNotFound: Port 3671e6b0-b969-4949-a486-d708e43aa60c could not be found.

** Affects: neutron
     Importance: Undecided
     Assignee: Kevin Benton (kevinbenton)
         Status: New

** Changed in: neutron
    Milestone: None => mitaka-rc1

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1621650

Title:
  PortNotFound in DHCP agent logs

Status in neutron:
  New

Bug description:
  The DHCP agent can call update_dhcp_port, in which case a PortNotFound
  exception can be thrown. This currently goes uncaught and leads to
  lots of log noise.

  http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22Remote%20error%3A%20PortNotFound%5C%22

  
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server [req-cadd9638-976b-4c45-8a67-b8e027c31b07 - -] Exception during message handling
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     ectxt.value = e.inner_exc
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/db/api.py", line 82, in wrapped
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     traceback.format_exc())
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/db/api.py", line 77, in wrapped
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/api/rpc/handlers/dhcp_rpc.py", line 274, in update_dhcp_port
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return self._port_action(plugin, context, port, 'update_port')
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/api/rpc/handlers/dhcp_rpc.py", line 100, in _port_action
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return plugin.update_port(context, port['id'], port)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/common/utils.py", line 618, in inner
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kwargs)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server   File "/opt/stack/new/neutron/neutron/plugins/ml2/plugin.py", line 1364, in update_port
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server     raise exc.PortNotFound(port_id=id)
  2016-09-08 07:23:35.069 13627 ERROR oslo_messaging.rpc.server PortNotFound: Port 3671e6b0-b969-4949-a486-d708e43aa60c could not be found.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1621650/+subscriptions


Follow ups