<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">I did following in my agent code:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style><div class="gmail_default" style><font face="verdana, sans-serif">import eventlet</font></div><div class="gmail_default" style><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font face="verdana, sans-serif">eventlet.monkey_patch()</font></div><div class="gmail_default" style><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font face="verdana, sans-serif">but still I see same issue.</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 7, 2015 at 1:22 PM, Mehdi Abaakouk <span dir="ltr"><<a href="mailto:sileht@sileht.net" target="_blank">sileht@sileht.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Hi,<br>
<br>
This is a well known issue when eventlet monkey patching is not done correctly.<br>
The application must do the monkey patching before anything else even loading another module that eventlet.<br>
<br>
You can find more information here: <a href="https://bugs.launchpad.net/oslo.messaging/+bug/1288878" target="_blank">https://bugs.launchpad.net/oslo.messaging/+bug/1288878</a><br>
<br>
Or some examples of how nova and ceilometer ensure that:<br>
<br>
 <a href="https://github.com/openstack/nova/blob/master/nova/cmd/__init__.py" target="_blank">https://github.com/openstack/nova/blob/master/nova/cmd/__init__.py</a><br>
 <a href="https://github.com/openstack/ceilometer/blob/master/ceilometer/cmd/__init__.py" target="_blank">https://github.com/openstack/ceilometer/blob/master/ceilometer/cmd/__init__.py</a><br>
<br>
<br>
More recent version of oslo.messaging already outputs a better error message in this case.<br>
<br>
Cheers,<br>
<br>
- ---<br>
Mehdi Abaakouk<br>
mail: <a href="mailto:sileht@sileht.net" target="_blank">sileht@sileht.net</a><br>
irc: sileht<div><div class="h5"><br>
<br>
<br>
Le 2015-05-07 08:11, Vikash Kumar a écrit :<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
   I am getting this error in my agent side. I am getting same message<br>
twice, one after other.<br>
<br>
2015-05-07 11:39:28.189 11363 ERROR oslo.messaging.rpc.dispatcher<br>
[req-43875dc3-99a9-4803-aba2-5cff22943c2c ] Exception during message<br>
handling: _oslo_messaging_localcontext_7a1e392197394132b7bfc1bda8239a82<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher Traceback<br>
(most recent call last):<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher   File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line<br>
134, in _dispatch_and_reply<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher<br>
incoming.message))<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher   File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line<br>
179, in _dispatch<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher<br>
localcontext.clear_local_context()<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher   File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/localcontext.py", line 55,<br>
in clear_local_context<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher<br>
delattr(_STORE, _KEY)<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher<br>
AttributeError:<br>
_oslo_messaging_localcontext_7a1e392197394132b7bfc1bda8239a82<br>
2015-05-07 11:39:28.189 11363 TRACE oslo.messaging.rpc.dispatcher<br>
<br></div></div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote>
-----BEGIN PGP SIGNATURE-----<br>
Version: OpenPGP.js v.1.20131017<br>
Comment: <a href="http://openpgpjs.org" target="_blank">http://openpgpjs.org</a><br>
<br>
wsFcBAEBCAAQBQJVSxmkCRAYkrQvzqrryAAAcA4P/iTf59F9HbqQF6uuKDM6<br>
HMPWg0PovpzUg0opOMMBE8ZwiQ6B+w5MS3rkwDzbcXfqijDxM8A0BAOwG5/v<br>
iFGfENKPIVm2Y/7iHmg84+MXSKSYDNmsuZc0AOP0i9Ar9D6E8SZbC5hMSfAO<br>
KOZBbVmBP14/KhXesxJPx5nbDknhRPLravV9o/iyMnLSWBGQa80X92G1tkz6<br>
6PI/UCCp1SGyky0eg0ZoZ5+IX3r9UsyjGDRS+le+lQEu4T0e05G1jBnvw9H7<br>
qIo7ecWDSUwwxl7sz2HlgaF0st4bjCtRtSPbbcW2nShKBVbIdAxfncj2O8Ux<br>
PVwk4ZaEdyQ+O2RJp/vq6v9jcNsoh/3jCLojEwUv4BlLS7qEW4Ime0coJoxD<br>
zgC1vdgSojS8pxRto8kh7NJ91MpILRDfm3bJ/bpTGb04Wh4LYGHmoeQMrCex<br>
rPmYgDkWTXUpsqAgwHpP8DZpRXY40hx6yCiWp/1lNLI/CYx4B6fDOOS7Xf8k<br>
kjmRrzV8QriQ+02M9cCWIgLyskAUIWRzEn/ZhtAiQTvaCJEuMvQTHSYMf30J<br>
m1hW2bL5UcuwA+4Or6nxzfF14EDaWZv2dD2hPNvfJ3qMXgCHQoQUVp061sto<br>
p7RPmzWVWuNrwmVIp0JcJSLDGRSifGadDw/3Uiygpo9M9RfUJEpC2RJ85WjU<br>
DSE8<br>
=nSuZ<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-family:trebuchet ms,sans-serif">Regards,<br></span></div><span style="font-family:trebuchet ms,sans-serif">Vikash</span><br></div></div>
</div>