Port existing code to utils.ensure_tree

Now that we have ensure_tree in utils, port most users of
os.makedirs() to use it.

Change-Id: I3256cbb76bd889f99f1e6f3367bd620645f828a1
Include launch-index in openstack style metadata.

Resolves bug 1042020.

Change-Id: I545b771e24a15e109b06b76e9c34a78bc1425b6c
Update nova.conf.sample

Regenerate to account for unused options which were removed by
commit ea06eff7e7

DocImpact: update nova.conf docs
Change-Id: I1082d2869d0b9d33747fb877efb6d99344074b2c
Fix KeyError when test_servers_get fails.

Updates the integrated.test_api_samples.ServersSampleAllExtensionXmlTest
test_servers_get function so that it doesn't try to list the line number
when the test fails.

Fixes a KeyError: '\'i\' exceptions.

Partial fix for LP Bug #1042709.

Change-Id: I666d18c1d4585cebce4534b1f16cd327850e8cdc
Fix PEP8 issues.

Fix some pep8 issues in doc/ext/nova_todo.py make the code looks pretty.

Change-Id: I026c873b487b507a758a2cdb70b444b64702b7fa
Accept role list from either X-Roles or X-Role

Accept the list of roles from either the newer X-Roles header or the
deprecated X-Role header.

This is useful for interoperability with a software proxy in front
of Nova API that performs token authentication and might use the
older header.

Change-Id: I47e33233edf596dd14d07b6be16b030fd6bc352d
Merge "Port existing code to utils.ensure_tree"
Merge "Fix KeyError when test_servers_get fails."
Do not run pylint by default

pylint creates some files, and leaves git in a detached HEAD.

pylint can still be run via 'tox -epylint'

Change-Id: Ic0193f2488f1c6eb4a9f0fabbe24ac9869239890
Merge "Include launch-index in openstack style metadata."
Merge "Accept role list from either X-Roles or X-Role"
External locking for image caching.

If the instance storage is shared between compute nodes, then you
need external locking which is also shared to avoid clobbering each
other's attempts to cache base images. Resolves bug 1014227.

Change-Id: Ic2ac87840904fa199c17774dae9556ad6c7a3eaf
Merge "Fix PEP8 issues."
Assume virt disk size is consumed by instances.

Use disk_available_least other than free_disk_gb to consume.
assume virt disk size is consumed by instances when calculate
the available disk size.
fix bug lp:1042071

Change-Id: I82dc3bcfd97219085c624c81dfa47cbf0bcd4504
Merge "Do not run pylint by default"
Add a new exception for live migration.

Raises new exception InvalidLocalStorage instead of
InvalidSharedStorage when block migration is used with shared storage.
Corrects the message of InvalidSharedStorage.

Fixes bug 1043165

Change-Id: I68bfac3f89276edc38c00ca963911fe07456dc0d
Implements PowerVM get_available_resource method.

Implements get_available_resource method in the PowerVM driver to
fix the failure when launching nova-compute. Also, it removes the
update_available_resource method from PowerVMDriver which is no longer
required.

Fixes bug 1040789

Change-Id: Ibc7e9b80e6d9b8ef3c1a844783a890c592517f89
hacking: Add driver prefix recommendation.

Prefixing the commit message's first line with the driver makes it
easier for reviewers, at a glance, to find reviews that relate to their
area of expertise as well as improving the overall readability of the
git history.

Change-Id: I376d2cdb5dc344717fb7749a80e33ee88603e68c
Sort API extensions by alias.

Updates the ExtensionManager so that extensions are sorted by alias when
accessed via the get_resources or get_controller_extensions functions.

This fixes the
integrated.test_api_samples.ServersSampleAllExtensionXmlTest.test_servers_get
test which fails on Fedora 17 (but passes on Fedora 16 and apparently
some other distros as well).

Includes updated api_samples for XML that was regenerated by the
test_servers_get test.

Fixes LP Bug #1042709.

Change-Id: I82c679f457a3cd11c8a8cd76f402693b61bb14cc
Update requires to glanceclient >=0.5.0

Change-Id: If788b94a142f469b5ce47c49a4dcdb05f1455cce