Fix security group race condition while creating rule

Previously, it was possible for someone to create a security group rule
where the rule references another security group. To do this nova would
first create the security group rule and then look up the referenced group
(group_id's) name in order to return that via the api. During this time
it's possible for someone to delete this security group rule and the
referenced group before the call returned resulting in a 404 error being
raised. This patch addresses this issue by looking up the group name
first and then creating the security group rule in order to avoid this
from occuring.

Note: this patch also adds a test to cover the case where an invalid group
id was passed though this does not really add any real additional coverage
to the change largely because the code is currently using global stubs. That
said, the previous coverage should hopefully be sufficient

Change-Id: If58ffa5629ba5166f260379ac47922974de31be0
Related-bug: 1262566
Reduce unit test times for glance

The class TestGlanceApiServers did not inherit
test.NoDBTestCase.

Change-Id: Ieafe300d793685f5b146999383695733eba3da19
VMware: cleanup the constructors of the compute drivers

The 'read_only' parameter was never used by the compute drivers.
The 'scheme' parameter should be passed to the base constructor.

Change-Id: I3abd40a50896664ee274f057ded8ec2460679c82
Add debug log for core_filter

Sometimes operator need information why the host doesn't pass
the check of scheduler, this patch adds information for core
filter if virtual cpu is not enough on the host.

Change-Id: Ie05d9184435a4fc4cff1af26812c01a3cc226fff
Partial-Bug: #1301830
VMware: Resize operation fails to change disk size

The finish_migration step will resize the cpu and memory to match
the new flavor chosen, but not the disk size. Additional code was
added to extend the disk size using ExtendVirtualDisk_Task.

DocImpact

Change-Id: Iff10443f603d329d01a74a620079f80518b75a50
Closes-bug: #1291741
Deduplicate module listings in devref

devref already contains a list of all modules, so no need to explicitly
include files that just contain lists of modules under the section 'Module
Reference'. Most of the deleted files are very outdated and refer to
non-existent modules anyway.

Leave services for now as it contains some content
that should be preserved. A later patch will clean those files up.

Change-Id: I5dce1b523f3648667fcde49ee51206ae9ccfdec8
Remove api reference section in devref

This previously just linked to api/autoindex which was removed in
I6c93f9aae1994961fdca690742398a0d540d541f (in 2011).

Change-Id: Iba86a5b84743fe6d65b797a2e9237d037c2bf1a8
Add index for reservations on (deleted, expire)

the query for expire_reservations currently does a full table scan.
This adds an index so frequent invocations of expire does not bog
down the database.

Change-Id: I82c6064159d7bfa7f4dc7fca5a7c9bc52b0f07fb
Resolves-bug: 1348720
Updated from global requirements

Change-Id: Ide162a1145a2c8b67546812fbfcdc24a5753818b
Merge "VMware: cleanup the constructors of the compute drivers"
libvirt: add support for guest NUMA topology in XML config

Add a libvirt config class for dealing with guest NUMA
topology settings under the <cpu> part of the schema.

Blueprint: virt-driver-numa-placement
Change-Id: Ia928fb5b91e8dbf5bbaf255e9ace2b84fe49b187
Merge "Updated from global requirements"
Merge "Fix security group race condition while creating rule"
Merge "Add debug log for core_filter"
Merge "Deduplicate module listings in devref"
Merge "VMware: Resize operation fails to change disk size"
Merge "libvirt: add support for guest NUMA topology in XML config"
Merge "Remove api reference section in devref"
Merge "Reduce unit test times for glance"
Merge "Add index for reservations on (deleted, expire)"