Fix stack trace on incorrect nova-manage args.

This error reporting needs more work, but this at least stops us
from presenting a stack trace to the user and is as broken as
before.

Resolves bug 1091403.

Change-Id: I941983b60cc3762a916d57b7ea67264e093cfa44
Extract image metadata from Cinder

This patch makes nova extract image metadata if it is present in the
volume dict received from Cinder API.

The volume image metadata is received from Cinder when the
volume_image_metadata Cinder extension is loaded.

This patch is part of the work done on blueprint improve-boot-from-volume
as this metadata will be used when booting instances from volumes
without the need to supply an image just for the metadata. Subsequent
patches will make Nova consider this metadata when booting instances
without and image id.

Change-Id: I9e5925ea4147a41c41f9019933a47c5ccf756747
Add get_backdoor_port to consoleauth.

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

Change-Id: I7da9cbc8111342b5f49f148a8e3389faf5c4f2ab
Add get_backdoor_port to console.

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

Change-Id: I3cb7d199fac8c10e4b5fdc04c403b63e75a69d2d
Add get_backdoor_port to scheduler.

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

Change-Id: Ib88e2a9e709d5240722027c94e6762b4a3bd918c
Add get_backdoor_port to cert.

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

Change-Id: Iea2b1f9587ea2749c2def921d6a0d1e86f1645ee
Add API samples tests for the coverage extension.

Partially implements blueprint nova-api-samples
Fixes bug 1089531

Change-Id: I5b287ea210f275a0c316a28d6dc3614d107aff05
Provide a configdrive helper which uses contextlib.

As suggested on review of Ib23d117ad4cd5dc92298a0812eb468f7d557417c.

Resolves bug 1092248.

Change-Id: I2829ac60732b86b9853983b03ef6f30f5c5a3283
Log last compute error when rescheduling.

When a scheduling attempt is re-tried, log the last exception from
the compute side.  The goal is to provide simpler access to debugging
information about why a build/resize is having issues.

Change-Id: Ic31852dcbbf1cea9034a4b8eb1c7d20178c3229d
Ignore double messages to associate the same ip

Associating an ip removes the old association and adds a new one.
If we are already associated to the target ip, then we can avoid
sending extra messages and making db calls. The current possibility
of a double send contributes to bug 1092762.

Change-Id: I5a40177fcd05b150f39e3144c1d521bd979b358b
db.network_delete_safe() method performance optimization

Using query.count() instead of query.all() to count FixedIp.

blueprint db-session-cleanup

Change-Id: Ibe88765b52518112f9f16727082fd6db97ba9411
Ensure datetimes can be properly serialized.

The nova-network manager was returning db models from methods invoked
via rpc.call(). These db models include non-primitive types that can
not be properly serialized (namely datetime objects). Use
to_primitive() to ensure that the data gets serialized properly.

Fix bug: #1089430

Change-Id: I0519e88444b8fcc3af5e43170ea07dd966ccef05
Signed-off-by: zhiyanliu <lzy.dev@gmail.com>
Fix cloudpipe instances query.

Filter out deleted instances in _get_all_cloudpipes.

Fix bug 1092786.

Change-Id: Ia714a1989f78728f8b3597d6f837b622427ac5b1
Remove lxc attaching/detaching of volumes

Remove lxc attach and detach of volumes since this
will be handled by libvirt in upcoming versions of
libvirt.

This is expected to be in libvirt 1.0.1 or 1.0.2.
This resolves (LP: #1067638) and (LP: #1009701)

This removes a non-functional feature of the
lxc driver with functionalilty that is coming
with newer versions of libvirt.

Change-Id: Iaf4bc2769632ba2e7dcfc67892dded7b4dfbb3ae
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Spelling: Compatability=>Compatibility

Change-Id: Idc6f99d8021bb942b3a82f530c6a4ff2c4d72f8f
Remove improper NotFound except block in list servers

Added a couple tests to verify that NotFound was actually
never raised when no results are returned from list servers
or list servers details, and then removed the except blocks
from the controller.

Change-Id: I36856066b9e4c4e3f7b85ddf8facb35204034838
fixes: lp bug #1089385
Adds test for 'itemNotFound' errors in 'Delete server'

Implements a test for 'itemNotFound' errors when deleting
a server.

Fixes Bug 1089368

Change-Id: I201486bb5775f856048ac1f5e4f3c852fb38e091
Check for image_meta in libvirt.driver.spawn

This adds check that image_meta exists in libvirt driver
spawn method. In case it doesn't the image shouldn't be
created.

part of libvirt driver support for blueprint rebuild-for-ha

DocImpact

Change-Id: I097c7cbfde96bcb21b4f06af4e5bac00440849c2
Co-authored-by: Oshrit Feder <oshritf@il.ibm.com>
spelling in test_migrations

Change-Id: If6da7af1b6da9093610b7ce982acb048ed2e0ac0
Remove unused imports

And one unused variable

Change-Id: I81edaf7ddedd7723c2601b30951ca82bd2cd5256