Merge "Ensure pools recovery creates the right pool key."

This commit is contained in:
Zuul 2018-03-07 19:03:09 +00:00 committed by Gerrit Code Review
commit bdce1af317
1 changed files with 2 additions and 1 deletions

View File

@ -576,7 +576,8 @@ class NestedVIFPool(BaseVIFPool):
kuryr_subport = available_subports.get(subport['port_id'])
if kuryr_subport:
pool_key = (host_addr, kuryr_subport['project_id'],
tuple(kuryr_subport['security_groups']))
tuple(sorted(kuryr_subport['security_groups']))
)
if action == 'recover':
subnet_id = kuryr_subport['fixed_ips'][0]['subnet_id']