CentOS 8
Sponsored Link

OpenStack Ussuri : Manila 設定 (Storage ノード)2020/06/10

 
OpenStack Shared File System(Manila)をインストールします。
当例では以下のような環境を例に Manila サービスをインストールします。
------------+---------------------------+---------------------------+------------
            |                           |                           |
        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       |   |      Manila Share     |   |                       |
|  Metadata Agent       |   |                       |   |                       |
|  Manila API           |   |                       |   |                       |
+-----------------------+   +-----------------------+   +-----------------------+

[1] Storage ノード に Manila Share をインストールします。
# Ussuri, EPEL, powertools からインストール

[root@storage ~]#
dnf --enablerepo=centos-openstack-ussuri,powertools,epel -y install openstack-manila-share python3-manilaclient mariadb-devel python3-devel gcc make
[root@storage ~]#
pip3 install mysqlclient

[2] Manila Share を設定します。ここでは設定のみで、サービスは後ほど起動します。
[root@storage ~]#
mv /etc/manila/manila.conf /etc/manila/manila.conf.org

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

[DEFAULT]
my_ip = 10.0.0.50
api_paste_config = /etc/manila/api-paste.ini
rootwrap_config = /etc/manila/rootwrap.conf
state_path = /var/lib/manila
auth_strategy = keystone
default_share_type = default_share_type
enabled_share_protocols = NFS,CIFS
# RabbitMQ 接続情報
transport_url = rabbit://openstack:password@10.0.0.30

# MariaDB の接続情報
[database]
connection = mysql://manila:password@10.0.0.30/manila

# Keystone 認証情報
[keystone_authtoken]
www_authenticate_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:5000
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = manila
password = servicepassword

[oslo_concurrency]
lock_path = $state_path/tmp

[root@storage ~]#
chmod 640 /etc/manila/manila.conf

[root@storage ~]#
chgrp manila /etc/manila/manila.conf

[root@storage ~]#
mkdir /var/lib/manila

[root@storage ~]#
chown manila. /var/lib/manila

[3] Firewalld を有効にしている場合は、サービスの許可が必要です。
[root@storage ~]#
firewall-cmd --add-service=nfs --permanent

success
[root@storage ~]#
firewall-cmd --reload

success
関連コンテンツ