[openstack-dev] [oslo] Exception in rpc_dispatcher
Ben Nemec
openstack at nemebean.com
Fri May 8 16:43:04 UTC 2015
On 05/07/2015 03:34 AM, Vikash Kumar wrote:
> I did following in my agent code:
>
> import eventlet
>
> eventlet.monkey_patch()
>
> but still I see same issue.
Unfortunately, monkey patching in an agent is probably too late. The
monkey patching has to happen at application startup to be done before
everything else. See the section starting at line 30 or so in
https://review.openstack.org/#/c/154642/2/specs/eventlet-best-practices.rst
>
> On Thu, May 7, 2015 at 1:22 PM, Mehdi Abaakouk <sileht at sileht.net> wrote:
>
>>
> Hi,
>
> This is a well known issue when eventlet monkey patching is not done
> correctly.
> The application must do the monkey patching before anything else even
> loading another module that eventlet.
>
> You can find more information here:
> https://bugs.launchpad.net/oslo.messaging/+bug/1288878
>
> Or some examples of how nova and ceilometer ensure that:
>
> https://github.com/openstack/nova/blob/master/nova/cmd/__init__.py
>
> https://github.com/openstack/ceilometer/blob/master/ceilometer/cmd/__init__.py
>
>
> More recent version of oslo.messaging already outputs a better error
> message in this case.
>
> Cheers,
>
> ---
> Mehdi Abaakouk
> mail: sileht at sileht.net
> irc: sileht
>
>
>
> Le 2015-05-07 08:11, Vikash Kumar a écrit :
>
>>>> Hi,
>>>>
>>>> I am getting this error in my agent side. I am getting same message
>>>> twice, one after other.
>>>>
>>>> 2015-05-07 11:39:28.189 11363 ERROR oslo.messaging.rpc.dispatcher
>>>> [req-43875dc3-99a9-4803-aba2-5cff22943c2c ] Exception during message
>>>> handling: _oslo_messaging_localcontext_7a1e392197394132b7bfc1bda8239a82
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>> Traceback
>>>> (most recent call last):
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher File
>>>> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
>>>> 134, in _dispatch_and_reply
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>> incoming.message))
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher File
>>>> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
>>>> 179, in _dispatch
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>> localcontext.clear_local_context()
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher File
>>>> "/usr/lib/python2.7/dist-packages/oslo/messaging/localcontext.py", line
>>>> 55,
>>>> in clear_local_context
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>> delattr(_STORE, _KEY)
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>> AttributeError:
>>>> _oslo_messaging_localcontext_7a1e392197394132b7bfc1bda8239a82
>>>> 2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher
>>>>
>>>> __________________________________________________________________________
>>>> OpenStack Development Mailing List (not for usage questions)
>>>> Unsubscribe:
>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150508/1c0ca507/attachment.pgp>
More information about the OpenStack-dev
mailing list