Remove unused elevated context param from quota helper methods

The elevated context being passed to the _quota_usage_create and
_reservation_create methods is not used, so remove it from the formal
parameter list of those methods and related usage.

This is part of a larger series to refactor the quota_reserve method.

Partial-Bug: #1369605

Change-Id: I50749402177eda29ae006ec4fd11a9a8125765ec
Remove xmlutils module

The xmlutils module is being removed from oslo-incubator as it's not
useful anymore. Various fixes have been integrated into the base XML
module provided by Python now.

See
http://lists.openstack.org/pipermail/openstack-dev/2014-September/047368.html
for details.

Change-Id: Iefa1a5a4d08a3cfc43b3c9764fc2d35c328a19e3
Remove indexes that are prefix subsets of other indexes

Both MySQL and PostgreSQL can efficiently optimize queries using
indexes that use the prefix columns of the index. This means that
an index that covers columns (a, b, c) can be used to optimize
a query with the statement 'WHERE a = 1 and b = 9'.

Nova has indexes which are a prefix subset of other indexes. The
database servers can use the suffix superset indexes and the prefix
subset indexes just add extra overhead to inserts and updates.

instances_host_deleted_idx (host, deleted) is a prefix subset of
instances_host_deleted_cleaned_idx (host, deleted, cleaned)

iscsi_targets_host_idx (host) is a prefix subset of
iscsi_targets_host_volume_id_deleted_idx (host, volume_id, deleted)

Change-Id: I397c7f1ba9ab95a99f13c9ec6e838ae63987870b
Add VIR_ERR_CONFIG_UNSUPPORTED to fakelibvirt

Commit 867bdedf81533f283aae4de4488d54c254bb7f07 added a test that raises
an exception using the libvirt VIR_ERR_CONFIG_UNSUPPORTED error code but
missed adding that to fakelibvirt, so the test won't work if you don't
have libvirt installed.

This simply adds the constant to fakelibvirt.

Closes-Bug: #1376363

Change-Id: I909608a7f1a8b5ee407b1d01896bc9db1adcee4e
Destroy orig VM during resize if triggered by user

Patch I7598afbf0dc3c527471af34224003d28e64daaff introduces a
Minesweeper failure, due to the fact that it doesn't distinguish
between destroy operation triggered by the user and by the revert
resize.

This patch fixes the issue by checking the task state. If the task
state is revert_resize, the original VM doesn't get deleted.

Closes-Bug: #1376492

Change-Id: Idb9ac6c1ec5dcea52ce8e028f5cce08da1779321
Merge "Remove xmlutils module"
Merge "Remove unused elevated context param from quota helper methods"
Merge "Add VIR_ERR_CONFIG_UNSUPPORTED to fakelibvirt"
Merge "Destroy orig VM during resize if triggered by user"
Adds missing exception handling in resize and rebuild servers API

Adds handling of NoValidHost and AutoDiskConfigDisabledByImage in
resize and rebuild of the V3 servers API. This has already been
fixed in the V2 API.

Change-Id: I5a5519f87bb220d6821e959f36dc5b36ffe9cc2d
Merge "Remove indexes that are prefix subsets of other indexes"
Merge "Adds missing exception handling in resize and rebuild servers API"