Access DB values as dict not as attributes. Part 3

We cannot assume nova.db.api will be returning sqlalchemy objects
attributes, instead treat return values as dicts

Part of blueprint db-api-cleanup

Change-Id: Icf45e5475b9d626f7e07efe953615dd82bb69ade
powervm: add DiskAdapter for local volumes

This change begins moving all block device
related functionality to an abstract DiskAdapter class
The original local logical volume implementation
has been moved into PowerVMLocalVolumeAdapter

Also, this patch opts for on the fly decompression of the
image during the dd copy to the Logical Volume, instead
of running a separate decompress before hand

bp powervm-compute-enhancements

Change-Id: I9ecb81e4351fd3a5c34ab8bce544b8daec353c5a
Renaming xml test class in sample tests of consoles API.

Partially implements blueprint nova-api-samples
Fixes bug 1083642

Change-Id: I9ed16780e9a75a1fa34afac5c7861a0595180596
On confirm_resize, update correct resource tracker

On confirm_resize, update the resource tracker based on the source
node of the instance, not the destination.

bug 1085325

Change-Id: I041fc27225a8ed8e61fe21945d9241377b1d6384
Added sample tests to deferred delete API.

Partially implements blueprint nova-api-samples
Fixes bug 1070157

Change-Id: Icd6c743b842a7986bbc0a21c5dc62fbceda488bf
Fix test suite to use MiniDNS

MiniDNS changes:

* In create_entry/delete_entry, if we don't get a name
then we throw an exception

* In get_entries_by_address, filter out duplicates

* Add a log.warn in addition to throwing an exception.

Test Suite changes:

* Updates base TestCase to use MiniDNS instead of the default DNSDriver.

* Make sure we cleanup the dnstest.txt and the temporary directory
  in TestCase.tearDown()

* Update a few tests to pass in display_name

Fixes LP Bug #1081750

Change-Id: Ia8d80102deaeaaac166ab50bbd47279d72d1e389
Add notifications when libvirtd goes down

During driver status update from periodic tasks, if we find that
the libvirtd is down then we should send send notifications and
log an error.

Fixes LP #1011087

Change-Id: I447f24e4ac719d2d550810509f72be6f270ce326
Configurable exec_dirs to find rootwrap commands

Adds support for a configurable set of trusted directories to search
executables in (exec_dirs), which defaults to system PATH. If your
filter specifies an exec_path that doesn't start with '/', then it
will be searched in exec_dirs. Avoids having to write multiple
filters to care for distro differences. Fixes bug 1079723.

Also returns a specific error rather than try to run absent executables.

Change-Id: Idab03bb0be6832a75ffeed4e78d25d0543f5caf9
Merge "On confirm_resize, update correct resource tracker"
Implements volume usage metering.

Add volume usage cache tables to record no. of reads, bytes read,
no. of write, bytes written to a volume.
A periodic task runs in compute manager to query each volume mounted
on a compute host and record its usage, this task also send a
volume.usage notification contains volume usage statistics

Part of blueprint volume-usage-metering

Change-Id: I215ce0c94e9ea5a07e18940802c20d1379b8f6d1
Merge "Configurable exec_dirs to find rootwrap commands"
Merge "Fix test suite to use MiniDNS"
Merge "Added sample tests to deferred delete API."
Merge "Renaming xml test class in sample tests of consoles API."
Adds API Sample tests for Quotas extension.

Partially implements blueprint nova-api-samples
Fixes bug 1070172

Change-Id: I796897e69ec75da6da047574c0b8131f94bfa17e
Merge "Add notifications when libvirtd goes down"
Merge "powervm: add DiskAdapter for local volumes"
Add pyflakes option to tox

* Uses pyflakes wrapper to ignore gettext errors
* Based on: https://bugs.launchpad.net/pyflakes/+bug/844592

Change-Id: I4fd947176f5258f89f517acf5dda2ded4a2da15e
Merge "Adds API Sample tests for Quotas extension."
Use conductor for resourcetracker instance_update.

Use the instance_update method on the conductor service for issuing
instance update requests from the compute resource tracker.
Notifications are sent out by conductor, so that was removed from the
resource tracker.

The conductor now also accepts 'launched_on' as a valid key.  A
duplicate 'host' key in the list of valid keys was removed.

Part of blueprint no-db-compute.

Change-Id: Id4858cc2ab0d128107ea311e2ababef51c2ded83