<div dir="ltr">Hi Doug,<div><br></div><div>What would be the reason for such timeout? Based on my current test, it doesn't take more than few hundreds of milliseconds to return.</div><div><br></div><div>What I am trying to do is, </div><div><br></div><div>I have a Neutron extension that returns IP usage per subnet per network. It needs to support:</div><div><br></div><div>1. Return usage info for all networks (default if no filters specified)</div><div>2. Return usage info for one network id</div><div>3. Return usage info for several network ids. This can go up to 1000 network ids.</div><div><br></div><div>I have added similar comments to the existing implementation currently being reviewed: <a href="https://review.openstack.org/#/c/212955/16">https://review.openstack.org/#/c/212955/16</a></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 4:14 PM, Doug Wiegley <span dir="ltr"><<a href="mailto:dougwig@parksidesoftware.com" target="_blank">dougwig@parksidesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">It would have to be a POST, but even that will start to have timeout issues. An API which requires that kind of input is kind of a bad idea. Perhaps you could describe what you’re trying to do?<div><br></div><div>Thanks,</div><div>doug</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Jan 19, 2016, at 4:59 PM, Shraddha Pandhe <<a href="mailto:spandhe.openstack@gmail.com" target="_blank">spandhe.openstack@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Hi folks,<div><br></div><div><br></div><div>I am writing a Neutron extension which needs to take 1000s of network-ids as argument for filtering. The CURL call is as follows:</div><div><br></div><div><span style="font-family:Monaco;font-size:12px;background-color:rgb(243,243,243)"><font>curl -i -X GET '<a href="http://hostname:port/neutron/v2.0/extension_name.json?net-id=fffecbd1-0f6d-4f02-aee7-ca62094830f5&net-id=fffeee07-4f94-4cff-bf8e-a2aa7be59e2e'" target="_blank">http://hostname:port/neutron/v2.0/extension_name.json?net-id=fffecbd1-0f6d-4f02-aee7-ca62094830f5&net-id=fffeee07-4f94-4cff-bf8e-a2aa7be59e2e'</a> -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: cccccccccccccccccccccccccccccccc"</font></span></div><div><br></div><div><br></div><div>The list of net-ids can go up to 1000s. The problem is, with such large url, I get the "Request URI too long" error. I don't want to update this limit as proxies can have their own limits.</div><div><br></div><div>What options do I have to send 1000s of network IDs? </div><div><br></div><div>1. -d '{}' is not a recommended option for GET call and wsgi Controller drops the data part when routing the request.</div><div><br></div><div>2. Use POST instead of GET? I will need to write the get_<resource> logic inside create_resource logic for this to work. Its a hack, but complies with HTTP standard.</div><div><br></div></div></div></div>
__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" target="_blank">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<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></blockquote></div><br></div></div><br>__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>