<div dir="ltr">Hi , <div><br></div><div>According to <a href="https://github.com/eventlet/eventlet/issues/147" target="_blank" style="font-family:"trebuchet ms",sans-serif;font-size:12.8px">https://github.com/<wbr>eventlet/eventlet/issues/147</a> - it's looks that eventlet </div><div>has issue with "<span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">multiprocessing.pool". </span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">The ThreadPool used in code that auto-</span><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">generated by swagger.</span></font></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">Possible workaround for that is to monky-patch the client library , </span></font></div><div><span style="font-size:12px;white-space:pre;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace">and replace the pool with greenpool. </span></div><div><span style="font-size:12px;white-space:pre;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace"><br></span></div><div><span style="font-size:12px;white-space:pre;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace">If someone has better workaround, please share that with us :) </span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">btw , I don't think that should be treated as compatibility</span> issue </font></div><div><span style="font-size:12px;white-space:pre;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace">in the client python as it's an eventlet issue.. </span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">Thanks , </span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">leyal </span></div><div><span style="font-size:12px;white-space:pre;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace"> </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"> </span><br></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"> </span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 January 2018 at 12:08, Lingxian Kong <span dir="ltr"><<a href="mailto:anlin.kong@gmail.com" target="_blank">anlin.kong@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 dir="ltr"><div class="gmail_default"><font face="trebuchet ms, sans-serif">I edited the topic just for attention.</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">However, the new kubernetes client version breaks the services that's using oslo.service which relies on eventlet library. Some error logs below:</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default"><font face="trebuchet ms, sans-serif">(Pdb) n</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">> /vagrant/qinling/qinling/<wbr>orchestrator/kubernetes/<wbr>manager.py(49)__init__()</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">-> client = api_client.ApiClient(<wbr>configuration=config)</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">(Pdb) n</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">Exception in thread Thread-2:</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">Traceback (most recent call last):</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> File "/usr/lib/python2.7/threading.<wbr>py", line 801, in __bootstrap_inner</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> self.run()</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> File "/usr/lib/python2.7/threading.<wbr>py", line 754, in run</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> self.__target(*self.__args, **self.__kwargs)</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> File "/usr/lib/python2.7/<wbr>multiprocessing/pool.py", line 325, in _handle_workers</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"> while thread._state == RUN or (pool._cache and thread._state != TERMINATE):</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">AttributeError: '_MainThread' object has no attribute '_state'</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">I did a google search, found this: <a href="https://github.com/eventlet/eventlet/issues/147" target="_blank">https://github.com/<wbr>eventlet/eventlet/issues/147</a></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">multiprocessing.pool was introduced since 4.0.0 (threading lib was used before)<br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">I assume this is an backward incompatible change.</font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">Any suggestion?</font></div></div><div class="gmail_extra"><br><div><div class="m_-8511847099132040310gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Cheers,<br>Lingxian Kong (Larry)</font></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Dec 13, 2017 at 10:41 PM, Eyal Leshem <span dir="ltr"><<a href="mailto:ey.leshem@gmail.com" target="_blank">ey.leshem@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 dir="ltr">Hi <span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Lingxian, </span><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">It's should - under the assumption of uses only the v1 models ( and not v1_alpha or v1_beta). </span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">see : <a href="https://kubernetes.io/docs/reference/api-overview/" target="_blank">https://kubernetes.io/docs/r<wbr>eference/api-overview/</a></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">thanks , </span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">leyal </span></font><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif"> </span><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif"> </span></div></div><div class="m_-8511847099132040310HOEnZb"><div class="m_-8511847099132040310h5"><div class="gmail_extra"><br><div class="gmail_quote">On 13 December 2017 at 11:16, Lingxian Kong <span dir="ltr"><<a href="mailto:anlin.kong@gmail.com" target="_blank">anlin.kong@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 dir="ltr"><div style="font-family:monospace,monospace">hi, leyal,</div><div style="font-family:monospace,monospace"><br></div><div style="font-family:monospace,monospace">I suppose the upgrade is backward compatible, right?</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-8511847099132040310m_-7217814516362332269m_-3796298632269309548gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><br>Cheers,<br>Lingxian Kong (Larry)</font></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="m_-8511847099132040310m_-7217814516362332269h5">On Wed, Dec 13, 2017 at 8:51 PM, Eyal Leshem <span dir="ltr"><<a href="mailto:ey.leshem@gmail.com" target="_blank">ey.leshem@gmail.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="m_-8511847099132040310m_-7217814516362332269h5"><div dir="ltr">Hi all ,<div><br></div><div>In order to use kubernetes client that support network-policies , </div><div>we plan to upgrade the python kubernetes package from 1.0.0 to 4.0.0. </div><div><br></div><div>any objections ? </div><div><br></div><div>thanks, </div><div>leyal </div><div><br></div><div>clarification: </div><div>The purposed changed is for kubernetes-python-client - that called just "kubernetes" in pypi</div></div>
<br></div></div>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br></div>