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
(cherry picked from I36fd52b97f790f1c68eaf24b6c12e7ef5d16145d)
Reviewed: https:/ /review. openstack. org/52449 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=0d9f2594fd9 8975c38998810b5 72cb1e223629b8
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit 0d9f2594fd98975 c38998810b572cb 1e223629b8
Author: zhangchao010 <email address hidden>
Date: Mon Oct 14 12:47:44 2013 +0800
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
(cherry picked from I36fd52b97f790f 1c68eaf24b6c12e 7ef5d16145d)
Change-Id: I6792aaae050b12 6088447a0df65e1 0c425b84102