Fixed metadata validation err. Fixes bug 965102.

1. Fixed the error message on specifying invalid server metadata key/value.
2. Added check to disallow specifying blank metadata key.
3. Added unit test coverage.

Addressed review comments.

Change-Id: I1f0002971dc236045d6e622641f46a4a30249d54
QuantumManager will start dnsmasq during startup. Fixes bug 977759

Added _setup_network_on_host method, which calls update_dhcp
if quantum_use_dhcp is set.

Change-Id: I193212037873001a03da7b7a484f61a5c13b5de8
Port types and extra specs to volume api

 * Fixes bug 979089
 * Adds pollicy for new extensions
 * Fixes __init__ in testing directories
 * Cleans up existing volume types tests
 * Adds tests for type management
 * Adds tests for extra specs management
 * Removed unused Quota handling
 * Fixed typo in db volume_type_get

Change-Id: Ic80190ecf1d6d6ad0229e5af642a50c7c53bbbf9
Make rebuilds with an emtpy name raise BadRequest.

Fixes bug 973591

Change-Id: I87f189175c55a6922e7277857b85d526b9bfa6e1
Do not allow blank adminPass attribute on set password

Fixes bug 985263

Change-Id: I846248a4b8cb22fcaca9e51cc477813f80f6d602
Logging updates in IptablesFirewallDriver.

Update IptablesFirewallDriver so that it uses the debug log channel
when logging specifics about each firewall rule.

Fixes LP Bug #969545.

Change-Id: Ie50a3607fff17f032d577af8a87d5f4582bcc919
Include name being searched for in exception message

Otherwise, it's not always clear what was happening while looking at
logs. Also, remove unused instance kwarg, this isn't a logging call.

Change-Id: Ib1be2d7ed5b3c658dc2a3ac4094b812ba95a5d3c
support a configurable libvirt injection partition

This is useful if all guest images have the same structure,
and the root partition is not the first partition.

This is also handy to enable inspection in libguestfs,
which can handle disparate and complicated image layouts.

In future we may change to a StrOpt to support
searching by partition label.

Change-Id: Ie94d61bec8fe4b41d6d2d6d3efa9a4364cf027fe
Remove unused variable

Change-Id: I80710b266d8bd089828996060a0746cd0a0fef01
Remove unused time keyword arg

It's not used anywhere, it aliases the imported time module and is
broken at best if given since we want to use the eventlet sleep
anyway (which is monkey patched into time.sleep)

Change-Id: I7322ab5b5526afd3c02f48eb85066570b556bb75
nova.virt.xenapi_conn -> nova.virt.xenapi.connection

This fixes a couple of references that were missed in the recent move

Change-Id: I653b8b85294838a39f9d805bef094938f692e7be
Removing XenAPI class variable, use session instead.

This is part of a series of refactoring which aim move towards using
functions instead of classes + classmethods within vm_utils and
volume_utils.

Change-Id: Id0d7d21a240dd3cbf2237d480dc23dfd4d8c0dc1
Use utils.save_and_reraise_exception

It's less code and also logs when exceptions gets dropping instead
of silently dropping them

Change-Id: I407049861b1a402549f58939b654d1760cdb2d26
Imported Translations from Launchpad

Change-Id: I5e60309271831ff54c9c72289aed2953308ec89c
Exclude xenapi plugins from pep8/hacking checks.

Fixes LP Bug #987055.

Change-Id: I7132b88c5e0a90b16d0f8e35df45b82e7991280f
allow power state "BLOCKED" for live migrations if using Xen by libvirt

fixes bug 985587

Change-Id: I7184dd639733a68f6b31e5e3e4311c7aa8d50220
Fixes bug 987335.

Revert bug introduced by commit a837f92e that removed
console_log from get_console_output()

Change-Id: I22a14b5f50c2df0486420b38137328ac87844c1f
Merge "Exclude xenapi plugins from pep8/hacking checks."
Merge "Remove unused variable"
Making `usage_from_instance` private.

This reduces the surface area of usage notifications down to just
`compute_utils.notify_about_instance_usage`, making future refactoring
easier.

Change-Id: If70aff191c0135c1883c39c9783f5c8433953a4e