Removes fixed_ip_get_network

Removes fixed_ip_get_network since it doesn't actually work anymore
(at some point in the past the network must have been stored along
with the network_uuid but this is no longer the case) and nothing
else uses it anyway.

Also cleans up fake db test model to remove the fake_fixed_ip_get_network
and underlying network reference which makes it closer in sync
to what is actually implemented now

Change-Id: I01dc0f88a8bc7cfef01c4e7f328bcdba75a8e0bc
Update vol mount smoketest to wait for volume.

Updates the test_003_can_mount_volume smoke test so that it
waits for the volume to show up in /proc/partitions for up
to 60 seconds before proceeding. This eliminates the need for
a hard coded sleep value which can cause intermittent test failures.

Change-Id: Ibdc56a00e141211e40068c22fc268efeba6affff
Remove volume.driver and volume.iscsi

Remaining flags moved to nova.virt.libvirt.volume

Part of bp delete-nova-volume

Change-Id: I1b96c773f0b5df73b04215a4afb350a5583b0101
Fixes usage of migrate_instance_start

Because migrate_instance_start is used to remove floating ips on the source
compute node, we need send the RPC to the source compute node instead of
the dest compute node.

Fixes bug 1078207

Change-Id: Ie993548944268e1ab3af0b89e74e1b54d8137802
Merge "Remove volume.driver and volume.iscsi"
Try hard shutdown if clean fails on resize down

In the xenapi driver, a clean shutdown is attempted before a resize
down.  If the Xenapi raises an exception it is logged and ignored and
the resize will fail later in the process.  This adds a hard shutdown
attempt if the clean shutdown fails.

Change-Id: I458931a19dd2375ad7142d60cb8b6ed274de9483
Add DB query to get in-progress migrations.

Adds DB query to get in-progress migrations.  This will be needed
by resource tracker to get more accurate usage values around inbound
and outbound resizes.

bug 1065267

Change-Id: Ib111002c70aa16e404c6e2c3fcb4ad234177ce91
Merge "Try hard shutdown if clean fails on resize down"
Merge "Add DB query to get in-progress migrations."
Merge "Update vol mount smoketest to wait for volume."
fix flag type define error.

Change-Id: Ieac6bfaf3bf8f967e76873c933cf131d7d7a91b1
Merge "Removes fixed_ip_get_network"
Isolate tests from the environment variable http_proxy.

This fixes bug 1078548.

This is done by adding a dependency on the fixtures library, which has
dedicated code for just this sort of thing, and using it in the base class.

Change-Id: I841fbf912b1a3ab43ca8c52c779d930aaf4a0e96
Remove gen_uuid()

Removed gen_uuid and uuid related unittests
Replaced utils.gen_uuid() with uuid.uuid4()

Change-Id: I3020a0d67525eb73cfb8873d2570c93e2022bb76
Merge "fix flag type define error."
Merge "Isolate tests from the environment variable http_proxy."
Merge "Remove gen_uuid()"
Make sure instance data is always refreshed

Fixes bug 1078793

When updating an instance's instance_type_id, the 'instance_type' joined
to the instance is not updated.  This updates that.  A DB API test is added
that failed before and passes now.

Also: Some cases of passing stale instance data within resize_instance()
and finish_resize() were found and addressed.

Change-Id: If335cc286a71597d3100425080e51c75aeec7a50
Add module for loading specific classes

This adds nova/loadables.py which contains code that is to be shared by
host and cell scheduling filtering and weighing.

Most of this code originated from nova/scheduler/filters/__init__.py
(which was copied from nova/api extension loading).

This makes it more generic so that it can be shared.  Note that this
functionality is quite different than the generic plugin manager that
exists in openstack-common.  That code could not be used here without
some significant changes.  It also seems pretty overkill for the
functionality required by scheduling filtering and weighing.

Change-Id: I1b217dc2bc2d1dc2235c8251318d06b46597e8f4
Refactor scheduling filters

This changes the scheduling filters to use the code in nova/loadables.py
to locate filtering classes.  This also creates some base functionality
in nova/filters.py to be used by both the host scheduler and the cells
scheduler.

The scheduler_available_filters default has changed to
'nova.scheduler.filters.all_filters' which is better named compared to
the old setting of 'standard_filters'.  The old method is still
supported for those that have put it explicitly in their configs, but
it's marked as deprecated.

DocImpact

Change-Id: I84fdeafdba0275ab4b25f8857563bd7b1494bb69