Debian 12 bookworm
Sponsored Link

OpenStack Zed : Cinder 設定 (Storage ノード)2023/06/29

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

[1] Cinder Volume をインストールします。インストール中の問には全て [No] で OK です。
root@network:~#
apt -y install cinder-volume python3-mysqldb
[2] Cinder Volume の基本設定です。
root@network:~#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

root@network:~#
vi /etc/cinder/cinder.conf
# 新規作成

[DEFAULT]
# 自ホストの IP アドレス
my_ip = 10.0.0.50
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
state_path = /var/lib/cinder
auth_strategy = keystone
# RabbitMQ 接続情報
transport_url = rabbit://openstack:password@dlp.srv.world
enable_v3_api = True
# Glance 接続情報
glance_api_servers = https://dlp.srv.world:9292
# 値は一旦ブランクで OK
enabled_backends =

# MariaDB 接続情報
[database]
connection = mysql+pymysql://cinder:password@dlp.srv.world/cinder

# Keystone 認証情報
[service_user]
send_service_user_token = true
auth_url = https://dlp.srv.world:5000
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = servicepassword
# Apache2 Keystone で自己署名の証明書を使用の場合は [true]
insecure = false

# Keystone 認証情報
[keystone_authtoken]
www_authenticate_uri = https://dlp.srv.world:5000
auth_url = https://dlp.srv.world:5000
memcached_servers = dlp.srv.world:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = servicepassword
# Apache2 Keystone で自己署名の証明書を使用の場合は [true]
insecure = false

[oslo_concurrency]
lock_path = $state_path/tmp

[oslo_policy]
enforce_new_defaults = true

root@network:~#
chmod 640 /etc/cinder/cinder.conf

root@network:~#
chgrp cinder /etc/cinder/cinder.conf

root@network:~#
systemctl restart cinder-volume

root@network:~#
systemctl enable cinder-volume
関連コンテンツ