Improve performance when list instances with IP filter
When list instances with IP filter, there is no need
to try to get instances from BuildRequest, as building
instances will not have IP address. Skip this db call
can slightly improve performance.
Closes-Bug: #1764685
Change-Id: Ic02206e887e3fea7752d615bbed680510c482097
(cherry picked from commit a3a94cf4ec3c0e41ab2a8a66dfc0e7adca2d2a8e)
Reviewed: https:/ /review. openstack. org/563972 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=bc8c188fc18 90d80a1b85866b3 d31f51f0aceb38
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit bc8c188fc1890d8 0a1b85866b3d31f 51f0aceb38
Author: Kevin_Zheng <email address hidden>
Date: Wed Jan 31 16:52:53 2018 +0800
Improve performance when list instances with IP filter
When list instances with IP filter, there is no need
to try to get instances from BuildRequest, as building
instances will not have IP address. Skip this db call
can slightly improve performance.
Closes-Bug: #1764685
Change-Id: Ic02206e887e3fe a7752d615bbed68 0510c482097 1ab2a8a66dfc0e7 adca2d2a8e)
(cherry picked from commit a3a94cf4ec3c0e4