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 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
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
Validate min_ram/min_disk on rebuild.

Update compute API rebuild function so that it checks min_ram
and min_disk on the specified image.

Fixes LP Bug #919367.

Change-Id: Ifa38b303656709e537fa6e4e729f39715f23f552
Removes unnecessary code in _run_instance.

* Remove _is_instance_terminated and _shutdown_instance_even_if_deleted
  since run/terminate instance is synchronized.
* Avoid potential deadlock.
* Fixes bug 981316.

Change-Id: I4fe7e2ea00b85d9e0802fe93655e67db3909e86b
Merge "Logging updates in IptablesFirewallDriver."
Scope coverage report generation to nova module.

Coverage report generation was not using --include filters.
This resulted in generating a report that included all external
dependencies. Some of these may include problematic characters for
utf8 decoding. In the odd case this was found, coverage would fail
with a UnicodeDecodeError.

Fixes bug #987077.

Change-Id: I276698e65ac1037972209a406058168433cd826b
Merge "Remove unused time keyword arg"