CentOS 7
Sponsored Link

OpenStack Newton : Cinder 設定#2 (Service ノード)2016/10/26

 
OpenStack Block Storage(Cinder)をインストールします。
ここでは、以下のように、Keystone/Glance/Nova API インストール済みの Control ノード に 新たに Cinder API をインストールし、 Block Storage Service ノードに Cinder-Volume をインストールして設定します。 ( 例として役割ごとに分けていますが、All in One 構成にすることももちろん可能です )
                                      +------------------+
                             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|                  |
                                      +------------------+

 
ここでは、Block Storage Service ノードの設定をします。
[1] Cinder Volume をインストールします。
# Newton, EPEL からインストール

[root@storage ~]#
yum --enablerepo=centos-openstack-newton,epel -y install openstack-cinder python2-crypto targetcli
[2] Cinder Volume の基本設定です。
[root@storage ~]#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

[root@storage ~]#
vi /etc/cinder/cinder.conf
# 新規作成

[DEFAULT]
# 自ホストのIPアドレス

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
# Glance サーバーを指定

glance_api_servers = http://10.0.0.30:9292
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
# MariaDB の接続情報

[database]
connection = mysql+pymysql://cinder:password@10.0.0.30/cinder
# Keystone 認証情報

[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 認証情報

[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

関連コンテンツ