Use ConfigOpts.find_file() to locate policy.json

Use cfg's new helper method to find policy config file. The basic
behavior is "look alongside the config file" with a fall back to
the standard default config paths.

Change-Id: I763097107c53fc9b7d4e783ee92bf16989d92cff
fix bug 977007,make nova create correct size of qcow2 disk file.

when use live block migration,ephemeral disks with qcow2 format
should be created in the destination with the same virtual size
as before.

Change-Id: I5c5b1295bdb3e4dc281698eba38c5ce697aa9bc2
API does need new image_ref on rebuild immediately.

This restores the DB update for image_ref immediately on rebuild, but
passes the old image_ref to the manager for use with instance.exists
notification.

Fixes the fix for bug 997245

Change-Id: I8cf6a8759e8fe605bb023048a320b15eee3bcd80
Merge "fix bug 977007,make nova create correct size of qcow2 disk file."
Minor help text related changes

based on comments from https://review.openstack.org/#/c/7269
Removed duplicate declaration from test cases.

Change-Id: I090cd3ba0aa2ed3720223deea5e44cfe71682fe0
Update PostgreSQL sequence names for zones/quotas.

Fixes LP Bug #993667.
Fixes LP Bug #993669.

Change-Id: Ifcc33929ced617916bd6613fc941257494f4a99b
Merge "API does need new image_ref on rebuild immediately."
Added image metadata to compute.instance.exists

Added image metadata to compute.instance.exists notification.
This information is a convenience to assist billing/usage systems
by providing information about the image the instance was built
from.

Change-Id: I27e8c048ed419858ba2eb3e20c25ac454b0419b6
Merge "Minor help text related changes"
Merge "Added image metadata to compute.instance.exists"
Removed unused snapshot_instance method

Removed snapshot_instance method on base virt driver.  It is
essentially an unused duplicate of the snapshot method.

Change-Id: I082075d8d6797bd60072d375f3ce16704ff6351e
Merge "Use ConfigOpts.find_file() to locate policy.json"
Fix XenServer windows agent issue

Windows agent requires an argument of either 'agent' or 'xentools' to
the 'version' command.  All we care about is 'agent', so add it.  The
unix agent happily ignores the arg.

Fixes bug 997805

Change-Id: Ic369c8a2850173057da9d3175a02b5864d7a6514
Add base support for rpc API versioning.

Part of blueprint versioned-rpc-apis.

This commit includes the base support for versioned RPC APIs.  It
introduces the RpcProxy and RpcDispatcher classes that have common code
for handling versioning on the client and server sides, respectively.

RPC APIs will be converted one at a time using this infrastructure.

Change-Id: I07bd82e9ff60c356123950e466caaffdfce79eba
Add version to the cert rpc API.

Part of blueprint versioned-rpc-apis.

Change-Id: Iea00a2e82eef7ca7b3ffef438e81e5b4fcca7751
Add version to consoleauth rpc API.

Part of blueprint versioned-rpc-apis.

Change-Id: I9682bdbd06d744141b94385992b37cd2e55b8f5e
Add version to console rpc API.

Part of blueprint versioned-rpc-apis.

Change-Id: I17d6e3094c56d8628688dabdc8d40b2f4f815af4
Add version to scheduler rpc API.

Part of blueprint versioned-rpc-apis.

One side effect of this change was that nova.scheduler.api was removed
in favor of nova.scheduler.rpcapi.  In this case, the api was just a
direct wrapper around rpc usage.  For other APIs, I've been following
the pattern that the rpcapi module provides the rpc client wrapper, and
if any other client-side logic is needed, that's where an api module is
used.

Change-Id: Ibd0292936f9afc77aeb5d040660bfa857861eed1
WIP: Add version to compute rpc API.

Part of blueprint versioned-rpc-apis.

Change-Id: I5943d1fae2c96cfe519817b59098402481a1026b