CentOS 7
Sponsored Link

OpenStack Pike : Cinder 設定#2 (Storage ノード)2017/09/06

 
OpenStack Block Storage(Cinder)をインストールします。
当例では以下のような環境を例に Cinder サービスをインストールします。
     ------------+---------------------------+---------------------------+------------
                 |                           |                           |
             eth0|10.0.0.30              eth0|10.0.0.50              eth0|10.0.0.51
     +-----------+-----------+   +-----------+-----------+   +-----------+-----------+
     |    [ Control Node ]   |   |    [ Storage Node ]   |   |    [ Compute Node ]   |
     |                       |   |                       |   |                       |
     |  MariaDB    RabbitMQ  |   |      Open vSwitch     |   |        Libvirt        |
     |  Memcached  httpd     |   |        L2 Agent       |   |     Nova Compute      |
     |  Keystone   Glance    |   |        L3 Agent       |   |      Open vSwitch     |
     |  Nova API             |   |     Metadata Agent    |   |        L2 Agent       |
     |  Neutron Server       |   |     Cinder-Volume     |   |                       |
     |  Metadata Agent       |   |                       |   |                       |
     |  Cinder API           |   |                       |   |                       |
     +-----------------------+   +-----------------------+   +-----------------------+

[1] Cinder Volume をインストールします。
# Pike, EPEL からインストール

[root@storage ~]#
yum --enablerepo=centos-openstack-pike,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
log_dir = /var/log/cinder
state_path = /var/lib/cinder
auth_strategy = keystone
# RabbitMQ 接続情報
transport_url = rabbit://openstack:password@10.0.0.30
# Glance サーバーを指定
glance_api_servers = http://10.0.0.30:9292

# 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

[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

関連コンテンツ