User Tools

Site Tools


Sidebar

progetti:cloud-areapd:ced-c:installation_and_configuration_of_openstack_cinder_volume_draft

Installation and Configuration of OpenStack Cinder Volume

Author:

  • Paolo E. Mazzon (DEI)
  • Matteo Menguzzato (DFA)
  • Gianpietro Sella (DISC)

Prerequisites

2 node with:

  • Updated CentOS7
  • Make sure that yum autoupdate is disabled
root@controller-01 ~]# grep ENA /etc/sysconfig/yum-autoupdate
# ENABLED
ENABLED="false"
  • At least 20GB HD for operating system and OpenStack software and related log files
  • SELinux configured as "Disabled" (/etc/selinux/config)
  • EPEL 7
  • A MySQL (possibly a HA cluster) endpoint the Cinder volume daemon can connect to (in this guide we're using our MySQL Percona cluster's IP 192.168.60.180)
  • A HAProxy/Keepalived cluster to use for load-balancing and Virtual IP (in this tutorial we're using the IP 192.168.60.180 for mgmt net and 90.147.143.10 for public net)
  • a management network network, IP 192.168.60.150 for node 1 and IP 192.168.60.151 for node 2
  • a SAN network 192.168.40.xxx
  • a SAN dell equallogic with IP 192.168.40.100
  • assign user "cinder" to group "disk" (when install cinder-volume package)

Note 1: that the specified endpoint must belong to the SAN network in order to make the cinder-generated traffic pass through the SAN network. In this case all compute node must be connected to SAN network.

Cinder Volume

The host's IP address where Cinder Volume will be installed into is 192.168.60.150 and '192.168.60.151. In addition consider the two controller IPs where clustered RabbitMQ and the glance-api services are running: 192.168.60.152 and 192.168.60.153.

yum install -y openstack-cinder openstack-utils
 
openstack-config --set /etc/cinder/cinder.conf DEFAULT my_ip 192.168.60.150
openstack-config --set /etc/cinder/cinder.conf DEFAULT iscsi_ip_address 192.168.40.100
openstack-config --set /etc/cinder/cinder.conf DEFAULT san_ip 192.168.40.100
openstack-config --set /etc/cinder/cinder.conf DEFAULT san_login grpadmin #insert corretc value
openstack-config --set /etc/cinder/cinder.conf DEFAULT san_password xxxxx #insert correct value
openstack-config --set /etc/cinder/cinder.conf DEFAULT eqlx_group_name group-0 #insert correct value
openstack-config --set /etc/cinder/cinder.conf DEFAULT eqlx_pool default #insert correct value
openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.eqlx.DellEQLSanISCSIDriver
openstack-config --set /etc/cinder/cinder.conf DEFAULT auth_strategy keystone
openstack-config --set /etc/cinder/cinder.conf DEFAULT rpc_backend cinder.openstack.common.rpc.impl_kombu
openstack-config --set /etc/cinder/cinder.conf DEFAULT rabbit_hosts 192.168.60.152:5672,192.168.60.153:5672
openstack-config --set /etc/cinder/cinder.conf DEFAULT rabbit_ha_queues True
openstack-config --set /etc/cinder/cinder.conf DEFAULT sql_idle_timeout 30 
openstack-config --set /etc/cinder/cinder.conf DEFAULT rootwrap_config /etc/cinder/rootwrap.conf
openstack-config --set /etc/cinder/cinder.conf DEFAULT api_paste_confg /etc/cinder/api-paste.ini
openstack-config --set /etc/cinder/cinder.conf DEFAULT control_exchange cinder
openstack-config --set /etc/cinder/cinder.conf DEFAULT sql_connection "mysql://cinder:<CINDER_DB_PWD>@192.168.60.180:4306/cinder"
openstack-config --set /etc/cinder/cinder.conf DEFAULT glance_api_servers 192.168.60.152:9292,192.168.60.153:9292
 
openstack-config --set /etc/cinder/api-paste.ini filter:authtoken paste.filter_factory keystoneclient.middleware.auth_token:filter_factory

Start Cinder-Volume

systemctl start openstack-cinder-volume
systemctl enable openstack-cinder-volume

To change Cinder-Volume service for an virtaul disk

connect to mysql and change databse:
mysql> use cinder;
 
search all virtual disk available:
mysql> select id,host from volumes where status='available';
+--------------------------------------+-----------------------------+
| id                                   | host                        |
+--------------------------------------+-----------------------------+
| 0a729195-2e97-414c-8fc2-f5e20da138c8 | cld-blu-02.cloud.pd.infn.it |
| 6a58891d-22d7-4303-8417-221623941214 | cld-blu-02.cloud.pd.infn.it |
| 817641fe-be18-45dc-8c34-283b368edfc5 | cld-blu-02.cloud.pd.infn.it |
| ae108c93-a4e5-44c9-88b4-e3b00a3e368a | cld-blu-01.cloud.pd.infn.it |
| df8ea9f9-2e69-41a9-aedb-bab471f55d87 | cld-blu-02.cloud.pd.infn.it |
+--------------------------------------+-----------------------------+
5 rows in set (0.00 sec)
 
change host for the virtual disk with selected id:
mysql> update volumes set host='cld-blu-01.cloud.pd.infn.it' where id ='ae108c93-a4e5-44c9-88b4-e3b00a3e368a'
progetti/cloud-areapd/ced-c/installation_and_configuration_of_openstack_cinder_volume_draft.txt · Last modified: 2015/10/05 09:22 by mazzon@infn.it