CentOS 7
Sponsored Link

OpenStack Mitaka : Configure Cinder#2 (Service Node)2016/05/08

 
Install OpenStack Block Storage (Cinder).
For this example, Install Cinder API Server on Control Node which Keystone/Glance/Nova API are already installed, and Install Cinder-Volume on Block Storage Service Node.
                                      +------------------+
                             10.0.0.50| [ Storage Node ] |
+------------------+            +-----+   Cinder-Volume  |
| [ Control Node ] |            | eth0|                  |
|     Keystone     |10.0.0.30   |     +------------------+
|      Glance      |------------+
|     Nova API     |eth0        |     +------------------+
|    Cinder API    |            | eth0| [ Compute Node ] |
+------------------+            +-----+   Nova Compute   |
                             10.0.0.51|                  |
                                      +------------------+

 
Configure Block Storage Service Node on this section.
[1] Install Cinder Volume.
# install from Mitaka, EPEL

[root@storage ~]#
yum --enablerepo=centos-openstack-mitaka,epel -y install openstack-cinder targetcli
[2] Configure Cinder Volume.
[root@storage ~]#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

[root@storage ~]#
vi /etc/cinder/cinder.conf
# create new

[DEFAULT]
# define own IP address

my_ip = 10.0.0.50
state_path = /var/lib/cinder
api_paste_config = /etc/cinder/api-paste.ini
enable_v1_api = True
enable_v2_api = True
osapi_volume_listen = 0.0.0.0
osapi_volume_listen_port = 8776
auth_strategy = keystone
rpc_backend = rabbit
# specify Glance server

glance_api_servers = http://10.0.0.30:9292
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
# MariaDB connection info

[database]
connection = mysql+pymysql://cinder:password@10.0.0.30/cinder
# Keystone auth info

[keystone_authtoken]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp
# RabbitMQ connection info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = openstack
rabbit_password = password
[root@storage ~]#
chmod 640 /etc/cinder/cinder.conf

[root@storage ~]#
chgrp cinder /etc/cinder/cinder.conf

[root@storage ~]#
systemctl start openstack-cinder-volume

[root@storage ~]#
systemctl enable openstack-cinder-volume

Matched Content