]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Sync volume versionedobject to ORM
authorThang Pham <thang.g.pham@gmail.com>
Fri, 28 Aug 2015 14:02:50 +0000 (07:02 -0700)
committerThang Pham <thang.g.pham@gmail.com>
Tue, 1 Sep 2015 14:49:10 +0000 (07:49 -0700)
commit3af149cfef71b943674b23340206977dfdadf253
tree80de02cb5b56454219fc9a1e4ef2e78e04344512
parent126e4f215e5fc0275a3c660990504b4e758de099
Sync volume versionedobject to ORM

The following patch syncs the volume object to match the
ORM.  More specifically, it adds metadata, admin_metdata,
volume_attachment, and volume_type to the volume object.
These fields are required to convert cinder internals to
use volume versionedobject.  It was originally part of
a large patch, but is broken up to make reviews more
bearable.

Change-Id: I80c1734072cb26acbe207914e812a3b169b69dfb
Partial-Implements: blueprint cinder-objects
cinder/objects/__init__.py
cinder/objects/base.py
cinder/objects/volume.py
cinder/objects/volume_attachment.py [new file with mode: 0644]
cinder/objects/volume_type.py [new file with mode: 0644]
cinder/tests/unit/fake_volume.py
cinder/tests/unit/objects/test_base.py
cinder/tests/unit/objects/test_volume.py
cinder/tests/unit/objects/test_volume_attachment.py [new file with mode: 0644]
cinder/tests/unit/objects/test_volume_type.py [new file with mode: 0644]