Reviewed: https://review.openstack.org/252659 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=bf027800f7badf547681d64e124b60523712b4be Submitter: Jenkins Branch: master
commit bf027800f7badf547681d64e124b60523712b4be Author: Matt Riedemann <[email protected]> Date: Wed Dec 2 13:54:50 2015 -0800 neutron: only list ports if there is a quota limit when validating The list_ports call can take awhile if the project has a lot of ports. If it turns out that there is unlimited quota, then we don't even need to list the ports, so move that after the show_quota call. Partial-Bug: #1521788 Change-Id: I4d128f182283ffa4479934f640a67d9c536824b5 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1521788 Title: nova.network.neutronv2.api.validate_networks could be smarter when listing ports Status in OpenStack Compute (nova): Fix Released Bug description: There are two things we can do to make this more efficient: https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L1182 1. Move the list_ports call after the unlimited quota check - if the quota is unlimited, we don't need to list ports. 2. Filter the list_ports response to only return the port id, we don't need the other port details in the response since we don't use those fields, we're just getting a count. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1521788/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

