<div dir="ltr">In fact, nova should be careful about changing number of retries for neutron client.<div>It's known that under significant load (people test serial VM creation) neutron client may timeout on POST operation which does port creation; retrying this again leads to multiple fixed IPs assigned to a VM</div>
<div><br></div><div>Thanks,</div><div>Eugene.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 28, 2014 at 12:09 AM, Kyle Mestery <span dir="ltr"><<a href="mailto:mestery@noironetworks.com" target="_blank">mestery@noironetworks.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not aware of any such change at the moment, no.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, May 27, 2014 at 3:06 PM, Paul Ward <<a href="mailto:wpward@us.ibm.com">wpward@us.ibm.com</a>> wrote:<br>
> Great! Do you know if there's any corresponding nova changes to support<br>
> this as a conf option that gets passed in to this new parm?<br>
><br>
><br>
><br>
> Kyle Mestery <<a href="mailto:mestery@noironetworks.com">mestery@noironetworks.com</a>> wrote on 05/27/2014 01:56:12 PM:<br>
><br>
>> From: Kyle Mestery <<a href="mailto:mestery@noironetworks.com">mestery@noironetworks.com</a>><br>
>> To: "OpenStack Development Mailing List (not for usage questions)"<br>
>> <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>,<br>
>> Date: 05/27/2014 02:00 PM<br>
>> Subject: Re: [openstack-dev] [neutron] Supporting retries in neutronclient<br>
><br>
><br>
>><br>
>> On Tue, May 27, 2014 at 12:48 PM, Paul Ward <<a href="mailto:wpward@us.ibm.com">wpward@us.ibm.com</a>> wrote:<br>
>> > Currently, neutronclient is hardcoded to only try a request once in<br>
>> > retry_request by virtue of the fact that it uses self.retries as the<br>
>> > retry<br>
>> > count, and that's initialized to 0 and never changed. We've seen an<br>
>> > issue<br>
>> > where we get an ssl handshaking error intermittently (seems like more of<br>
>> > an<br>
>> > ssl bug) and a retry would probably have worked. Yet, since<br>
>> > neutronclient<br>
>> > only tries once and gives up, it fails the entire operation. Here is<br>
>> > the<br>
>> > code in question:<br>
>> ><br>
>> > <a href="https://github.com/openstack/python-neutronclient/blob/master/" target="_blank">https://github.com/openstack/python-neutronclient/blob/master/</a><br>
>> neutronclient/v2_0/client.py#L1296<br>
>> ><br>
>> > Does anybody know if there's some explicit reason we don't currently<br>
>> > allow<br>
>> > configuring the number of retries? If not, I'm inclined to propose a<br>
>> > change<br>
>> > for just that.<br>
>> ><br>
>> There is a review to address this in place now [1]. I've given a -1<br>
>> due to a trivial reason which I hope Jakub will address soon so we can<br>
>> land this patch in the client code.<br>
>><br>
>> Thanks,<br>
>> Kyle<br>
>><br>
>> [1] <a href="https://review.openstack.org/#/c/90104/" target="_blank">https://review.openstack.org/#/c/90104/</a><br>
>><br>
>> ><br>
>> > _______________________________________________<br>
>> > OpenStack-dev mailing list<br>
>> > <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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>
>> ><br>
>><br>
>> _______________________________________________<br>
>> OpenStack-dev mailing list<br>
>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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>
>><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</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>
</div></div></blockquote></div><br></div>