XenAPI: Support local connections

Currently there is no way to connect to XAPI through the unix socket,
requiring a URL and credentials.

This change allows you to run in dom0 (particularly in xenserver-core
environments) and connect to XAPI using the unix domain socket by
specifying "unix://local"
DocImpact

Change-Id: I3d5ace31c9c0411fa711cfdf87383d36f61bfa4a
XenAPI: Return platform_version if no product_version

Nova now requires a version to be set.  In the case of xapi-XCP/xenserver-core
no product_version exists, so use the platform_version instead.

Fixes bug 1206948

Change-Id: I4d6008216075716c8b969493b7a2ccb7713f755d
XenAPI: Generic Fake.get_all_records_where implementation

Tests were incorrectly passing due to bad implementations.

Note that link to xenserver-core blueprint is due to patch following this
change

Implements blueprint xenserver-core

Change-Id: I051877551611e001295403af8369bcc97c8ba0fb
XenAPI: SR location should default to location stored in PBD

This value must be read from the PBD as it may change for different
installations.  The existing default is preserved as a fallback
for the cases where a PBD path is not set.

Implements blueprint xenserver-core

Change-Id: I055ebe8d7d79f238b0b9565277acac945bbe12e1
Fix unicode key of azcache can't be stored to memcache

The memcache library we are using assumes all strings passed to
it are plain ascii, so we need to convert unicode to string.

Fix bug #1212164

Change-Id: Ibf36e6b096893cb9f056371bb43cbb441cae6e32
maint: remove redundant disk_cachemode validation entry

* nova/virt/libvirt/driver.py (LibvirtDriver.__init__):
Remove a redundant duplicate entry, which would just
slow checks down slightly.

Change-Id: I7b5f7bf2cb00a45f88dbd3e3b6b4e339af49c8d8
Merge "Stub out net API sooner in servers API test"
Merge "Stubout deallocate_for_instance() in compute tests"
Merge "Stubout reserve_block_device_name() in test"
Merge "Updates tools/config/README"
Merge "Fix get_diagnostics() test for no compute consumer"
Merge "Fix live migration test for no scheduler running"
Stub out setup_networks_on_host() in compute tests

If we time out call()s in the fake RPC driver when there are no
consumers for a topic, lots of tests fail when we attempt to call()
out to the network service to do setup_networks_on_host().

blueprint: oslo-messaging
Change-Id: I62f855f111c5f69a676e8e3747a9894847d5d27d
Fix rpc calls on pre/post live migration tests

If we time out call()s in the fake RPC driver when there are no
consumers for a topic, lots of tests fail when we attempt to call()
out to the compute service to do pre_live_migration().

Also use the same method to mock out some post_live_migration() calls
which are currently done a pretty awkward way.

blueprint: oslo-messaging
Change-Id: Ifb1675cfbc3c6a325f0a3d2d130268561342001e
Fix confirm_resize() mock in compute tests

Looks like this intended to mock out confirm_resize() but forgot a
crucial bit. If we time out call()s in the fake RPC driver when there
are no consumers for a topic, the test_delete_in_resized() test fails
because of this.

blueprint: oslo-messaging
Change-Id: Iedc540170f6df29050764f497afa1ba07fed997a
Stub out instance_fault_create() in compute tests

Without this, if we time out call()s in the fake RPC driver when there
are no consumers for a topic, the test_swap_volume_volume_api_usage()
test fails because of this.

blueprint: oslo-messaging
Change-Id: Ied223370769da19c01356673d2f2751fb83af328
Stub out get_console_topic() in test_create_console

Without this, if we time out call()s in the fake RPC driver when there
are no consumers for a topic, then the test just fails.

blueprint: oslo-messaging
Change-Id: Ic085909711b19a05dedb0d7bafbd019bb0448212
Fix network manager tests to use correct network host

Without this, if we time out call()s in the fake RPC driver when there
are no consumers for a topic, then the test fails when it tries to call
_disassociate_floating_ip() on a non-existent host.

blueprint: oslo-messaging
Change-Id: I99c9c75c07145a60b43701826fb680a346ec955f
Fix spice/vnc console api samples tests

Start the consoleauth service, otherwise authorize_console() will fail
if we start timing out call()s in the fake RPC driver when there are no
consumers for a topic.

blueprint: oslo-messaging
Change-Id: Ieee37a0370c0b548c589a0573e6e8a68e10a6fdc
Merge "Add new compute method for building an instance"