greenpool.py traceback in Ocata

Bug #1698432 reported by Vikram Hosakote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-cisco
Fix Released
Undecided
Arvind Somya

Bug Description

Saw this traceback few times with networking-cisco Ocata related to greenpool.py. Looks harmless and does not cause any side effects.

017-06-15 13:52:04.156 8945 ERROR neutron.plugins.ml2.ovo_rpc [req-9b525fec-39c6-48b1-a126-0a03ae3fb6c1 admin admin] This handler is supposed to handle AFTER events, as in 'AFTER it's committed', not BEFORE. Offending resource event: port, after_create. Location:
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 719, in process_request
    proto.__init__(sock, address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 342, in handle
    self.handle_one_request()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 384, in handle_one_request
    self.handle_one_response()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 481, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line 216, in __call__
    return app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_middleware/base.py", line 126, in __call__
    response = req.get_response(self.application)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
    application, catch_exc_info=False)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_middleware/base.py", line 126, in __call__
    response = req.get_response(self.application)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
    application, catch_exc_info=False)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_middleware/request_id.py", line 37, in __call__
    response = req.get_response(self.application)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
    application, catch_exc_info=False)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_middleware/catch_errors.py", line 41, in __call__
    response = req.get_response(self.application)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
    application, catch_exc_info=False)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 335, in __call__
    response = req.get_response(self._app)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
    application, catch_exc_info=False)
  File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 141, in __call__
    response = self.app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource
    result = method(request=request, **args)
  File "/opt/stack/neutron/neutron/db/api.py", line 91, in wrapped
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
    return f(*args, **kwargs)
  File "/opt/stack/neutron/neutron/db/api.py", line 126, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "/opt/stack/neutron/neutron/api/v2/base.py", line 258, in _handle_action
    ret_value = getattr(self._plugin, name)(*arg_list, **kwargs)
  File "/opt/stack/networking-cisco/networking_cisco/plugins/cisco/db/l3/l3_router_appliance_db.py", line 468, in add_router_interface
    info['port_id']))
  File "/opt/stack/networking-cisco/networking_cisco/plugins/cisco/db/l3/ha_db.py", line 593, in _add_redundancy_router_interfaces
    self._create_ha_group(e_context, router, new_port, ha_settings_db)
  File "/opt/stack/networking-cisco/networking_cisco/plugins/cisco/db/l3/ha_db.py", line 667, in _create_ha_group
    fixed_ips, port['device_owner'])
  File "/opt/stack/networking-cisco/networking_cisco/plugins/cisco/db/l3/ha_db.py", line 926, in _create_hidden_port
    return self._core_plugin.create_port(context, port)
  File "/opt/stack/neutron/neutron/common/utils.py", line 775, in inner
    return f(self, context, *args, **kwargs)
  File "/opt/stack/neutron/neutron/db/api.py", line 166, in wrapped
    return method(*args, **kwargs)
  File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1175, in create_port
    registry.notify(resources.PORT, events.AFTER_CREATE, self, **kwargs)
  File "/opt/stack/neutron/neutron/callbacks/registry.py", line 44, in notify
    _get_callback_manager().notify(resource, event, trigger, **kwargs)
  File "/opt/stack/neutron/neutron/db/api.py", line 177, in wrapped
    return f(*args, **kwargs)
  File "/opt/stack/neutron/neutron/callbacks/manager.py", line 120, in notify
    errors = self._notify_loop(resource, event, trigger, **kwargs)
  File "/opt/stack/neutron/neutron/callbacks/manager.py", line 146, in _notify_loop
    callback(resource, event, trigger, **kwargs)
  File "/opt/stack/neutron/neutron/plugins/ml2/ovo_rpc.py", line 77, in handle_event
    if self._is_session_semantic_violated(context, resource, event):
  File "/opt/stack/neutron/neutron/plugins/ml2/ovo_rpc.py", line 61, in _is_session_semantic_violated
    stack = traceback.extract_stack()

Tags: ocata
Arvind Somya (asomya)
Changed in networking-cisco:
assignee: nobody → Arvind Somya (asomya)
Changed in networking-cisco:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-cisco (master)

Reviewed: https://review.openstack.org/487557
Committed: https://git.openstack.org/cgit/openstack/networking-cisco/commit/?id=ecf048397700d45e7d11b3c031bb8dedaa635f22
Submitter: Jenkins
Branch: master

commit ecf048397700d45e7d11b3c031bb8dedaa635f22
Author: Arvind Somya <email address hidden>
Date: Wed Jul 26 09:11:54 2017 -0400

    Fix greenpool.py traceback in Ocata

    This patch fixes the semantic violation in ocata when the user added
    a subnet to a router.

    Change-Id: Ifd3190bb99667edfe2274bafd33916fbf4429e03
    Closes-bug: #1698432

Changed in networking-cisco:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.