Comment 4 for bug 1521788

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/253931
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=768887b6fcc72e30fb9fa58d817a1b5c56203e4a
Submitter: Jenkins
Branch: master

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.

    Closes-Bug: #1521788

    Change-Id: Icddba161112526dde23184ee80ad5cb60fe66cc6