CentOS 7
Sponsored Link

OpenStack Newton : Configure Manila#2 (Storage Node)
2016/10/31
 
Install OpenStack Shared File System (Manila).
This example shows to install Manila on the existing environment like follows.
                                    |
+----------------------+            |            +-----------------------+
|   [ Control Node ]   |            |            |   [ Storage Node ]    |
|       Keystone       |10.0.0.30   |   10.0.0.50|       DHCP Agent      |
|        Glance        |------------+------------|       L3 Agent        |
|       Nova API       |eth0        |        eth0|       L2 Agent        |
|    Neutron Server    |            |            |    Metadata Agent     |
|      Manila API      |            |            |     Manila Share      |
|                      |            |            |                       |
+----------------------+            |            +-----------------------+
                                eth0|10.0.0.51
                        +----------------------+
                        |   [ Compute Node ]   |
                        |     Nova Compute     |
                        |       L2 Agent       |
                        +----------------------+

 
Configure Storage Node on this section.
[1] Install Manila Share.
# install from Newton, EPEL

[root@storage ~]#
yum --enablerepo=centos-openstack-newton,epel -y install openstack-manila-share python-manilaclient
[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
rpc_backend = rabbit
default_share_type = default_share_type
enabled_share_protocols = NFS,CIFS
# MariaDB connection info

[database]
connection = mysql://manila:password@10.0.0.30/manila
# Keystone auth info

[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 = manila
password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp
# RabbitMQ connection info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = openstack
rabbit_password = password
[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] If Firewalld is running, allow services.
[root@storage ~]#
firewall-cmd --add-service=nfs --permanent

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

success
Matched Content
 
Tweet