commit 768887b6fcc72e30fb9fa58d817a1b5c56203e4a
Author: Matt Riedemann <email address hidden>
Date: Sun Dec 6 06:51:11 2015 -0800
neutron: only get port id when listing ports in validate_networks
The validate_networks method is called from the compute API before
casting off to build instances. If the project has a lot of ports, the
list call to neutron can be slow, so we should optimize this method as
much as possible. One way to do that is rather than get the port details
back, we just get the id since all we care about is the number of ports
assigned to the project.
Reviewed: https:/ /review. openstack. org/253931 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=768887b6fcc 72e30fb9fa58d81 7a1b5c56203e4a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 768887b6fcc72e3 0fb9fa58d817a1b 5c56203e4a
Author: Matt Riedemann <email address hidden>
Date: Sun Dec 6 06:51:11 2015 -0800
neutron: only get port id when listing ports in validate_networks
The validate_networks method is called from the compute API before
casting off to build instances. If the project has a lot of ports, the
list call to neutron can be slow, so we should optimize this method as
much as possible. One way to do that is rather than get the port details
back, we just get the id since all we care about is the number of ports
assigned to the project.
Closes-Bug: #1521788
Change-Id: Icddba161112526 dde23184ee80ad5 cb60fe66cc6