Ubuntu 20.04
Sponsored Link

OpenStack Yoga : Configure Manila (Storage Node)2022/04/07

 
Install OpenStack Shared File System (Manila).
This example is based on the environment like follows.
------------+---------------------------+---------------------------+------------
            |                           |                           |
        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     |   |     Neutron Server    |   |     Nova Compute      |
|  Keystone   Glance    |   |       OVN-Northd      |   |      Open vSwitch     |
|  Nova API             |   |     Cinder Volume     |   |   OVN Metadata Agent  |
|  Cinder API           |   |     iSCSI Target      |   |     OVN-Controller    |
|  Manila API           |   |    Heat API/Engine    |   |                       |
|                       |   |     Manila Share      |   |                       |
+-----------------------+   +-----------------------+   +-----------------------+

[1] Install Manila Share on Storage Node. It's OK with [No] answer to all questions during the installation.
root@storage:~#
apt -y install manila-share python3-pymysql python3-mysqldb
[2] Configure Manila Share.
root@storage:~#
mv /etc/manila/manila.conf /etc/manila/manila.conf.org

root@storage:~#
vi /etc/manila/manila.conf
# create new

[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 connection info
transport_url = rabbit://openstack:password@10.0.0.30

# MariaDB connection info
[database]
connection = mysql+pymysql://manila:password@10.0.0.30/manila

# Keystone auth info
[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:~#
echo 'manila ALL = (root) NOPASSWD: /usr/bin/privsep-helper --config-file /etc/manila/manila.conf *' >> /etc/sudoers.d/manila_sudoers

root@storage:~#
cp /usr/lib/python3/dist-packages/manila/tests/policy.yaml /etc/manila/

root@storage:~#
chmod 640 /etc/manila/{manila.conf,policy.yaml}

root@storage:~#
chgrp manila /etc/manila/{manila.conf,policy.yaml}

Matched Content