use file instead of tap for non-blockdevice images on Xen

In nova/virt/libvirt/utils.py the method pick_disk_driver_name() returns
"tap" for non-blockdevices on Xen. This leads to an exception on the
xend service. The returned driver name should be "file" instead of
"tap".

fixes bug 1084618

Change-Id: Ib87f18f56afb3c5f34c30e9aea605dad24a36cdf
Fix handling of unimplemented host actions

Fixes bug #1060884

Host actions like enable/disable, maintenance mode and power management
are not implemented in most virt drivers.

In the case of set_host_enabled() in the libvirt driver, we have a no-op
implementation. In other cases we have an implementation which raises
NotImplementedError. Since the default implementation is to do this, we
should just remove the redundant methods from the drivers which don't
actually implement these actions. This ensures NotImplementedError is
consistently raised.

On the API side, rather than looking at the return value of these
methods to determine whether they're implemented, we should just catch
NotImplementedError and return a sensible error message.

In order to do this, we need to ensure the NotImplementedError is
properly deserialized from the RemoteError which will encapsualte
it. The fix for bug #1086798 ensures this happens.

Finally, add some tests to make sure we properly respond with 501
when the virt driver doesn't implement these actions.

Change-Id: I2d4fc51a4b16d5230e61bde75915142ea450557d
i18n raise Exception messages

Provide i18n to some exceptions that were not
provided before.

Change-Id: Ia320ba5f12e82686c8ee7973a77f152eb4b02bd4
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Map cinder snapshot statuses to ec2.

EC2 has way fewer statuses than cinder does, so we need to map them
to valid entries. Resolves bug 1080284.

DocImpact.

Change-Id: I73bb2905577fb6f727c0a805df2654ad1bb4ad72
Make DNS drivers inherit interface.

Updates the DNS driver implementations so they inherit
the interface. Should help catch things that aren't
implemented in the future.

Change-Id: Ic8b269c8525236c65b492c889d4530a09836bb13
Consider reserved count in os-user-limits extension

Fixes bug 1088606

Previously, the reserved count was not considered in the
total<Resource>Used values returned, leading to a potentially
inaccurate view of the actual headroom available when resource
creation was in-flight.

Now, the reserved count is optionally included, controlled
by a new 'reserved' query parameter.

Change-Id: If71ac6f8e428b58b7c80c67ad99124e4233102d1
Modified sample tests to FlavorExtraData API.

Added subs wherever applicable.
Added checks for correct return codes after REST ops
Modified sample tests to FlavorManage API to differentiate them
from the ones in FlavorExtraData.

Partially implements blueprint nova-api-samples
Fixes bug 1070162

Change-Id: I57c6611f379bef2ff586551b5501c4f7654e4374
Move all temporary files into a single /tmp subdir.

Also setup a temporary homedir to prevent interactions with
user configuration.

This fixes bug 1088761.

Change-Id: I31f1b839593351648cd7b4fb9371562c1348fafc
Merge "Move all temporary files into a single /tmp subdir."
Add get_backdoor_port to nova-conductor.

This adds a get_backdoor_port function to nova conductor
which enables returning the eventlet_backdoor port from
rpc for the service.

Change-Id: Ifb08c685a6f52621e954ba84e3c5eadf83fe4704
Merge "Make DNS drivers inherit interface."
Don't leak info from libvirt LVM backed instances

* nova/virt/libvirt/utils.py (remove_logical_volumes):
Overwrite each logical volume with zero
(clear_logical_volume): LV obfuscation implementation.
(logical_volume_size): A utility function used by
clear_logical_volume()

Fixes bug: 1070539
Change-Id: I4e1024de8dfe9b0be3b0d6437c836d2042862f85
Merge "Don't leak info from libvirt LVM backed instances"
Merge "use file instead of tap for non-blockdevice images on Xen"
Merge "Fix handling of unimplemented host actions"
Merge "Add get_backdoor_port to nova-conductor."
Merge "i18n raise Exception messages"
Merge "Consider reserved count in os-user-limits extension"
Merge "Modified sample tests to FlavorExtraData API."
Merge "Map cinder snapshot statuses to ec2."