<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/26/2012 01:49 PM, Adam Young
wrote:<br>
</div>
<blockquote cite="mid:508ACD2E.6010003@redhat.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/26/2012 10:52 AM, Dolph Mathews
wrote:<br>
</div>
<blockquote
cite="mid:CAC=h7gUPmsgFBfx7aiZHjCJ5xWYt0M6F+Lb4tKVYSM4ey03HjA@mail.gmail.com"
type="cite">Pending feedback from Adam and a bug report, here's
a potential fix: <a moz-do-not-send="true"
href="https://review.openstack.org/#/c/14865/">https://review.openstack.org/#/c/14865/</a><br
clear="all">
</blockquote>
<br>
Yes, please test that out. I would not expect that the
greenthreads would intentionall share a file descriptor but there
is always the possibility of a bug in the Eventlet layer.<br>
<br>
Please file this as a bug. <br>
<br>
<br>
<blockquote
cite="mid:CAC=h7gUPmsgFBfx7aiZHjCJ5xWYt0M6F+Lb4tKVYSM4ey03HjA@mail.gmail.com"
type="cite">
<div><br>
</div>
-Dolph<br>
<br>
<br>
<div class="gmail_quote">On Thu, Oct 25, 2012 at 7:49 PM, Dolph
Mathews <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dolph.mathews@gmail.com" target="_blank">dolph.mathews@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Any details on what file is being read twice? (I doubt
this is a quantum issue -- more likely to be keystone)</div>
<div><br>
</div>
<div>I'm guessing the culprit is that the auth_token
middleware reads/writes a PKI token revocation list to
disk... although I'm not sure why it can't be stored in
memory -- Adam?<span class="HOEnZb"><font color="#888888"><br
clear="all">
<div><br>
</div>
-Dolph<br>
<br>
<br>
</font></span>
<div class="gmail_quote">
<div>
<div class="h5">On Thu, Oct 25, 2012 at 5:16 PM, Shiv
Haris <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sharis@brocade.com" target="_blank">sharis@brocade.com</a>></span>
wrote:<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">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi Quantum team,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Lately I have come across
a new error using quantum from the “master”.
Never saw this before. It appears I may have
updated some package and at this time I have
no idea which one to back off. This may be
related to some python package.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any ideas?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">2012-10-25 15:11:12
ERROR [keystone.middleware.auth_token] HTTP
connection exception: Second simultaneous
read on fileno 9 detected. Unless you
really know what you're doing, make sure
that only one greenthread can read any
particular socket. Consider using a
pools.Pool. If you do know what you're doing
and want to disable this error, call
eventlet.debug.hub_multiple_reader_prevention(False)</p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</blockquote>
<br>
It is also possible that the problem is memcached and not the file
read. This problem was reported before due to memcache, and the
solution was to monkey_patch thread.<br>
<br>
modify <br>
quantum/wsgi.py:28:eventlet.patcher.monkey_patch(all=False,
socket=True, thread=True)<br>
<br>
<br>
in the keystone-all executable, we have this code:<br>
<br>
monkeypatch_thread = not CONF._cli_values['standard_threads']<br>
eventlet.patcher.monkey_patch(all=False, socket=True, time=True,<br>
thread=monkeypatch_thread)<br>
<br>
<br>
<br>
The ability to turn off monkeypatching of thread is valuable, as it
allows debugging. I would move the code that performs the monkey
patch in quantum into your startup code (users may want to deploy
quantum in something other than eventlet) and use the code fragment
above to get the command line parameter. <br>
<br>
<br>
<br>
<blockquote cite="mid:508ACD2E.6010003@redhat.com" type="cite">
<blockquote
cite="mid:CAC=h7gUPmsgFBfx7aiZHjCJ5xWYt0M6F+Lb4tKVYSM4ey03HjA@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">-Shiv</p>
<p class="MsoNormal"> </p>
</div>
</div>
<br>
</div>
</div>
<div class="im">_______________________________________________<br>
OpenStack-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:OpenStack-dev@lists.openstack.org"
target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a moz-do-not-send="true"
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>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>