enable hacking.py self tests

pep8 and hacking.py (by inheritance) have the ability to run self
tests via docstrings, if we format the comments correctly, and change
the docstring test regex. Include self testing in our normal pep8
tests.

fix the comments to actually be test case compliant

fix nova_import_alphabetical to pass on short import lists (only 2
lines, starting at the beginning of a file)

comment where it doesn't appear that hacking.py tests are working
(though there could be deeper black magic in some of them).

fix a doc string in pep8 self tests that breaks N301

fix the fact that pep8 error strings are supposed to start with
\w\d\d\d, we were just lucking out on some formatting because the
string NOVA happened to be only 4 chars long.

Add a couple of escapes so that we don't recursively fail on our
own fail self tests for comments. (boy that's fun)

Change-Id: I14d5e04cfc092b37ec4967cd7485e9975a5eb820
Use testrepository setuptools support.

The previous false-positive bug was fixed upstream in 0.0.13.

Change-Id: Iceb07a511992249c104bbc7c34b7c35e01bd9fbd
Move migration_get_..._by_host_and_node to conductor

This moves the remaining migration-related database call out of the
resource tracker to conductor:

  migration_get_in_progress_by_host_and_node()

Related to blueprint no-db-compute

Change-Id: I9bdf9fbbc3131964bf6078d19bf1cd9053a7e224
Add common config options for SPICE graphics

The VNC config options are shared across hypervisor drivers, and
while SPICE originally only supported KVM, it is now possible to
use it with Xen too. Thus, adding common SPICE config options
makes more sense than adding them to the libvirt driver only

DocImpact
Blueprint: libvirt-spice
Change-Id: I8e817530908c6fee0781b92dc9e27010951b4540
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Add support for setting up <channel> elements in libvirt config

To enable use of guest agents, support for configuring the
<channel> elements in libvirt XML config is required

Blueprint: libvirt-spice
Change-Id: I3cea7b326bb2f746c5804d0aa3bbe369da6935e8
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Add support for configuring SPICE graphics with libvirt

Add support to the libvirt driver to configure SPICE graphics
and the SPICE guest agent. It allows for enablement of both
VNC and SPICE at the same time, since some recent libvirt/KVM
versions support this concurrent mode.

The USB tablet will now only be enabled if VNC is requested,
or SPICE is requested without the agent

Blueprint: libvirt-spice
Change-Id: Ic7fbfd636455aba5bf881b6a1925fd4561edfd15
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Updates prerequisite packages for fedora

Adds gcc, libxslt-devel (has dependency on libxml2-devel) and mysql-devel to
the list of prerequisites

Change-Id: I9c27868b30ef17d73adf8ad2e72b3d0e76fe76d1
Merge "enable hacking.py self tests"
Merge "Add common config options for SPICE graphics"
Merge "Add support for setting up <channel> elements in libvirt config"
Merge "Updates prerequisite packages for fedora"
Merge "Add support for configuring SPICE graphics with libvirt"
Merge "Move migration_get_..._by_host_and_node to conductor"
Make resource tracker use conductor for listing compute nodes

This makes the resource tracker use the existing conductor method
of service_get_all_compute_by_host() instead of querying the
database directly.

Related to blueprint no-db-compute

Change-Id: Iee19eeaa8651e4df0abb974f3f3ddeafd9d23409
Make resource tracker use conductor for listing instances

This patch extends the conductor manager's get_all_by_host() method
to take an optional node parameter, which will cause the additional
filtering, if present. It also makes resource tracker use the
conductor for getting instances on the current host/node.

Related to blueprint no-db-compute

Change-Id: I407757d356b4162f32da29924175175a40f88f13
Merge "Use testrepository setuptools support."
Merge "Make resource tracker use conductor for listing compute nodes"
Merge "Make resource tracker use conductor for listing instances"