xenapi: remove propagate xenapi_use_agent key

The compute.api class will already propagate then xenapi_use_agent key
when required, so we can remove the xenapi specific code that tries to
propagate this value. The code did not correctly access the system
metadata, would have failed to propagate the key anyway.

Fixes bug 1204933
Change-Id: Ib291a265318d80705129e565155d4250fd704b75
xenapi: no image upload retry on certain errors

There are a few upload errors that glance plugin should
not retry upload on, as it will fail again. This patch changes
upload to not retry on the following conditions in addition
to the 401 error that it already handles:

- CONFLICT
- REQUEST_ENTITY_TOO_LARGE
- PRECONDITION_FAILED
- FORBIDDEN

Fixes bug 1203726

Change-Id: I538a4f9b133169b2e398e7dfcb3af58fef204f03
Fix instance_usage_audit_log v3 follow REST principles

Use query parameter 'before' instead of show.
BTW, add expected_errors decorator.

Partially implements bp v3-api-extension-versioning

DocImpact

Change-Id: If1168c01e6342675370acdf278e1c0317aff93d8
Fix typo in compute.rpcapi comments

Change-Id: I76a60b29352e023e5c72d546e144eb330b218b64
Enhance object inheritance

Objects could only inherit fields from the NovaObject base class.  This
patch fixes this so that any object subclassed from another object will
inherit all fields.

Related to blueprint unified-object-model

Change-Id: Iaf511be490a44d357b4f527d37a64f3794c60afe
Spelling correction in test_glance.py

Changed "deatils" to "details".

Change-Id: I7c0db12643227bd177fbe60c06748d38741d3f7a
Remove dead capabilities code

Although the scheduler.host_manager has logic to handle the
'allowed_vm_type' capabilities, no virt driver supports that capability.
So just remove the dead code.

Part of bp no-compute-fanout-to-scheduler

Change-Id: I223fc10a27291d88d0e12057504525233ab845ad
Update BareMetal driver to current nova.network.model

Update baremetal driver and vif to use classes from
nova.network.model instead of legacy "network,mapping" tuple.

Partly implement blueprint nova-network-legacy

Co-author: Amir Sadoughi<amir.sadoughi@gmail.com>
Change-Id: Ia66360f51e1d7a12273df2a080931958cc4f86b5
Remove unsafe XML parsing

Move to using xmlutils for all XML parsing. Resolves bug 1190229.

Change-Id: I43afb2e188bbea99ea30fe6cb2eb1aeedc4ddfd4
Fix deferred delete use of objects

Commit dce64683291ba2cdb5e6617e01ccc2909254acb4 added the want_objects
flag to compute_api.get to the _restore function for the V3 version
of deferred delete and the _force_delete function for the V2 version.

This changeset makes it consistent so the want_objects flag is
passed to both. The unittests are also updated accordingly. The inconsistency
was found by the integrated test_servers test which is not yet merged
for the V3 API.

Change-Id: I797f8da855fda8df823e9093cb51ef5da6bdcb0f
Check host exists before evacuate

Before an evacuate is attempted, there is no checks in
place to see if the host exists. This
results in rpc call being made to non existent host.

This patch adds a simple check to both v2 and v3 extensions
to ensure that the compute service exists before we attempt
to evacuate.

Fixes bug 1208369

Change-Id: I07103ecb8310d8a891ee5fb21a1f8aa7427e0d78
Merge "Remove unsafe XML parsing"
Merge "Remove dead capabilities code"
Merge "xenapi: no image upload retry on certain errors"
Merge "Update BareMetal driver to current nova.network.model"
Merge "xenapi: remove propagate xenapi_use_agent key"
Catch ldap ImportError

Since the `ldap` module isn't a requirement, we need to guard against it not
being present.

One reason this is needed is that we generate sample configs by walking the
module import tree. If a module isn't importable--because a depenency isn't
met, for example--the module's configs are omitted from the sample config,
requiring the developer to manually add them back.

Fixes bug 1208560

Change-Id: Ie23b7fad118ecadabf7e36703934fa933f4e8c50
Merge "Fix typo in compute.rpcapi comments"
Merge "Catch ldap ImportError"
Merge "Fix instance_usage_audit_log v3 follow REST principles"