openstack對接華爲存儲

在某個poc實施時要對接華爲2200v3存儲
1.查看平臺是否有驅動
openstack對接華爲存儲
若是想要最新的驅動能夠手動下載 https://github.com/openstack/cinder/tree/master/cinder/volume/drivers
2.查看 openstack是否支持這款型號的存儲
openstack對接華爲存儲html

3.存儲工程師劃好存儲池(切記:主機組,lun組,主機都不要設置)對接完成後cinder會本身配置
咱們能夠看一下存儲完成後的一些映射關係
a.主機
openstack對接華爲存儲
b.主機組
openstack對接華爲存儲
c.映射關係git

openstack對接華爲存儲
d.存儲池(這個咱們在配置的時候會用到)
openstack對接華爲存儲github

  1. 在/etc/cinder下建立一個華爲自定義的驅動配置文件。文件格式是XML。
    openstack對接華爲存儲
    5.配置cinder.conf文件
    openstack對接華爲存儲
    openstack對接華爲存儲
    openstack對接華爲存儲
    6.重啓cinder-volume

7.服務都起來後,在命令行建立銳捷卷類型,並綁定volume_backend_nameide

cinder type-create Huawei_Storage#volumesui

8.cinder type-key卷類型ID set volume_backend_name= Huawei_Storage#volumesurl

查詢是否配置成功命令行

9.cinder type-show卷類型ID3d

遇到的問題rest

1.在對接時發現報SSL錯誤
openstack對接華爲存儲
解決方法:htm

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

相關文章
相關標籤/搜索