]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix 404 error fetching metadata when using DVR
authorarmando-migliaccio <armamig@gmail.com>
Wed, 6 Aug 2014 17:13:32 +0000 (10:13 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Tue, 12 Aug 2014 19:26:31 +0000 (12:26 -0700)
commit338171c114743c0e03def04ef551231f0d9c93f8
treea2656c09e285c72fc5197c2f473e81619ddd1cd1
parentc417c63e1b6c489b282dadd60ef7ef7832ea1349
Fix 404 error fetching metadata when using DVR

The metadata agent was unable to find networks
attached to the DVR router because it was only
filtering ports for 'centralized' routers.

To fix the issue, this patch expands the search
filters to include DVR router interfaces during
the network lookup operation.

The extra filter cause no evident performance
loss while serving the request; a different
approach would require to pass the router type
around to narrow down the search filter, but it
sounds like an overkill.

Closes-bug: #1353271

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