Ubuntu 14.04
Sponsored Link

OpenStack Liberty : Configure Cinder (Service Node)2015/12/28

 
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.
root@storage:~#
apt-get -y install cinder-volume python-mysqldb
[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
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /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_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+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
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 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:~#
initctl restart cinder-volume

Matched Content