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
fix bug 982360, multi ip block for dmz_cidr

Change-Id: I289110e70e3336704ffff24f1887669c11a559b9
Updated instance state on resize error.

Fixes bug 980685.
Set instance vm_state to ERROR if network node down during resize.

Change-Id: I2e2f7a98be4b2edfc7d51a4d8d9e31b7b418f2ba
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
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
Imported Translations from Launchpad

Change-Id: I5e60309271831ff54c9c72289aed2953308ec89c
Implements EC2 DescribeAddresses by specific PublicIp.

Fix bug 988189 and add a test case to verify.

Change-Id: I653c29cd99feee8d811c9f64dd280b6f49a5262c
Refactor nova.rpc config handling.

This patch does a couple of things:

1) Remove the dependency of nova.rpc on nova.flags.  This is a step
toward decoupling nova.rpc from the rest of nova so that it can be moved
to openstack-common.

2) Refactor nova.rpc so that a configuration object is passed around as
needed instead of depending on nova.flags.FLAGS.

This was done by avoiding changing the nova.rpc API as much as possible
so that existing usage of nova.rpc would not have to be touched.  So,
instead, a config object gets registered, cached, and then passed into
the rpc implementations as needed.  Getting rid of this global config
reference in nova.rpc will require changing the public API and I wanted
to avoid doing that until there was a better reason than this.

Change-Id: I9a7fa67bd12ced877c83e48e31f5ef7263be6815
Add instance to log messages.

Change-Id: I53b166c7f53c0094951cb13ed8942e0b7bbb8b55
Add instance logging to vmware_images.py

Change-Id: I92e81d777b4e866abbbc2f8b5d173089bfe48b52
Make the filename that image hashes are written to configurable.

This is a baby step towards storing more than just a checksum in
these files. The specific use case is I need to store whether or
not the image was prefetched in here as well.

Change-Id: Ia1d67ac1ac766f22c6ecb814182150a789c91095
Introduced _atomic_restart_dhcp() Fixes Bug 977875

Introduced a new method which executes update_dhcp_text_file
and restart_dhcp as one atomic unit - to avoid race between these
steps.

Change-Id: I6fda9fbfcaf59fa6a4859b361574d98e16331882
Disallow network creation when label > 255. Fixes bug 965008

Added length check for label. Without length check,
label is truncated. Warning is shown by sqlalchemy layer.

Raise an InvalidInput exception when validation fails (like
rest of the surroudning code)

Change-Id: Iae517e03099e36f1c00f4742049834a9231a2fff
Make updating hostId raises BadRequest.

fixes bug 944028

Change-Id: I563f51dd7afea1d0a9c7391c9e641e7c8c493216
Fixes bug 983024

enable_dhcp, kill_dhcp and update_dhcp calls are sent to remote
nova-network, when a network is not associated with current host.

Change-Id: If7c7c6e58700cc171a8f56669e6455037df7f7e7
Improvement for the correct query extraction.

Change-Id: I6bf318dc42e9bc1cebb94a7d1c561b3e89ae6ec5
Fix 986922

Fix typo in nova/network/manager.py

Change-Id: I4fdb2f08a9d4ee8a1056267b50aa27c3201b4d7a
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add a force_config_drive flag

Config drive can currently only be requested via the API.  That
doesn't play nice with horizon, and requires the caller to know
what the image expects.

Currently, only None or 'always' are documented (although any
value is treated as 'always').  I expect we'll want 'never',
'byimage' etc in future.

Bug #988556

Change-Id: I895a6a9fd3e6395bb00f54f26531b6faf0c9f4f1
Use instance_get_by_uuid since we're looking up a UUID

Change-Id: I60869ace0890dcef887a7984e41abd9cf16ea9e3