OpenStack Dalmatian : Configure Manila (Storage Node)2024/10/15 |
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 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] | | (Control Node) | | (Network Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached Nginx | | Neutron Server | | Nova Compute | | Keystone httpd | | OVN-Northd | | Open vSwitch | | Glance Nova API | | Nginx iSCSI Target | | OVN Metadata Agent | | Cinder API Manila API | | Cinder Volume | | OVN-Controller | | | | Manila Share | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Install Manila Share on Storage Node. |
[root@network ~]# dnf --enablerepo=centos-openstack-dalmatian,epel,crb -y install openstack-manila-share python3-manilaclient python3-PyMySQL python3-mysqlclient
|
[2] | Configure Manila Share. |
[root@network ~]# mv /etc/manila/manila.conf /etc/manila/manila.conf.org
[root@network ~]#
vi /etc/manila/manila.conf # create new [DEFAULT] # IP address of this node 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@dlp.srv.world # MariaDB connection info [database] connection = mysql+pymysql://manila:password@dlp.srv.world/manila # Keystone auth info [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 # if using self-signed certs on httpd Keystone, turn to [true] insecure = false [oslo_concurrency] lock_path = $state_path/tmp
[root@network ~]#
systemctl edit openstack-manila-share.service # create new [Service] ExecStart= ExecStart=/usr/bin/manila-share --config-file /etc/manila/manila.conf --logfile /var/log/manila/share.log chmod 640 /etc/manila/manila.conf [root@network ~]# chgrp manila /etc/manila/manila.conf [root@network ~]# mkdir /var/lib/manila [root@network ~]# chown manila:manila /var/lib/manila |
[3] | If Firewalld is running, allow service ports. |
[root@network ~]# firewall-cmd --add-service=nfs success [root@network ~]# firewall-cmd --runtime-to-permanent success |
Sponsored Link |