Part 1 Prep Host HERE
Part 3 Order storage and mount it in Openstack HERE
Part 2 Install Cinder Driver for EMC ViPR
This is the 2nd blog in a 3 part series that focus’s on using Openstack Cinder with EMC ViPR for block storage. This blog will focus on installing and configuring the EMC ViPR Cinder driver for Openstack Havana.
Download the EMC ViPR driver from GitHub. wget github.com/emcvipr/controller-openstack-cinder/archive/master.zip |
|
Unzip the master file unzip master |
|
Change directory into the controller-openstack-cinder-master/cinder/volume/drivers/emc directory |
|
Copy the vipr and sub directories to the Cinder driver directory cp –avr vipr /usr/lib/python2.6/site-packages/cinder/volume/drivers/emc |
|
Make a cookie directory for Cinder and give the cinder user permissions mkdir /usr/cookie chown cinder /usr/cookie |
|
Edit the cinder.conf file in the /etc/cinder directory. Add the above lines with the correct information for your deployment. |
|
While editing the cinder.conf file, serach for rpc_response_timeout. By default it will be commented out and its value will be 60. Uncomment it, and change the value to 300 Save your changes |
|
Run the following cinder commands using the correct url, username, password,and tenant for your environment. cinder --os-username admin --os-password password --os-tenant-name admin --os-auth-url=http://10.10.81.64:35357/v2.0 type-create vipr This add's the volume-type named vipr cinder --os-username admin --os-password password --os-tenant-name admin --os-auth-url=http://10.10.81.64:35357/v2.0 type-key VIPRID set ViPR:VPOOL=Openstack-Cinder This backs the volume type with the Openstack-Cinder Virtual pool |
|
Logon to the Horizon dashboard. Under volume types you should see the “vipr” type created in the last step |
|
From the ViPR cli directory run the following python command: python viprcli.py authenticate -u root -d /usr/cookie |
|
Cat the initiator name to get the iqn for the server |
|
Add the host to ViPR: python viprcli.py openstack add_host -name rdo.ebc.emc.local -wwpn <initiator> |
|
Under the Virtual array on the ViPR console, click through till you get to the OpenNetwork. You should see the initiator added. |
|
Under physical assests, hosts you should see the host. |
Comments