]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor Huawei iSCSI driver
authorzhangchao010 <zhangchao010@huawei.com>
Thu, 29 Aug 2013 02:33:52 +0000 (10:33 +0800)
committerzhangchao010 <zhangchao010@huawei.com>
Tue, 3 Sep 2013 02:45:54 +0000 (10:45 +0800)
commit17c4fd71038b0603bf4f0035e46fc0ff1bc517f7
tree56a3dcee690f0f4c113d02b0c1150e752202e2f3
parent034db09b9c7a29ce351896c75a332087fd2e7ec3
Refactor Huawei iSCSI driver

We plan to refactor Huawei iSCSI drivers and add Huawei FC
drivers. For that's a huge change, we break the codes into
three patches:
1.Refactor T iSCSI driver
2.Refactor Dorado iSCSI driver
3.Add FC drivers for both T and Dorado arrays.

This is the first patch, changes as follows:
1.Define a common class for both FC and iSCSI drivers, and
also provide a unified class HuaweiVolumeDriver for users.
The unified driver will call HuaweiTISCSIDriver according to
users' configuration. The HuaweiTISCSIDriver is a subclass of
driver.ISCSIDriver, so it could get good inheritance.
2.Support volume type.
3.Refactor unit test to make it more logic clear and add more
test cases to get higher coverage rate.

Change-Id: I79b7bac7f38f2dcbb22c5db6207d8b55906fdad1
cinder/tests/test_huawei.py [deleted file]
cinder/tests/test_huawei_t_dorado.py [new file with mode: 0644]
cinder/volume/drivers/huawei/__init__.py
cinder/volume/drivers/huawei/cinder_huawei_conf.xml.sample [deleted file]
cinder/volume/drivers/huawei/huawei_iscsi.py [deleted file]
cinder/volume/drivers/huawei/huawei_t.py [new file with mode: 0644]
cinder/volume/drivers/huawei/ssh_common.py [new file with mode: 0644]
cinder/volume/manager.py
etc/cinder/cinder.conf.sample