Merge "Do not raise invalid message when port does not exist"

This commit is contained in:
Zuul 2018-10-23 11:24:14 +00:00 committed by Gerrit Code Review
commit ed14fce844

View File

@ -1715,6 +1715,9 @@ def servers_update_addresses(request, servers, all_tenants=False):
networks = list_resources_with_long_filters(
network_list, 'id', frozenset([port.network_id for port in ports]),
request=request)
except neutron_exc.NotFound as e:
LOG.error('Neutron resource does not exist. %s', e)
return
except Exception as e:
LOG.error('Unable to connect to Neutron: %s', e)
error_message = _('Unable to connect to Neutron.')