nova should use quota_details neutron api to validate available ports before VM creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Originally reported at https:/
--
When nova creates a VM, it issues a request to fetch all ports for the project, which may take a significant time and even time out.
The code in https:/
Instead of fetching all IDs via get_ports, nova should attempt to use quota_details API that gives ready access to info on available ports:
Note that this is an API extension and was added later than the original `quota` API, so it may be that special care should be taken to accommodate to neutron-servers with no such extension.
Also, the extension seems to be controlled by the cfg.CONF.
config option: https:/
Which means that there may be an (upstream) configuration that would end up with quota_details API missing. So a fallback mechanism may be due.
Side note: it may be argued that neutron should not expose this config option in the first place. This bz doesn't attempt to address this request.
tags: | added: neutron |