]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add db table for Glance Metadata
authorOllie Leahy <oliver.leahy@hp.com>
Thu, 15 Nov 2012 11:48:27 +0000 (11:48 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Wed, 21 Nov 2012 08:38:15 +0000 (08:38 +0000)
commit1a431edff622ad62707cce085d2af6683a995e3f
treeb4b8a028b09419b62d118c43872882ff25f47769
parentceee1fdaf2f54666ac72c6aa8076f92b6289327c
Add db table for Glance Metadata

This commit implements the blueprint
https://blueprints.launchpad.net/cinder/+spec/retain-glance-metadata-for-billing

It creates the new table volume_glance_metadata in the cinder
database, provides the CRUD methods for it, and populates the table
when a volume or snapshot is created from a Glance image.

Patch set 2: remove superflous line

Patch set 3: Fix incorrect column types in sqlalchemy/models.py

Patch set 4: Define exception class GlanceMetadataExists

Change-Id: I8f98f6eaae005a33bfd49cea783774407b7aa120
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/exception.py
cinder/tests/test_volume_glance_metadata.py [new file with mode: 0644]
cinder/volume/manager.py