make QuantumV2 support requested nic ordering

fixes bug 1064524

The QuantumV2 did not honor nic ordering, so nics were attached in
Quantum's db natural order.  This patch sorts the networks honor requested nic
ordering when Nova calls the V2Quantum API.  Unit tests have been updated to
confirm ordering is honored.

Change-Id: I44a6a4736c78e86e83b6e682e63f93a5b47652da
Add xenapi host_maintenance_mode() test

This bit of code is currently untested (except for the most
basic stubbed-out case).

Change-Id: I7193152480ed678c89be7b7dda5edf034f5dad2e
move python-cinderclient to pip-requires

python-cinderclient is now actually a requirement, move
this from test-requires to pip-requires to reflect that.

Fixes bug #1074085

Change-Id: Iea6c58faab2462d137049d690d58d951bd4e2c9e
xenapi: place boot lock when doing soft delete

If an instance is soft deleted a boot lock should be placed to ensure
it doesn't get restarted by accident.

Change-Id: Id46b8758f71d122d2a9cf7ae172fc138974bc315
Move parse_args to nova.config

The flags module will eventually be removed and this is a first step
towards that.

Change-Id: I729b08900e53e2ae6db10633dcff3be59720fa6f
Add uuidutils module

Added uuidutils to openstack-common.conf file and
updated nova/openstack/common

Change-Id: I256a12ab4367a8ee408a38cda7ae35a762b56efe
Use uuidutils.is_uuid_like for uuid validation

Change-Id: I8fc760062ecaee45d263db663a52971be96f264a
Cleanup nova.db.sqlalchemy.api import

Change-Id: I335fcd135a077d266653dfbacf9756bb8d47da14
Shorten self.compute.resource_tracker in test_compute.py

Replace "self.compute.resource_tracker" with "self.rt" to make
long lines short. This is only a clean-up. This is not intended
a functional change, though it implies that
self.compute.resource_tracker is not re-assigned during each test.

This is a preparation for a later patch that implements multiple
resource_trackers in a compute manager. It will use
"self.compute._get_resource_tracker(None)" or something instead of
"self.compute.resource_tracker".

Change-Id: If2cfe9e2541b435893017b0f56960d715761548b
Merge "Add uuidutils module"
Fix migrations when not using multi-host network

Commit d96102b6251d caused rpc.calls to network manager to occur for
non-multi-host configs, but they get sent to the
network.<destination_compute> topic when they should just go to
'network'.

Fixes bug 1075245

Change-Id: If2bb8b3897efb59b8dc41ea136b08146e4e56270
Send all migration data to revert_resize.

Update the revert_resize method of the compute rpc api to take all of
the migration data instead of just the migration id.  This removes the
need for doing a db read at the beginning of revert_resize.

Part of blueprint no-db-compute.

Change-Id: I821cfcbd8edf83a0ffdf64100b6f9224205dea0a
Send all migration data to finish_revert_resize.

Update the finish_revert_resize method of the compute rpc api to take
all of the migration data instead of just the migration id.
This removes the need for doing a db read at the beginning of
finish_revert_resize.

Part of blueprint no-db-compute.

Change-Id: I725404a13408fdd83aef6d19bab6c9481e2eab35
Send all aggregate data to add_aggregate_host.

Update the add_aggregate_host method of the compute rpc api to take in
all aggregate data instead of just the aggregate id.  This avoids a db
lookup in the nova-compute service.

Part of blueprint no-db-compute.

Change-Id: Iaccfa28ac23452a4e78581c6b5a6687417283838
Use chance scheduler in EC2 tests

The default scheduler switched to the filter scheduler, and apparently
the EC2 tests are meant to use the chance scheduler for testing.  Also,
compute_scheduler_driver is not recognized when these tests are run
individually.

Fixes bug 1075293

Change-Id: I4a7cae4b3dbd18b8779c44e4c30718a872a82b0a
Look up stuck-in-rebooting instances in manager

The poll_rebooting_instances() method for a virt driver can be
called periodically from the manager to handle instances that
may be stuck in a rebooting state. The only information passed
to the virt driver is the configured timeout, which means any
driver implementing this will have to do the same database
query: db.instance_get_all_hung_un_rebooting (..., timeout).

This patch makes the manager do this before calling the virt
driver, passing the appropriate set of instances, which avoids
the need for the driver to make that call.

Related to bp/no-db-compute

Change-Id: I152cb8cd9a107f2d2b1df39401ab7bbe7ff366f1
Merge "Use uuidutils.is_uuid_like for uuid validation"
Merge "Cleanup nova.db.sqlalchemy.api import"
Merge "xenapi: place boot lock when doing soft delete"
Merge "Add xenapi host_maintenance_mode() test"