make neutron-ns-metadata-proxy configurable

Introduced a new configuration parameter for DHCP and L3 agent
to be able to set the path of the metadata socket to be used
by neutron-ns-metadata-proxy when started inside the DHCP or L3
agent. Also moved the configuration parameter of the
neutron-ns-metadata-proxy to the CLI parameters.

fixes bug #1202628

Change-Id: I3b1aa72b4e06c00f7fed152f0ee03d52b6bbc279
Remove global DB_ENGINE from Neutron

Related-Bug 1207402

This global is not used anymore as it's been replaced by a similar
global variable in neutron/openstack/common/db/sqlalchemy/session.py

Change-Id: Id4614069af490020d18f14011853787930076e0a
Handle nvp default l3 gw service misconfiguration appropriately

Bug 1185885

Avoid returning an unrelated, backend-specific, error message to
the user, and ensure the logical router is removed from the
NVP backend.

Change-Id: I5f7b88480dab80a2138486e612e144b971691cf5
Remove long db transaction for metadata access network

Bug 1204277

Removes nested transactions wrapping plugin ops, and adds
rollback code where required.
Also ensures NeutronPlugin.py does not attempt to remove router
ports twice.

Change-Id: I299d4ed688a70b6dff506c999355661cf783ae26
Fixes files with wrong bitmode

Some modules have bitmode 755. Changed to 644

Change-Id: Ic91854ac2b46cb8c9b46eb575f5cfb9cce056670
Do not call remove_router_lport in remove_router_interface

Bug 1211149

The call will cause a failure as the router port is already removed
by _nvp_delete_router_port.
This patch also add the support on the fake nvp api client to verify
this kind of condition.

Change-Id: Ieb5ca5c239ccc993b96dd5bad0b412211b45417e
Restore Babel to requirements.txt

Babel is needed by code synced in from oslo-incubator, namely
neutron.openstack.common.gettextutils.

Fixes bug #1212135

Change-Id: I7f490fb8cf9a4fcba1711cf464f934d60d6d435e
Returns 503 if the NVP cluster is in maintenance mode

If the NVP cluster is in 'readonly-mode' during a maintenance
window, some NVP operations may raise a Forbidden error. This
is not currently handled correctly, and Neutron server ends up
returning 500. This patch addresses the problem by ensuring
the right error code is returned.

Fixes bug 1204715

Change-Id: Ibd2cac8286a0978a95f9006142c2a405053dfa00
Mock os.makdirs to avoid directory creation in unit tests

The directory 'dhcp' under neutron state path should not be
created during unit tests. This patch mocks up calls to
os.makedirs and ensures that methods that rely on it, like
_populate_network_cache, are mocked as well.

Fixes bug #1211952

Change-Id: I83998d4e631b1ebeab90b4c3c0276aa2ffe22c50
Imported Translations from Transifex

Change-Id: I45fe5fe57b916f9db7daa89f2af00300ef33ce57
Merge "Restore Babel to requirements.txt"
Unify exception thrown in l3-agent-scheduler fails

Since you can only attach a single l3 agent to a router, when you try
to add another l3 agent to a router that already have one, the l3
agent scheduler raises an exception.

This fix removes the discrimination by id: either it is the same agent
or another one, the router can not be hosted and the same exception is
raised.

Change-Id: If832bbd4bf17e4e0c4720172aded4c9fffedc6fc
Fixes: bug #1154622
Fixes typos in comments

Correct some spelling mistakes in comments.
l3_db.py
db_base_plugin_v2.py

Change-Id: I79f2b1b1935ca3805bb1c90c09e5d16f32b165ae
Merge "Fixes typos in comments"
Merge "Imported Translations from Transifex"
Include PLUMgrid plugin in some alembic migration files

Fixes bug# 1210348

Change-Id: I8d33d2c8f0849afdd3ebda5297b4064858132c9b
Merge "Mock os.makdirs to avoid directory creation in unit tests"
Fixes Windows setup dependency bug

Fixes bug: #1212385

The neutron project includes a setup hook that allows to dinamically
include setup dependencies.

Due to recent changes in the pbr project, the hook raises an exception
on Windows, which ends the setup process.

This fix solves the issue by adapting the hook to the recent pbr changes.

Change-Id: I4b00d74d23a7167a10ba86458943ff16ca51b0db
Merge "Do not call remove_router_lport in remove_router_interface"
Merge "Remove long db transaction for metadata access network"