libvirt: Get driver type from base image type.

If we are using the raw backend (no cow), we should set the driver
type based on the type of the source image instead of always
using raw.

Calls to to_xml were moved after _create_image so that the image
type could be determined when creating the xml for libvirt.

Fixes bug 1163009

Change-Id: Ic8d5f0ab83d868a42f834d39c0afb64818d7e027
nova-consoleauth start failed by consoleauth_manager option missing 

Miss onsoleauth_manager option importing caused nova-consoleauth service
start failure: "NoSuchOptError: no such option: consoleauth_manager".

Fixes bug: 1164845

Change-Id: I59a15a423f49ee6c28401f905b4973c2231faaa6
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Add reset function to nova coverage.

Now nova coverage is standardized to accumulate coverage data.
It enables user to get combined coverage data of several tests.
In addition to it, we need to restart nova services when measuring
coverage of each test because there is no function to reset data.
This adds reset coverage data API.

Fixes bug: 1164331

Change-Id: Idd16cf3849b6510e7c620ed3bf16d507ed44c328
Add an extension to show the network id of a virtual interface

This extension adds the OS-EXT-VIF-NET:net_id param
so that users can determine vif plunged into which network now.

DocImpact

Change-Id: I56bef5c45f7f545aa5e9b13760dff1c802da0f8f
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Merge "nova-consoleauth start failed by consoleauth_manager option missing "
Import eventlet in __init__.py

All of this is because if dnspython is present in your environment then
eventlet monkeypatches socket.getaddrinfo() with an implementation
which doesn't work for IPv6. To turn this off you need to set an
environment variable before you do the import.

Resolves bug 1164822.

Change-Id: I2382db7b3ac4a2d940e0c45dfe3d48f499de2f16
Fix a bad tearDown method in test_quantumv2.py.

Cleanup code runs in LIFO order, so this was calling the mox methods
in the wrong order. Secondly the whole point of addCleanup is to
register code to run as soon as it is known that it should run, vs
tearDown which only runs if setUp succeeds, and doesn't know what
other code completed.

Change-Id: Iff3b91e9d43cc58b667b32cacc4b97b6e0e1f298
Merge "Add an extension to show the network id of a virtual interface"
Merge "Add reset function to nova coverage."
Evacuated instance disk not deleted

Adds disk cleanup in case instance is not on shared storage.
Added new methods to compute.rpc and virt.driver interface to validate
that instance files located on shared storage on remote compute node.

Fixes bug 1156269

Change-Id: Ia4cc601d0d824ba04f595df96461cfa85ad3b90c
Security groups may be unavailable

Currently all missing security group situations are reported as errors
and exceptions. This is not the case - any user requesting a wrong id
or name can cause it and it's not an issue in Nova. A busy system can
generate a large number of those messages causing unnecessarily high
error count.

This change stops reporting this situation as exception in the logs.

Change-Id: Ide856cbbde2db025b0e2def79652cc6c9b00566b
Merge "libvirt: Get driver type from base image type."
Merge "Security groups may be unavailable"
Merge "Fix a bad tearDown method in test_quantumv2.py."
Merge "Evacuated instance disk not deleted"
Merge "Import eventlet in __init__.py"