Remove useless host parameter in virt

For host api, there are useless host params for
host_power_action and set_host_enable virt API,
this patch removes the useless host params.

Change-Id: I556278fc426a800f108da9129e42175da32dac49
Fix live migration api stuck when migrate to old nova node

Commit bc45c56f102cdef58840e02b609a89f5278e8cce disable instance
live migration between different verison node. If the two nodes
with different rpc version, will raise exception
LiveMigrationWithOldNovaNotSafe. But this exception didn't catch
as expected exception, that make the instance status stuck at
migrating. This patch add LiveMigrationWithOldNovaNotSafe as
expected exception.

Change-Id: I1dcee9181fd0ef293628b30766112f00792796ab
Closes-Bug: #1377644
Fix circular reference error when live migration failed

When unexpected exception raised in live migration, the MigrationError
carry another original exception in it. But when oslo.message
serialize the exception, the circular reference error happended. This
patch just pass the exception as unicode string into MigrationError.

Change-Id: I4e449baae74bd9a15490ae7accbd2103bae90d57
Related-Bug: #1377644
object-ify flavors api and compute/api side of RPC

This change converts flavors to use objects instead of direct database
access. The rpcapi primitivizes objects before they go over the wire.

The flavors.add_flavor_access() and flavors.remove_flavor_access()
functions were also removed as flavor object add_access() and
remove_access() should be used instead.

Related to blueprint kilo-objects

Change-Id: I86432720b600e479d8d8b7f7531a2c85ab364319
Share migrations unit test between V2 & V2.1

This patch share unit tests of migrations between V2 & V2.1

Partially implements blueprint v2-on-v3-api

Change-Id: If3a2d745933a5bf2b77c852be0652fb10246d0fa
Virt: update spawn signature to pass instance_type

This patch updates the spawn method to receive the instance type
as input. This will save database calls when spawning instances.

This is due to the fact that a number of the virt drivers are now
reading the flavor extra specs. There is no need to access the
database to get this information.

An example of where this will be used is
commit af4ec4ccb1ce5e635171c1d4b39f37fe0a5ccc34.

Change-Id: Ieebfcbc2478ba8d7036c1af30efbbf640aa7df73
Key manager: ensure exception reason is translated

Add missing translations to exceptions.

Change-Id: Id3ec185ab96693ce0b4f5c21e5a66e665959ad34
Remove duplicated code in services api integrated test case

There are some duplicated fake test code in v2.1 services integrated
test case.

Change-Id: I727987f07d72e60b17eaaeddde1bb51e17bf3109
Merge "Virt: update spawn signature to pass instance_type"
Merge "Remove useless host parameter in virt"
Merge "Fix live migration api stuck when migrate to old nova node"
Merge "Remove duplicated code in services api integrated test case"
Merge "Fix circular reference error when live migration failed"
Merge "object-ify flavors api and compute/api side of RPC"
Adds host power actions support for Hyper-V

This patch introduces host power off and host reboot
support for the Nova Hyper-V driver.

Startup cannot be supported as the driver runs on the
host itself.

Implements: blueprint hyper-v-host-power-actions

Change-Id: I86ca35ff2527f643d72fb949870da69ce63277ae
Merge "Share migrations unit test between V2 & V2.1"
Merge "Key manager: ensure exception reason is translated"
Merge "Adds host power actions support for Hyper-V"