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
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
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
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
Allow new XML API sample file generation

When GENERATE_SAMPLES is used, it's supposed to generate the docs for
you.  However, if there's no pre-existing XML doc sample, it fails due
to bad handling of this case.

Fixes bug 1094141

Change-Id: I186d6ce78886e37a3fdd3268154872c99072fdca
Update nova-cert man page

nova-cert is:
* Used to generate certificates for euca-bundle-image.
* Only needed for EC2 API.

Change-Id: If941e964d152a9af5980a2589bc0f0f8ee4842b7
Remove session.flush() and session.query() monkey patching

Use custom Session class to avoid monkey patching of SqlAlchemy
Session instance.

blueprint db-session-cleanup

Change-Id: I7d40c20e585782403556f3587141805c197bfa64
Periodic update of DNS entries.

The new DNS mechanism to resolve instance names on private network with
multi hosted mode doesn't scale.
This patch add the possibility to update the DNS entries periodically on
each network host in addition to fanout cast each time the DNS entries
need to be updated.

DocImpact: new config options
Fixes LP bug #1086026

Change-Id: I59094a29c9f5010f5e55a6f11160263337b058b2