在某个poc实施时要对接华为2200v3存储
1.查看平台是否有驱动
openstack对接华为存储_第1张图片
如果想要最新的驱动可以手动下载 https://github.com/openstack/cinder/tree/master/cinder/volume/drivers
2.查看 openstack是否支持这款型号的存储
openstack对接华为存储_第2张图片

3.存储工程师划好存储池(切记:主机组,lun组,主机都不要设置)对接完成后cinder会自己配置
我们可以看一下存储完成后的一些映射关系
a.主机
openstack对接华为存储_第3张图片
b.主机组
openstack对接华为存储_第4张图片
c.映射关系

openstack对接华为存储_第5张图片
d.存储池(这个我们在配置的时候会用到)
openstack对接华为存储

  1. 在/etc/cinder下创建一个华为自定义的驱动配置文件。文件格式是XML。
    openstack对接华为存储_第6张图片
    5.配置cinder.conf文件
    openstack对接华为存储
    openstack对接华为存储
    openstack对接华为存储
    6.重启cinder-volume

7.服务都起来后,在命令行创建锐捷卷类型,并绑定volume_backend_name

cinder type-create Huawei_Storage#volumes

8.cinder type-key卷类型ID set volume_backend_name= Huawei_Storage#volumes

查询是否配置成功

9.cinder type-show卷类型ID

遇到的问题

1.在对接时发现报SSL错误
openstack对接华为存储
解决方法:

a. 在华为存储的驱动上去掉SSL认证

vi rest_client.py
openstack对接华为存储
b.添加ca证书
在res = urllib.request.urlopen(req)改为res = urllib.request.urlopen(req,cafile="xxxxxx")
openstack对接华为存储

参考文档

https://docs.openstack.org/mitaka/config-reference/block-storage/drivers/huawei-storage-driver.html

https://github.com/huaweistorage/OpenStack_Driver/blob/master/ReleaseDoc/en/OpenStack%20Cinder%20Driver%20Configuration%20Guide.pdf