Enable automatic validation of many HACKING rules.

 * Add hacking to the tox build - a set of flake8 plugins that
   perform automatic validation of many HACKING.rst rules.
 * This patch configures hacking in the tox build and performs
   the mechanical cleanup required to allow the checks to pass.
 * See https://pypi.python.org/pypi/hacking

Change-Id: Ie9b3eb5627a9b6dd181f79225abae422e6cf3777
Merge "Enable automatic validation of many HACKING rules."
Imported Translations from Transifex

Change-Id: Ia14f9917bece2fc7add0d389ef91f6611de7023a
Imported Translations from Transifex

Change-Id: I9ce7385c4134a5d81164b989d033e3fce8f158a4
Imported Translations from Transifex

Change-Id: I7aadfd763ee1904ad11fb5c4f82101f5a4e6dc5e
Imported Translations from Transifex

Change-Id: I9a7548f64384ab4f3e29f7313e7481df89ca5901
Imported Translations from Transifex

Change-Id: I80b2c702354f39b969109789b1c9ebdef619af25
Imported Translations from Transifex

Change-Id: I45916b14ecb7b0f613332128dcfd64ad727503f8
Changed DHCPV6_PORT from 467 to 547, the correct port for DHCPv6.

Fixes bug 1170160.

Change-Id: Ic5a4c0cc0ed016d83bde311a38924aa98bb45e11
Add string 'quantum'/ version to scope/tag in NVP

This patch adds scope='quantum', tag=QUANTUM_VERSION to each element
created in NVP via quantum. This patch also removes the function
set_tenant_id_tag() as it was only used in one place and wasn't very useful.

Fixes bug 1128674

Change-Id: I9f1f8e9b49154012a82d24e31cc9fb7f2df9c604
Imported Translations from Transifex

Change-Id: Ia6d5ab319da40342b72e9202c70239d7ba756f8b
Merge "Changed DHCPV6_PORT from 467 to 547, the correct port for DHCPv6."
Merge "Imported Translations from Transifex"
Remove locals() from strings substitutions

Fixes bug 1168988

Change-Id: Ifd1e7a027f16062ff35e777cf2d953f652a806a7
Imported Translations from Transifex

Change-Id: If69359e85c521da70870fbc19d6326e79001cbef
Update latest OSLO code

Change-Id: I804d1eae92e89740339546f0d0f490a3e4f21204
Merge "Remove locals() from strings substitutions"
Imported Translations from Transifex

Change-Id: I5ceeb67e2053d40d527859da22cc8853438eb654
Simplify delete_health_monitor() using cascades

Currently delete_health_monitor() emulates behaviour of
cascade deletion: when a HealthMonitor instance is deleted,
all corresponding PoolMonitorAssociations are queried and
deleted one by one. This can be done automatically by means
of SQLAlchemy if we set proper cascade flags on the relationship
between HealthMonitor and PoolMonitorAssociations models.

Fixes bug 1169107.

Change-Id: I674c381192719a56433f67be53a32203c36ebe2b
Make the 'admin' role configurable

Bug 1158434

This patch adds a new policy named 'context_is_admin' which defines
an admin user as a collection of roles or else. The quantum context
has been updated to check for this policy when setting the is_admin
flag.
This patch also adds a method for gathering 'admin' roles from policy
rules as current logic requires the context to be always populate with
the correct roles for admin rules, even when the context is implicitly
generated with get_admin_context or context.elevated.
Backward compatibility is ensuring by preserving the old behavior if
the 'context_is_admin' policy is not found in policy.json

Change-Id: I9acea75cca0c47e083a9149e358328ea3ca12d68