]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid RequestURITooLong exception in metadata agent
authorIlya Shakhat <ishakhat@mirantis.com>
Thu, 24 Jul 2014 11:14:26 +0000 (15:14 +0400)
committerIlya Shakhat <ishakhat@mirantis.com>
Thu, 24 Jul 2014 11:27:54 +0000 (15:27 +0400)
commite85ff2264e681308760f1c46e350f138582d2957
treebc647b8f147c2274b59a24d37a9e449cc45c5a12
parent1b621fc8a5651d47b4285fa193dda8b90350f002
Avoid RequestURITooLong exception in metadata agent

Length of API port query is proportional to number of networks
and may exceed URI limit. The solution is to query ports by
given ip address only and then filter them by network_id.

Closes bug 1348097

Change-Id: I2a87d6b215df380b24dd5ebb24947e8729f3f6fb
neutron/agent/metadata/agent.py
neutron/tests/unit/test_metadata_agent.py