Set libvirt_nonblocking to true by default for Folsom.

Make the fake libvirt module look more like the real module.

Change-Id: Ie03f24c6e5c3027d83d8f3d87d049f7f9df29e5b
do sync before fusermount to avoid busyness

Fix bug #1013689

Change-Id: I8ae786e105c08e1b5011a1b2a1dac048a710a1cb
Make tgtadm the default iscsi user-land helper.

Most modern Linux distrobutions have tgtadm as their
default iscsi user-land helper. This includes Ubuntu,
Fedora, RHEL, SuSe, and others.

Make it default for nova as well. No change is
required for devstack since its the default as well.

Change-Id: I3f5204f08bfd9ef41eda2df7aa6bb35559516213
Signed-off-by: Chuck Short <chuck.short@canonical.com>
metadata: cleanup pubkey representation

The previous code provided a '_name' entry in a dict to represent
this, but then appended "=_name" to the key rather than populating
_name with the full value to be rendered.

This just changes the value in '_name' for public key to be
'0=keyname' rather than 'keyname'.  It makes the rendering simpler by
just using the
_name.

It also adds a test for this strange behavior of the metadata service.

Change-Id: I3ef67d85354bf7ac8abaaf900ddfdd2e945aa9af
Another killfilter test fix for Fedora 17.

Updates killfilter test to use /usr/bin/sleep in addition to /bin/sleep.

Fixes LP Bug #1017585.

Change-Id: Ied0a8837fb0e7ca7fa3629859fbd67f71e5d80dc
Add full test environment.

Add a tox environment that will install all of the optional
packages and which will run with system site packages enabled
so that we pick up those tests as well. This should allow us
to run expansive tests on jenkins that aren't normally required
locally, but which are possible.

Change-Id: Iabd61874061e24950d4d2082a2fba158b4601624
Migrate existing routes from flat_interface

Right now, any routes that exist on flat_interface (other than the default
route) get lost when we set up the bridge. This patch migrates them over
to avoid losing that connectivity. It does so by using 'ip route' instead
of 'route', which is much easier to script and is consistent with other
use of iproute2 tools in linux_net.py.

Bug 962822

Change-Id: I7d9e8e05169f2f87e8481595397c02fd3a3612f4
Merge "Set libvirt_nonblocking to true by default for Folsom."
Merge "Make tgtadm the default iscsi user-land helper."
fix libvirt get_memory_mb_total() with xen

Commit 5b93a576 failed to remove the 'staticmethod'
decorator from the method, to allow it to access
object variables.

Also there is no need to have the libvirt getInfo() call
be xen specific.  In the LXC/QEMU/UML drivers this call
uses GNULIB's physmem module, which is cross-OS portable.

Change-Id: I565eda78f6c468cf6bd227756cfc068725069218
Fix hacking.py failures...

test_xenapi hacking fix and volume_utils unneeded import

Change-Id: I503cf0780850aba90d7ba8665d83bff08fb2504a
Merge "Another killfilter test fix for Fedora 17."
Re-factor instance DB creation

This patch speeds up the DB creation process considerably in deployments
with a considerable amount of instances.  It also cleans up a lot of the
code which ends up creating the instance DB record.

The biggest improvement in this patch is removing unnecessary joins in
security_groups DB calls.  This also reduces the number of DB calls
needed to create an instance DB record in general.

Side effect of this patch is the default 'display_name' for an instance
when it (or hostname) is not specified is now 'Server <uuid>' vs
'Server <id>'.  Because of the use of 'id', it required creating the DB
record, then updating the record later after we new the 'id'.  This is
gone.

Fixes bug 1017722

Change-Id: I9b7d48644a7abe075545c2c11399351b6a37939c
Remove unnecessary queries for network info in notifications

bandwidth_usage() tries to query network info if "not network_info"
when looking at instance['info_cache'].  [] is a valid entry for
network_info (on build)... so don't query network when we see it.

Fixes bug 1017770

Change-Id: Ia7291dbbcc25c04eff16eb048068f879e18f53a4
Improve filter_scheduler performance

Add 'columns_to_join' keyword arg to instance_get_all() and have the
scheduler host_manager only join 'instance_type'.  It doesn't use
anything else.

Fixes bug 1017769

Change-Id: Ia2c0956d2453f00e26eb89d9496a32ba15d970aa
Removes utils.fetch_file (no longer used).

Change-Id: I75828a1e40f1daa3a15221f1ab8de484e6bb03ef
Removes utils.logging_error (no longer used)

Change-Id: Iea03d4a87452af3fe1bfb8bd5359bcd17fb561be
Fix db calls for snaphsot and volume mapping

 * Fix misuse of project_only
 * Includes failing tests
 * Adds missing call to db/api.py
 * Fixes bug 1017816

Change-Id: I993089ba031a05e7ab0ea91c279a2ac47593eda3
Allow access to metadata server '/' without IP check

Allow access to '/' of metadata server to get version information without
checking source IP, which was how previous release behave.

Fix bug 1017759.

Change-Id: I3edc2d3808b0ebb2064513a59e6a3fc9e212b283
Fix several PEP-8 issues

As found by pep8 version 1.2.

Change-Id: I5d40294416db0410fa7d9c82ea8efe8efadd0f58