Add expected_errors for extension console_output v3

Partially implements bp v3-api-extension-versioning

Change-Id: Ibb25c3e853f83c2dae35a5ba34e193a639b53ab1
Add expected_errors for extension keypair and availablity_zone

Partially implements bp v3-api-extension-versioning

Change-Id: Icb13630d5e4b8806ab95ccf464c9d80e9a9f160b
Add expected_errors for extensions quota_sets and hypervisors

Partially implements bp v3-api-extension-versioning

Change-Id: Ic9b2bebc5974a47beebee6bd6eba192ee0ede74b
Convert pause/unpause to use objects

Switch pause/unpause to use objects.  This also converts the compute API
tests to be unit tests.

Related to blueprint compute-api-objects

Change-Id: I439e06e7c9778b18e8a736dcbc76db534bcdb835
Fix change detection logic in conductor

The change detection logic in conductor attempts to determine what
changes an object action had on the object itself in order to
communicate them back to the caller. This logic previously assumed
that if an attribute was present on the updated object that it was
also present on the original. However, that will not be the case
in situations where a method sets a new attribute (such as
instance create, which will set many of them).

This change to the logic avoids triggering a lazy-load of the
attribute on the original object while trying to determine if
it has changed. It corrects behavior and doesn't change the interface
at all, so no RPC version changes are needed.

Related to blueprint unified-object-model

Change-Id: I8b01185ba81f3126f494db95c70c23dfa77ad959
Add ObjectActionFailed exception and make Instance use it

The obj_load_attr() code in Instance slipped through review with
just a "raise Exception()" for the case where the load cannot
complete. This adds a new exception for the case, fixes the
Instance.obj_load_attr() method, and adds a test to verify it.

Related to blueprint compute-api-objects

Change-Id: I73c966deb3c498019370eb83ade64bff2c48aec0
Add obj_attr_is_set() method to NovaObject

We have lots of places where we need to test if an object's attribute
has been set yet, and we do that rather manually. This adds a
method to the base object to make that more convienient and consistent.

Related to blueprint compute-api-objects

Change-Id: Ic5ff4a80b10dec6a5a772c21405de7ff1d331e72
Update mailmap

Change-Id: I6b6530841f242829d394998a6dfd85b34e04f232
xenapi: Moving Glance fetch code into image/glance:download_vhd

Part of effort to stream-line the fetch image path in vm_utils.

Change-Id: I888b8edf211a7ae8a1a8bb0dad4957090cf96e55
Merge "Add expected_errors for extension keypair and availablity_zone"
Merge "Add expected_errors for extensions quota_sets and hypervisors"
Merge "Add expected_errors for extension console_output v3"
xenapi: allow non rsa key injection

Currently if you attempt to inject a dsa key into a server, you are
unable to start the server because the saving of the password will
always fail. This ensures the saving of the password is only attempted
when injecting an rsa based key.

Fixes bug 1206458
Change-Id: I85e259c7d61182d32d2661662483237e7ad8feed
Merge "xenapi: Moving Glance fetch code into image/glance:download_vhd"
db: Remove deprecated assert_unicode attribute

Remove deprecated assert_unicode sqlalchemy attribute,
removed in sqlalchemy 0.8.0. The deprecation is described
at:

http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-ad44af79c886d1bb283042deb64f9cbe

Fixes LP: #1208382

Change-Id: I56ad98d3702f53fe8cfa94093fea89074f7a5e90
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "xenapi: allow non rsa key injection"
Merge "db: Remove deprecated assert_unicode attribute"
Merge "Update mailmap"
Add plug-in modules for direct downloads of glance locations

Glance can expose direct URL locations to its clients.  In current
versions of nova the only URL that can be accessed directly is file://.
This patch adds a notion of download plug-ins.  With this new download
protocol modules can be added without disruption to the rest of the
code base.  Based on the scheme of the URL returned from Glance a
plug-in will be loaded and used to download the data directly, instead
of first routing it through Glance.  If anything fails in the process
the image will be downloaded by way of Glance.

Handlers are loaded with stevedore.  To add a new module follow the example
in nova.image.downloads.file.py.  The module is required to have two
functions:

get_download_hander():
This must return a child of nova.image.download.TransferBase

get_scheme():
Return the URL scheme that this module handles (ex: 'file')

If additional configuration is needed it can be added by the specific
plug-in (as shown by file_download_module_config included with this
patch submission).  Once the module is created it must be added as an
entry point to the python installation.  For those included with nova
this can be done by adding the following it setup.cfg:

[entry_points]
nova.download.modules =
    file = nova.image.xfers.file

Additionally, as part of the multiple-locations work in Glance meta data
comes back with each location describing it.  As an example,
this is needed for direct access to file URLs.  Nova cannot assume that
every file URL is accessible on its mounted file systems, nor can it
assume that the mount points are the same.  This patch solves that
problem for direct access to files.

blueprint image-multiple-location

Change-Id: I79b863c0075cebaadce5b630f22b81d2959ddbb1
Merge "Convert pause/unpause to use objects"