Read baremetal images from extra_specs namespace.

Baremetal PXE driver should read deploy_kernel_id & deploy_ramdisk_id
from the 'baremetal:' namespace within instance_type['extra_specs']
so that it doesn't conflict with ComputeCapabilitiesFilter any more.

Fixes bug 1129485.

Change-Id: I84b3acb2ed83dc2b1ff8f1a21ca1d95f7d25751a
Add missing action_start if deleting resized inst.

When trying to delete a resized instance Nova will automatically
call confirm on the resized instance to help clean things
up. With some of the recent action event changes in grizzly this
code path was broken due to a missing record_action_start
call on the confirm_resize operation.

Fixes LP Bug #1147387.

Change-Id: I23e84de8675c980656a71b71e34ffa0a0801f389
Fixed image filter support for vmware

The vmware compute driver does not support the image filter
based on hypervisor_type. In a heterogeneous environment,
this filter attribute allows us to provision an instance
to a specific hypervisor based on the property of the
glance image. The solution is to populate the dictionary
'supported_instances' from the vmware compute driver.

Fix for bug 1131542

Change-Id: I6ebf9f0d4a17b3083f66f69f077f910552d9a951
Remove uses of instance['instance_type'] from xenapi driver.

Note that this includes a fix to tests/db/fakes.py to make the fake
instance_type structures look like the database models.

This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: Ieb107fbaf0f3b5a42681aefc0ffdefdb8c0f98a5
Remove duplicate API logging.

Before each API call logged the same data three times on INFO level. We only need to log the information once.

Fix bug 975589

Change-Id: I24131cf9f1c27030ecc99e638e9f4126096a0b96
Update tox.ini to support RHEL 6.x.

In order to support running unit tests on RHEL 6.x we need to patch
eventlet with contrib/redhat-eventlet.patch. We already
have support for this in the tools/install_venv_common.py but we need
to make a couple changes to allow tox to consume this:

1) Sync in the latest intall_venv_common.py from oslo. This changes
 patch to use the -N option (ignore already applied patches) and makes
 it safe to call the patching function more than once.

2) Add a new patch_tox_venv.py script in tools.

3) Update tox.ini to call patch_tox_venv.py before it runs tests and
coverage.

Change-Id: I3e2b07c3f718e4aede5c5f231ff0cdb7721ec885
Merge "Remove duplicate API logging."
Merge "Remove uses of instance['instance_type'] from xenapi driver."
Merge "Update tox.ini to support RHEL 6.x."
Merge "Read baremetal images from extra_specs namespace."
Merge "Add missing action_start if deleting resized inst."
Fix access_ip_* race

The code currently sets access_ip_* in a 2nd DB call after an instance
goes ACTIVE, which means there's a slight race when someone is querying
the API for their instance.  It's possible to see the instance ACTIVE but
access_ip_* will be blank.

To fix this, we should set access_ip_* at the same time the instance goes
ACTIVE.  This also removes an unnecessary extra DB call.

Fixes bug 1152328

Change-Id: I0fe542d49fbc95f27a24f57f674264f8789bc527
Merge "Fixed image filter support for vmware"