Merge "Fix number of ports requested on pool pre-population"

This commit is contained in:
Zuul 2021-02-12 18:24:33 +00:00 committed by Gerrit Code Review
commit 706c8fdb73
1 changed files with 2 additions and 2 deletions

View File

@ -1111,8 +1111,8 @@ class NestedVIFPool(BaseVIFPool):
# NOTE(ltomasbo): If the amount of nodes is large the repopulation
# actions may take too long. Using half of the batch to prevent
# the problem
num_ports = max(oslo_cfg.CONF.vif_pool.ports_pool_batch/2,
oslo_cfg.CONF.vif_pool.ports_pool_min)
num_ports = int(max(oslo_cfg.CONF.vif_pool.ports_pool_batch/2,
oslo_cfg.CONF.vif_pool.ports_pool_min))
self.force_populate_pool(trunk_ip, project_id, subnets,
security_groups, num_ports)