]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Snapshot and volume objects
authorThang Pham <thang.g.pham@gmail.com>
Mon, 10 Nov 2014 22:38:42 +0000 (17:38 -0500)
committerThang Pham <thang.g.pham@gmail.com>
Sun, 1 Mar 2015 22:47:54 +0000 (17:47 -0500)
commit21cda264dd855bee6e52fb21423dac74bf148dac
treefde997ba3e2c53f8eec229f885f13c0d37a6b617
parent2b4c8e79ecf912025a59b5f853abe1e54115746c
Snapshot and volume objects

Abstract volumes and volume snapshots into objects.
Get, create, and delete snapshot APIs were changed to
use new snapshot objects.  A skeleton volume object was
created, but cinder internals were not changed to use
the volume object, although volume is referenced and
used by the snapshot object.  The internals will be
changed to use volume object in a subsequent patch.

Change-Id: I387018e80c8539565e99454db65d976030002c0f
Implements: blueprint cinder-objects
22 files changed:
cinder/api/v1/snapshots.py
cinder/api/v2/snapshots.py
cinder/objects/__init__.py
cinder/objects/snapshot.py [new file with mode: 0644]
cinder/objects/volume.py [new file with mode: 0644]
cinder/test.py
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/api/contrib/test_extended_snapshot_attributes.py
cinder/tests/api/v1/test_snapshot_metadata.py
cinder/tests/api/v1/test_snapshots.py
cinder/tests/api/v2/test_snapshot_metadata.py
cinder/tests/api/v2/test_snapshots.py
cinder/tests/fake_snapshot.py [new file with mode: 0644]
cinder/tests/fake_volume.py [new file with mode: 0644]
cinder/tests/objects/test_snapshot.py [new file with mode: 0644]
cinder/tests/test_volume.py
cinder/tests/test_volume_rpcapi.py
cinder/volume/api.py
cinder/volume/drivers/lvm.py
cinder/volume/manager.py
cinder/volume/rpcapi.py
tools/lintstack.py