don't clear the database dicts in the tearDown method

This is superfluous as the two dicts (self.engines and
self.test_databases) are re-initialised during setUp anyway and aren't
used in between

Change-Id: Icafa9bdf3b0193f31752e6104ecac0e49476c812
Map libvirt error to InstanceNotFound in get_instance_disk_info

When getting instance disk info, the instance may be destroyed/deleted, and a
libvirtError will be raised in XMLDesc method, so catching and mapping it to
InstanceNotFound and the caller can handle it correctly.

Fixes bug #1064581

Change-Id: I07fed3e82e10dad4cb84ae5c8650ada351c24e78
Add Compute API validations for block device map

This patch adds validations to return 400 BadRequest to
Create server(s) with block device mappings where appropriate
and related unit tests

Fixes bug 1094244

Change-Id: I778d3ed4b0871561774594e950ce98b6a1ecfcb9
XenAPI: Fix volume detach

fixes bug 1101229

The code-cleanup and code-move changes from this patch:
https://review.openstack.org/#/c/19219/
introduced a problem: the volume_utils.find_sr_from_vbd method was
called after the vbd has already been destroyed. This change fixes the
issue by moving the sr discovery before the vbd destruction, and tests
the call order by using side effects.

Change-Id: Ide4f8ac810f98bb192909f5f0408affc940e7446
Ensure service's servicegroup API is created first.

We want to make sure to create the servicegroup API instance early,
before creating other things such as the manager, that will also
create a servicegroup API instance.  Internally, the servicegroup
only allocates a single instance of the driver API and we want to
make sure that the service's value of db_allowed is there when
it gets created. For that to happen, when the service class creates
a servicegroup API instance, it needs to be the first thing to do so.

Part of bp no-db-compute.

Change-Id: I41df39d34c4920fcbfcd50c8f0344ee1dd5547d1
xenapi: Add cleanup_sm_locks script

XenServer 5.6 and 6.0 don't appear to be cleaning up sm locks when using
a FileSR. When enough locks accumulate, this causes image related
operations to fail.

This cleanup script is a stop-gap solution that can be run against all
of the dom0's in the cluster to prevent too many locks from
accumulating.

We can remove this script when the root-cause is fixed upstream.

References 1103158

Change-Id: I798bcfeb727a59003910b82d331fdbe031c4a2b4
Fixed nova-manage argument parsing error

In the dictionary CATEGORIES of file nova-manage, both 'flavor'
and 'instance_type' refer to InstanceTypeCommands, so the category
would be handled twice by add_command_parsers(). It would mess the
arguments if a command category is handled more than once by
function add_command_parsers().
Added a check to avoid the mess.

Change-Id: I7a314a9b389b3dea848a7111cedfc762bbb6b30e
Fixes: bug #1098733
Adding REST API to show all availability zones of an region

Returns a summary or detailed list of availability zone to client.
To keep consistent result with EC2 API and de-duplicate, I have
refactored EC2 cloud controllor code.

Implement one workitem for bp:show-availability-zone

Change-Id: I6c9c673c757c6c319a1cdd94d7420b8983f92bbb
Signed-off-by: zhiyanliu <zhiyanl@cn.ibm.com>
Correct a format string in virt/baremetal/ipmi.py

"%(err)%s" to "%(err)s"

Change-Id: I5ef1d3218c6121fed7c5d2b4d318da7c6d884776
Adds SSL support for API server.

Part of code in test for accessing with ipv6 and part of ssl
socket wrapping developed by Davanum Srinivas.
Original patch could be found here:
https://review.openstack.org/#/c/19559

DocImpact

Fixes bug 869884.

Change-Id: I6d60df77c3fb49552e597f94abae7f4d6f54044d
Remove network manager from compute manager.

Remove an instance of the configured network manager from the compute
manager.  It's not used anywhere.  This was also the only place the
network_manager config option was used, so remove the config import as
well.

Change-Id: I8cfad16e96018e649dd223c3a7132a3860928c23
Merge "Adding REST API to show all availability zones of an region"
Merge "Correct a format string in virt/baremetal/ipmi.py"
Merge "don't clear the database dicts in the tearDown method"
Merge "Adds SSL support for API server."
Merge "Fixed nova-manage argument parsing error"
Merge "Ensure service's servicegroup API is created first."
Merge "xenapi: Add cleanup_sm_locks script"
Merge "Remove network manager from compute manager."
Merge "XenAPI: Fix volume detach"