]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Improve Cinder API internal cache interface
authorMathieu Gagné <mgagne@iweb.com>
Tue, 19 Aug 2014 21:07:42 +0000 (17:07 -0400)
committerMathieu Gagné <mgagne@iweb.com>
Thu, 21 Aug 2014 13:08:41 +0000 (09:08 -0400)
commit4aeb7256ef4cc75bae4ff9258a5bcf6092b3c834
treee0b5f73f277308e4451827f959cb85ca9809f41e
parent110f3bcd0991fc5e57dc1c6031197436b937eaaf
Improve Cinder API internal cache interface

Improve the internal caching system used by the API layer
by borrowing the implementation used by Nova.

Unlike the previous implementation, this new interface makes it clear
which resource types are added or retrieved from the cache.

This change also adds other resources to the cache:
- backups
- snapshots
- volume types

It's now possible to remove database access those extensions:
- extended_snapshot_attributes
- volume_host_attribute
- volume_mig_status_attribute
- volume_tenant_attribute

Closes-bug: #1358524
Change-Id: I1fc673d0c01c41faa98292d5813d4471b455d712
12 files changed:
cinder/api/contrib/backups.py
cinder/api/contrib/extended_snapshot_attributes.py
cinder/api/contrib/volume_host_attribute.py
cinder/api/contrib/volume_mig_status_attribute.py
cinder/api/contrib/volume_tenant_attribute.py
cinder/api/openstack/wsgi.py
cinder/api/v1/snapshots.py
cinder/api/v1/volumes.py
cinder/api/v2/snapshots.py
cinder/api/v2/volumes.py
cinder/tests/api/contrib/test_extended_snapshot_attributes.py
cinder/tests/api/openstack/test_wsgi.py