Improve floating IP delete speed.

This is similar to the change to improve bulk creation speed. Before:

./bin/nova-manage floating delete --ip_range 10.250.0.0/16
337.20user 10.22system 44:07.10elapsed 13%CPU (0avgtext+0avgdata 119536maxresident)k
400inputs+0outputs (4major+11704minor)pagefaults 0swaps

After:

./bin/nova-manage floating delete --ip_range 10.250.0.0/16
6.95user 0.16system 1:04.04elapsed 11%CPU (0avgtext+0avgdata 120016maxresident)k
0inputs+0outputs (0major+11750minor)pagefaults 0swaps

Resolves bug 1023560.

Change-Id: If4f23222025cae88576f469022e0f7d907c9c4fa
Add a criteria to sort a list of dict in api samples

Add 'key' parameter in the sorted call to order the list of dictionaries by a
specified criteria: the __tag__ value.
So far the sorted method considered an unspecified criteria (it seems it
considered the whole dict content) when ordering and this was causing some few
cases fail.

Change-Id: I1ebb295a7a3a53267e8f9f4286093f5b63d48eb3
xapi: Fix live block migration

Fixes bug 1040332.

Xapi VM.migrate_send and VM.assert_can_migrate calls require that
vdi_map parameter is a (source_vdi_ref -> target_sr_ref) mapping, for block
live migration to work, as of XenServer 6.0 RC1.

On the destination side:
This fix modifies the check_can_live_migrate_destination call, so that the
value returned contains the "destination_sr_ref" (XenAPI specific data is
stored under the "migrate_send_data key").

On the source side:
check_can_live_migrate_source and live_migrate calls assemble the
vdi_map by mapping all the local sr contained vdis of the VM to
destination_sr_ref, and passing this parameter to the VM.migrate_send and
VM.assert_can_migrate Xapi calls.

Change-Id: I95f3dca651d2e72fc727646580092a25f558d6ba
Add documentation for scheduler filters scope

Add documentation for bug 1039386

Fix other devref typos

Change-Id: Ife19ee5feb72dd75b91a03c4167d8f4e578a4a04
Make size optional when creating a volume from a snapshot.

This patch makes the field optional, defaulting to the same
size as the snapshot (and therefore the origination volume).

Mirror of change I3fea7fe1c0415d10e549c66a242cf2a336a7204e from
Cinder.

Change-Id: I940a048ecf8a7b8212fa4945e3aadf2de8176554
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
Merge "Add documentation for scheduler filters scope"
Merge "Make size optional when creating a volume from a snapshot."
Merge "xapi: Fix live block migration"
Merge "Add a criteria to sort a list of dict in api samples"
Merge "Improve floating IP delete speed."
Handle missing network_size in nova-manage

In 'nova-manage network create' --network_size should be optional.

Fixes bug 1046605

Change-Id: I25ce9acbe664810aa8fe9a3b4a2951c0fac4e41a
Prevent Partial terminations in EC2

When passing in a valid and an invalid EC2 id, the API should not partially
execute the command, and instead just return an error.

Fix bug 979336

Also prevents partial:
* starts
* stops
* reboots

Change-Id: I28fb4f34aadfb7af14774db983d44584e61c5414
Make ip block splitting a bit more self documenting.

Change-Id: If1343850d75707bc189ba11b33491361f7f58e29
Merge "Prevent Partial terminations in EC2"
Merge "Handle missing network_size in nova-manage"
Remove an unused import

Remove the nova.virt.driver import because it is not used

Change-Id: I6f9a0bd5593497d8e1af4dec9361064a374a00fb
Remove unused AddressAlreadyAllocated exception

Coincidentally, unused for two years now since commit 2f3a63ac

Change-Id: I2112c7686ef22116e777e397d4fc2c1bbbb1ad58
Convert to ints in VlanManager.create_networks

Fixes bug 1046778

Change-Id: I17647b0e495964c305e54221bf3fcfd6bdbc1547
Merge "Remove an unused import"
Merge "Remove unused AddressAlreadyAllocated exception"