]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update get/delete_volume API to use versionedobjects
authorThang Pham <thang.g.pham@gmail.com>
Tue, 3 Nov 2015 14:15:37 +0000 (06:15 -0800)
committerThang Pham <thang.g.pham@gmail.com>
Thu, 12 Nov 2015 12:54:16 +0000 (04:54 -0800)
commitdabc7dedbb367b2eddf8db24bec6a91174d4245e
tree171637632e20e6d7e03f97e67f40406e1cf48e59
parent032032f0c329b4eddcbf2185399396ff4fd5f00d
Update get/delete_volume API to use versionedobjects

The following patch updates get_volume and delete_volume
API to use volume versionedobjects.  Changes were made to
be backwards compatible with older RPC clients. It only
includes changes to the core cinder code.  Changes in the
drivers are left to each driver maintainer to update.

Note that this patch DOES NOT try to use
object dot notation everywhere, since it would
increase the size of the patch.  Instead, it
will be done in subsequent patches.

Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Co-Authored-By: Szymon Wroblewski <szymon.wroblewski@intel.com>
Change-Id: Ifb36726f8372e21d1d9825d6ab04a072e5db4a6a
Partial-Implements: blueprint cinder-objects
28 files changed:
cinder/api/contrib/volume_manage.py
cinder/api/v1/volumes.py
cinder/api/v2/views/volumes.py
cinder/api/v2/volumes.py
cinder/cmd/manage.py
cinder/tests/unit/api/contrib/test_admin_actions.py
cinder/tests/unit/api/contrib/test_volume_actions.py
cinder/tests/unit/api/contrib/test_volume_host_attribute.py
cinder/tests/unit/api/contrib/test_volume_image_metadata.py
cinder/tests/unit/api/contrib/test_volume_manage.py
cinder/tests/unit/api/contrib/test_volume_migration_status_attribute.py
cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py
cinder/tests/unit/api/contrib/test_volume_transfer.py
cinder/tests/unit/api/contrib/test_volume_unmanage.py
cinder/tests/unit/api/v1/test_snapshot_metadata.py
cinder/tests/unit/api/v1/test_volume_metadata.py
cinder/tests/unit/api/v1/test_volumes.py
cinder/tests/unit/api/v2/stubs.py
cinder/tests/unit/api/v2/test_snapshot_metadata.py
cinder/tests/unit/api/v2/test_volume_metadata.py
cinder/tests/unit/api/v2/test_volumes.py
cinder/tests/unit/test_cmd.py
cinder/tests/unit/test_quota.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/test_volume_rpcapi.py
cinder/volume/api.py
cinder/volume/manager.py
cinder/volume/rpcapi.py