neutron API list calls taking lot of time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned | ||
Grizzly |
Invalid
|
High
|
Salvatore Orlando | ||
Havana |
Invalid
|
High
|
Salvatore Orlando |
Bug Description
Neutron API calls are taking lot of time compared to nova or keystone service APIs.
In our deployment - its considerable that we had to increase neutron_url_timeout in nova.conf to 120s. Required for nova list to succeed.
In our analysis we found that DB access was quick enough but considerable time spent in the following code
https:/
Here is the code for reference
if do_authz:
# FIXME(salvatore
# other resources. Must check authZ on them too.
# Omit items from list that should not be visible
There is a clear comment from Salvatore to fix the above code.
# FIXME(salvatore
# other resources. Must check authZ on them too.
# Omit items from list that should not be visible
Need to fix it or improve the neutron API response time for list calls.
Commenting the above code improved in my devstack setup for port list to 6 seconds against 18 seconds for about 500 ports.
This issue is reproduced in Grizzly and I am sure it is an issue for Havana too.
summary: |
- neutron API calls taking lot of time + neutron API list calls taking lot of time |
Changed in neutron: | |
assignee: | Salvatore Orlando (salvatore-orlando) → Anirudh Vedantam (anirudh-vedantam) |
Changed in neutron: | |
assignee: | Anirudh Vedantam (anirudh-vedantam) → nobody |
We actually made a number of db related performance improvements in havana. Any chance you can try with the havana code base? I've run port-list with 100's of ports which return in a few seconds.