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
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
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
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"
Merge "Unify exception thrown in l3-agent-scheduler fails"
Merge "Fixes files with wrong bitmode"
Fixes typos in midonet_lib.py

Fixes bug #1212898

Change-Id: I688de064947b0079153bd3c5e5376e8b16a7d5c1
Imported Translations from Transifex

Change-Id: I2fa289226749646eb37c14dd8719e54584141a04
Bumps hacking to 0.7.0

Change-Id: Ibdb816cd2cb6a221236a8294808fd41b3e417570
Fix case error in qpid exchange name.  s/Direct/direct/

Fixes bug #1211338

(This is a minimal merge of just oslo-incubator bec54ac5 and
no other oslo changes.)

Change-Id: I129f9486f13be91868824e0e0534c4760d50589b