CentOS 7
Sponsored Link

OpenStack Kilo : Configure Cinder(Storage Node)
2015/06/16
 
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 RDO, EPEL

[root@storage ~]#
yum --enablerepo=openstack-kilo,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]
state_path = /var/lib/cinder
api_paste_config = 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_host = 10.0.0.30
glance_port = 9292
notification_driver = cinder.openstack.common.notifier.rpc_notifier
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
# MariaDB connection info

[database]
connection = mysql://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
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = cinder
password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp
# RabbitMQ auth info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = guest
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

# show status

[root@storage ~]#
cinder-manage service list

Binary           Host         Zone             Status     State Updated At
cinder-scheduler dlp          nova             enabled    :-)   2015-06-16 13:29:56
cinder-volume    network      nova             enabled    :-)   2015-06-16 13:29:57

* it's not necessary to care the following warnings
/usr/lib/python2.7/site-packages/cinder/openstack/common/service.py:38: DeprecationWarning: 
The oslo namespace package is deprecated. Please use oslo_config instead.
  from oslo.config import cfg
No handlers could be found for logger "oslo_config.cfg"
Matched Content
 
Tweet