]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
CG driver function should not access db
authorXing Yang <xing.yang@emc.com>
Tue, 25 Aug 2015 04:46:53 +0000 (00:46 -0400)
committerXing Yang <xing.yang@emc.com>
Wed, 11 Nov 2015 11:38:40 +0000 (06:38 -0500)
commitf18cb6374e68e4d904125e9d99b809354fbdf9ee
treee4f7662c0afd4ae00387551f7fb9925feaf7b051
parentaf2fb820fe3ca0bc8c9c35153fa7868fa1ea866e
CG driver function should not access db

Currently the following CG driver interfaces don't pass in volumes
or snapshots to the driver. As a result, drivers have to retrieve info
from db. In this patch, these interfaces are changed so that drivers
don't have to access db.

Removing the access to db from driver CG functions will be handled by
separate patches.

* create_consistencygroup
* delete_consistencygroup
* create_cgsnapshot
* delete_cgsnapshot

Change-Id: I63287fd43927fc09dad77292ecfe561917f7bda5
Closes-Bug: #1501466
28 files changed:
cinder/tests/unit/test_dellsc.py
cinder/tests/unit/test_emc_vmax.py
cinder/tests/unit/test_emc_vnxdirect.py
cinder/tests/unit/test_emc_xtremio.py
cinder/tests/unit/test_gpfs.py
cinder/tests/unit/test_hp3par.py
cinder/tests/unit/test_hplefthand.py
cinder/tests/unit/test_ibm_xiv_ds8k.py
cinder/tests/unit/test_prophetstor_dpl.py
cinder/tests/unit/test_pure.py
cinder/tests/unit/test_storwize_svc.py
cinder/tests/unit/volume/drivers/emc/scaleio/mocks.py
cinder/volume/driver.py
cinder/volume/drivers/dell/dell_storagecenter_common.py
cinder/volume/drivers/emc/emc_cli_fc.py
cinder/volume/drivers/emc/emc_cli_iscsi.py
cinder/volume/drivers/emc/emc_vmax_fc.py
cinder/volume/drivers/emc/emc_vmax_iscsi.py
cinder/volume/drivers/emc/xtremio.py
cinder/volume/drivers/ibm/gpfs.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/drivers/ibm/xiv_ds8k.py
cinder/volume/drivers/prophetstor/dplcommon.py
cinder/volume/drivers/pure.py
cinder/volume/drivers/san/hp/hp_3par_fc.py
cinder/volume/drivers/san/hp/hp_3par_iscsi.py
cinder/volume/drivers/san/hp/hp_lefthand_iscsi.py
cinder/volume/manager.py