OpenStack Yoga : Manila 設定 (Storage ノード)2022/06/01 |
OpenStack Shared File System(Manila)をインストールします。
当例では以下のような環境を例に Manila サービスをインストールします。
------------+-----------------------------+-----------------------------+------------ | | | 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) | | (Storage Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached httpd | | Neutron Server | | Nova Compute | | Keystone Glance | | OVN-Northd | | Open vSwitch | | Nova API Cinder API | | Cinder Volume | | OVN Metadata Agent | | Manila API | | Manila Share | | OVN-Controller | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Storage ノード に Manila Share をインストールします。 |
[root@network ~]# dnf --enablerepo=centos-openstack-yoga,powertools,epel -y install openstack-manila-share python3-manilaclient python3-PyMySQL python3-mysqlclient
|
[2] | Manila Share を設定します。ここでは設定のみで、サービスは後ほど起動します。 |
[root@network ~]# mv /etc/manila/manila.conf /etc/manila/manila.conf.org
[root@network ~]#
vi /etc/manila/manila.conf # 新規作成 [DEFAULT] # 自身の IP アドレス 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@dlp.srv.world # MariaDB 接続情報 [database] connection = mysql+pymysql://manila:password@dlp.srv.world/manila # 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 = manila password = servicepassword # Apache httpd Keystone で自己署名の証明書を使用の場合は [true] insecure = false [oslo_concurrency] lock_path = $state_path/tmp
[root@network ~]#
systemctl edit openstack-manila-share.service # 新規作成 [Service] ExecStart= ExecStart=/usr/bin/manila-share --config-file /etc/manila/manila.conf --logfile /var/log/manila/share.log echo 'manila ALL = (root) NOPASSWD: /usr/bin/privsep-helper --config-file /etc/manila/manila.conf *' >> /etc/sudoers.d/manila [root@network ~]# chmod 640 /etc/manila/manila.conf [root@network ~]# chgrp manila /etc/manila/manila.conf [root@network ~]# mkdir /var/lib/manila [root@network ~]# chown manila. /var/lib/manila |
[3] | Firewalld を有効にしている場合は、サービスの許可が必要です。 |
[root@network ~]# firewall-cmd --add-service=nfs success [root@network ~]# firewall-cmd --runtime-to-permanent success |
Sponsored Link |