Set libvirt_nonblocking to true by default for Folsom.

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

Change-Id: Ie03f24c6e5c3027d83d8f3d87d049f7f9df29e5b
vm state and task state management

partially implements bp task-management
fixes bug 997867

also see http://wiki.openstack.org/VMState

Refactored the following API/state:
* rebuild
* migrate
* resize
* start
* stop
* delete
* soft delete
* rework sync_power_state in compute/manager.

fix broken tests, add transition diagram in dot

Change-Id: I3c5a97508a6dad7175fba12828bd3fa6ef1e50ee
XenAPI: Fixes Bug 1012878

Launching an instance when the image is not cached fails since
https://review.openstack.org/#/c/7971/, because the change tries
to set the nova_disk_type key in _create_cached_image, but that
is already set in create_vdi

Change-Id: I5eeb1558acf894cc7cd2eea5fd0fb1cdd673b83c
Call libvirt_volume_driver with right mountpoint

 * fixes bug 1013782
 * includes failing test
 * fixes tests for live migration

Change-Id: I8f95c6baa7aad878af19d5d8b8b34531a4a43885
Fixes ram_allocation_ratio based over subscription

Fix for bug 1016273

Change-Id: I7f7b227e71e93b4bcded150791fb0b9e9df98e4c
Move rootwrap filters definition to config files

Move rootwrap filters definition from being defined within Nova
code to being defined in configuration files to facilitate pluging-in
new rootwrap commands.

Transition notes:
* nova-rootwrap now requires an additional (first) parameter pointing
  to the root-owned rootwrap.conf file, sudoers needs to be updated
  to specify that ("nova-rootwrap /etc/nova/rootwrap.conf *")
* Packagers should ship {compute,network,volume}.filters inside a
  directory listed in rootwrap.conf rather than shipping
  nova/rootwrap/{compute,network,volume}.py
* Filter definitions now only support strings. The KillFilter (which was
  using arrays as parameters) was modified and the tests updated.

Implements bp nova-rootwrap-pluggable-filters

Corresponding devstack change needs to land first, so that tests pass:
https://review.openstack.org/8842

Change-Id: I2350154cd8057bd57926ed542de035626f7de37d
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>
Fix import order of openstack.common

Change-Id: Id80026ad9eb78c6d9a6bcae33e26ac8a4fdd6680
Refactor vm_vdi_cleaner.py connection use

cleanup_instance() would fail because of using old get_connection().
This refactors everything to use XenAPIDriver().

Fixes bug 1017282

Change-Id: I8822f322bb8f60e5992afbe1feb45c0f4fffc893
Merge "Move rootwrap filters definition to config files"
Merge "Refactor vm_vdi_cleaner.py connection use"
Remove unknown shutdown kwarg in call to vmops._destroy

Fixes bug 1017562

Also, _destroy will now intelligently shutdown the VM first, so need
to do that in vm_vdi_cleaner.py anymore

Change-Id: I8c1e3aa8ecb98ed3c19ab4b8fa072b7fa8e5618f
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
Merge "XenAPI: Fixes Bug 1012878"
Merge "Fixes ram_allocation_ratio based over subscription"
Merge "Fix import order of openstack.common"
Merge "vm state and task state management"
Merge "Call libvirt_volume_driver with right mountpoint"
Merge "Set libvirt_nonblocking to true by default for Folsom."
Merge "Make tgtadm the default iscsi user-land helper."