Set the image_meta for the instance booted from a volume

If the VM is booted from a volume, image_meta should be retrieved from the field
volume_image_metadata in volume.

Fixed Bug 1191069.

Change-Id: I4df185ab5eeb819327606163565501c845411a7e
Personality files can be injected during server rebuild

Injected files are ignored during a server rebuild, this patch fixes
this issue.

Fixes: bug #1187629

Change-Id: I5e7776de07c8513e36c2926b1fc58c66b382a5ec
Handle NeutronClientException in secgroup create

When networking is provided by Neutron and a security group or a security group
rules quota is exceeded, we get a NeutronClientException with status_code 409
and message "NeutronClientException: Quota exceeded for resources"

This patch updates the neutron security group driver to handle this exception
and translate it to nova's SecurityGroupLimitExceeded

test_neutron_driver is also updated to provide unit tests for this patch

Change-Id: I0fa57b02694221507885ab4bfdb5805e936450e2
Fixes: bug #1209446
Port disk_config API to v3 Part 2

This patch contains the changes required to adapt the agent
extension and the corresponding unittest to the v3 framework.
Moves the commented out tests from the v3 version of test_servers
to the user data extension unittests.

Partially implements: bp v3-api-extension-versioning
Partially implements blueprint nova-v3-api

Change-Id: I7eef3ba18d7cc36c1ef78d093f50fd9122ac26c7
Demote personalities from core of API v3 as extensions os-personality

This patch move 'personality' from core into extensions.
* demote personality the attribute of server from servers
* add corresponding tests
* move some tests about personality from test_servers to test_personality

Partially implements blueprint nova-v3-api

Change-Id: I62254a94476271b1d8bcc206dfda1236f155960b
Refactor integrated tests to support V2 and V3 API testing

Refactors the integrated test classes so they can be used
for both V2 and V3 API testing. No actual V3 testing is
added in this changeset.

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: Ic7d7b513c3bc19ac1962c0a8489b55e9685fb7c0
Offer a paginated version of flavor_get_all

Implements nova.compute.flavors.get_all_flavors_sorted_list to
optimise get_all_flavors.

Fixes: bug #1028494
Change-Id: Ie0406c1d4b47a51473979910c0908b153497d503
Add passing a logging level to processutils.execute

Previously, processutils.execute always logged what commands were
run at DEBUG level.  This is usually fine, but sometimes the caller
wants to log particularly important commands at INFO level instead,
and oslo should allow that.

This is oslo-incubator aa5b65882.  No other significant changes had
been made to processutils in oslo since the last sync.

Change-Id: I09dad3759bf2f759b297ee19205cf0460b9a6baa
Add migration with missing fkeys

There are few ForeignKeys that had been skipped in migrations
and declared in models.
This patch adds these relationships into db by new migration.

bp: db-sync-models-with-migrations

Change-Id: I63e6a853ec16b80ea52b1c0e8a94f8f60819312c
Fix project_user_quotas_user_id_deleted_idx index

The project_user_quotas_user_id_deleted_idx index in the 203 migration
for the project_user_quotas table was using the wrong column, it should
be using user_id instead of project_id since there is already an index
for the project_id column (defined directly above it).

Fixes bug 1205693

Change-Id: I6899afe5b57432345f69b4ee91ef947a4b9ef5c9
Merge "Refactor integrated tests to support V2 and V3 API testing"
Merge "Fix project_user_quotas_user_id_deleted_idx index"
Don't pass RPC connection to pre_start_hook

In review I5bf7795fca21627566ef4f688d45dc83bb953d1b (commit 3349417) we
passed an rpc_connection argument to pre_start_hook() so that we could
create additional queues.

See review Idf12c418a8ce1bc873e7ad6f702351e95d31aca3 for how this was
intended to be used. With oslo.messaging, we'd support doing something
like this by adding support for multiple targets to RPCServer since the
concept of a messaging connection isn't really exposed by the API in
quite the same way.

In any case, this rpc_connection parameter has never been used since it
was introduced, so let's remove it. Let's also move the invocation of
this hook back to where it originally was.

blueprint: oslo-messaging
Change-Id: I9181a3567a1b5a8a6077e78c85f4d28660f275a6
Add Migration object

This adds a migration object implementation and tests.

Related to blueprint compute-api-objects

Change-Id: Iec0e45f4768cf3fc2f31c1c23c1aadfdefefa797
Merge "Add passing a logging level to processutils.execute"
Merge "Handle NeutronClientException in secgroup create"
Merge "Personality files can be injected during server rebuild"
Merge "Add Migration object"
Merge "Don't pass RPC connection to pre_start_hook"
Merge "Set the image_meta for the instance booted from a volume"