]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Huawei drivers to support other host OSs
authorzhangchao010 <zhangchao010@huawei.com>
Mon, 14 Oct 2013 04:47:44 +0000 (12:47 +0800)
committerzhangchao010 <zhangchao010@huawei.com>
Mon, 14 Oct 2013 04:47:44 +0000 (12:47 +0800)
commitb30402eeeddefb855126a32fee15db164684ba8c
treecf55d16d37b1187bff408ad85b7e8eb412c75e8d
parentc287b15d8108b7b1bf716897aa3079f933ccd832
Fix Huawei drivers to support other host OSs

Huawei drivers create Linux hosts by default when attaching volumes.
This patch makes them also support Windows, XenServer, AIX, etc.
The default OS is still Linux if it is not specified.

Users need to configure the host OS types in Huawei XML configuration
file. They need to set the items like this:
<Host OSType="Windows" HostIP="10.10.0.1, 10.10.0.2, ..." />
<Host .../>

When attaching a volume, the driver will get the host IP from nova. We
compare that IP with the IP in "HostIP" to get the corresponding OS type.

Closes-bug: #1229759
Change-Id: I36fd52b97f790f1c68eaf24b6c12e7ef5d16145d
cinder/tests/test_huawei_hvs.py
cinder/tests/test_huawei_t_dorado.py
cinder/volume/drivers/huawei/__init__.py
cinder/volume/drivers/huawei/huawei_dorado.py
cinder/volume/drivers/huawei/huawei_hvs.py
cinder/volume/drivers/huawei/huawei_t.py
cinder/volume/drivers/huawei/huawei_utils.py [new file with mode: 0644]
cinder/volume/drivers/huawei/rest_common.py
cinder/volume/drivers/huawei/ssh_common.py