Nova options tool enhancements

Fixes bug #936898

1. Just import the modules and only look at nova.flags.FLAGS
   when they're all imported

2. ConfigOpts is iterable, there should be no need to iterate
   the private FLAGS._opts dict

3. Output should be .ini style

4. The output should only contain comments
   i.e. each option default should be commented out

Change-Id: I15835bb437bc6d575e8311d7c55b3a29d67b006d
Fix nova-manage floating create docs.

Fix RST docs that describe nova-manage floating create syntax.

Change-Id: I743a750b55b2007cc756cfd3c1b34d07c479fb5a
Add missing directive to tox.ini.

Change-Id: Ib6d178af62f631de76e66c2bb6c07fd6b277fa97
Decode nova-manage args into unicode.

This improves handling of non-ASCII args... it's not
exactly a comprehensive solution, though.

Partial (demonstration) fix for bug 931667.

Change-Id: Icc2aabe9c0c521732003f7013438630ebc8d2238
Check all migrations have downgrade in test_misc

Fixes bug #942406

Change-Id: Ifbc74c12a4c58d4e2117295c088051062a0b3b1c
sm volume driver: fix backend adding failure

Fixes bug 915085

Change-Id: I908d2090815a90bae479d5caf8516e52fd879c8e
Test creating a server with metadata key too long.

Related to bug 917484.

This bug reported that the OpenStack API returned the wrong type of
error when creating an instance with a metadata key that was too long.
I added this unit test to try it out and it appears to work as expected,
so might as well just keep the test around.

Change-Id: Ie4bcf81741a268fd8319e1ecaad5639ad8c9b6f7
Adds soft-reboot support to libvirt

 * Falls back to hard reboot if guest doesn't respond
 * Cleans up reboot/rescue/unrescue interaction
 * Fixed fake for tests
 * Added a force hard reboot test to verify fallback works
 * Fixes bug 939557

Change-Id: I8d0c9a35725de5e5bfb8f13a2d869c6122ba44ef
fix for bug 821252.  Smarter default scheduler

compute_scheduler_driver = DistributedScheduler

Change-Id: I8123a120afd80c2b088a387eaab8f5a99a877fe0
Ensure image status filter matches glance format

* Fixes bug 943259

Change-Id: Id5172aa40be2f5a337b3e192b4bee8139c16c4d3
Fixes bug 942556 and bug 944105

Ensures the calls in the xenhost plugin work when the host is in
a xenserver pool managed by the host aggregates feature.

Change-Id: I51ca6b9f6d0e8d86d53afde5bf46cfabde17a44e
Display error for invalid CIDR.

Display an error to the user when giving an
invalid CIDR. Fixes bug 917982.

Change-Id: I5def054f5cc8e14bc8ebd981744d7d7af7f5710b
Retry download_vhd with different glance host each time

Fixes bug 944096

Change-Id: I33aa3774ba7f266e85f09c6c569fdd0f895478b4
Fixes for ec2 images

 * Fixes s3 image service to convert back to uuids on update
 * Adds exception for attempt to update an unowned image
 * Adds error messages to ec2 for failure cases
 * Adds tests to verify changes
 * Fixes bug 942865

Change-Id: I35331c635756f10c02b30dd43ab3fe0ad98bc28c
Do not invoke kill dnsmasq  if no pid file was found.

fixes Bug 943690

Change-Id: I2b1f5cc66ba6ef02219c0d4445487bdd3a541f4b
Cleanup swap in _create_vm undo

Fixes bug 945198

Change-Id: I697fab1bbfdd45fc22d5490524e138c4f377bc58
Remove unused session variable in test setup

Change-Id: Ib53a0d76d660cc7a002894ef63bc25c293f92fa0
Use stubout instead of manually stubbing out versions.VERSIONS

Change-Id: Id8277989aa0ad0e91464c37cde41ee854356144e
Handle InstanceNotFound during server update

fixes bug 945206

Change-Id: I4e5519cf03e61db78ee1f147f07bc2d1c0e01c49
Use test.TestCase instead of manually managing stubout

Change-Id: I785e86af37ae484235ef7a933335cd484769ae80