Merge "Add more logging on network conflicting"

This commit is contained in:
Zuul 2019-01-04 06:58:36 +00:00 committed by Gerrit Code Review
commit 049349b16f
1 changed files with 8 additions and 0 deletions

View File

@ -140,7 +140,15 @@ class KuryrNetwork(network.Network):
networks = objects.Network.list(
self.context,
filters={'neutron_net_id': network.neutron_net_id})
LOG.debug("network objects with 'neutron_net_id' as '%(net_id)s': "
"%(networks)s",
{"net_id": network.neutron_net_id,
"networks": networks})
docker_networks = self.list_networks(names=[network.name])
LOG.debug("docker networks with name matching '%(name)s': "
"%(networks)s",
{"name": network.name,
"networks": docker_networks})
if (networks and networks[0].network_id and
docker_networks and
networks[0].network_id == docker_networks[0]['Id']):