Fix cache lock for image not consistent

Currently 2 external (file) locks with different name
are created to protect image concurrent access for libvirt driver.
This may lead to image corruption in rare case. This patch change
the lock file name from nova-_var_lib_nova_instances_base_xxxx
to nova-xxxx to make the lock name consistent

Change-Id: I3e60c3bcf456d2392409aa56ba05f4ad8fdc0444
Closes-Bug: #1265452
Call get_pgsql_connection_info from _test_postgresql_opportunistically

The _test_postgresql_opportunistically method was calling the method to
parse the mysql connection URL which is wrong when there is one
specifically for postgresql, so call the right method.

This wasn't causing issues obviously but is something that needs to be
cleaned up regardless.

Closes-Bug: #1274718

Change-Id: Ic572e612c7ce31d854dc7258aa9c8b89a197260e
Refactoring metadata/base

- Extracted out methods from get_openstack_item for handling version, content and path
- Replaced the if else style route configuration with a route configuration dict
- This will help adding new apis easier and be maintainable

Change-Id: Ie1885c439f3d119032dd1c7c7af070142987ba7f
Partially implements: blueprint metadata-service-callbacks
Remove broken quota-classes API

It turns out os-quota-classes-sets never worked
(http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html). Since this doesn't work no need to keep it around.

V3 removal: Id1f288baa723df825151bd84aa27089271c2b8e4
Original commit: I6b6477481187d16af225d33c1989430e4071d5a8

This patch just removes the API it doesn't remove the quota-class
internals, that will be done in a subsequent patch.

Change-Id: I1110022d6f628d03aaf363da707f2d2ef1600437
Fix comment typo in nova/compute/api.py

'NODE' should be 'NOTE'

Change-Id: I47b9d8d796882b09350ec241a8f5d95b4ea9dd28
Closes-bug: 1285519
Cleanup v3 test_versions

This commit removes duplicate codes for clarifying what this test
verifies.

Change-Id: I5f6e06dbb0e612981528d89b61b2a8a025e984f1
Remove db query from deallocate_fixed_ip

A previous patch updated deallocate_for_instance() in nova-network to
take the full instance object over rpc.  This patch passes that instance
through nova-network to deallocate_fixed_ip(), which allows us to avoid
N instance db lookups (where N is the number of fixed IPs being
deallocated).

Related to blueprint nova-network-objects

Change-Id: Ib92e824f1bea2caae668945fabfae997632cd5f0
Add support for tenant_id based authentication with Neutron

Keystone v3 supports non-unique project/tenant names, so
Nova should switch to using tenant ID for admin authentication.

Implements blueprint tenant-id-based-auth-for-neutron
DocImpact: Adds new flag, nova_admin_tenant_id, and deprecates
existing flag, nova_admin_tenant_name

Change-Id: I4a4ffe84fdcf98ace81fd148f096cad483aad96c
Merge "Cleanup v3 test_versions"
Merge "Remove db query from deallocate_fixed_ip"
Merge "Fix comment typo in nova/compute/api.py"
Merge "Add support for tenant_id based authentication with Neutron"
Merge "Remove broken quota-classes API"
Merge "Fix cache lock for image not consistent"
Merge "Refactoring metadata/base"
Make error notifications more consistent.

The error notifications sent by wrap_exception are a good source of
information when tracking down errors in the system. It is easy to spot
patterns in the errors by looking at similarities in the exceptions
raised.

This change looks at making the in-line error notifications
follow the same format, so they become equally useful.

Closes-Bug: #1251602
Change-Id: I1cd64a90ecefc64d12af05487eb6e45aa0362d69
Merge "Call get_pgsql_connection_info from _test_postgresql_opportunistically"