Debian 11 Bullseye
Sponsored Link

OpenStack Victoria : Configure Cinder (Storage Node)2021/09/01

 
Install OpenStack Block Storage (Cinder).
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 ]   |   |    [ Network Node ]   |   |    [ Compute Node ]   |
|                       |   |                       |   |                       |
|  MariaDB    RabbitMQ  |   |        L2 Agent       |   |        Libvirt        |
|  Memcached  httpd     |   |        L3 Agent       |   |     Nova Compute      |
|  Keystone   Glance    |   |     Metadata Agent    |   |        L2 Agent       |
|  Nova API             |   |     Cinder Volume     |   |                       |
|  Neutron Server       |   |                       |   |                       |
|  Metadata Agent       |   |                       |   |                       |
|  Cinder API           |   |                       |   |                       |
+-----------------------+   +-----------------------+   +-----------------------+

[1] Install Cinder Volume service. For questions duruing the installation, it's OK with [No] to all.
root@storage:~#
apt -y install cinder-volume python3-mysqldb python3-rtslib-fb
[2] Configure Cinder Volume.
root@storage:~#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

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

[DEFAULT]
# define own IP address
my_ip = 10.0.0.50
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
state_path = /var/lib/cinder
auth_strategy = keystone
# RabbitMQ connection info
transport_url = rabbit://openstack:password@10.0.0.30
enable_v3_api = True
# Glance connection info
glance_api_servers = http://10.0.0.30:9292
# OK with empty value now
enabled_backends =

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

# 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 = cinder
password = servicepassword

[oslo_concurrency]
lock_path = $state_path/tmp

root@storage:~#
chmod 640 /etc/cinder/cinder.conf

root@storage:~#
chgrp cinder /etc/cinder/cinder.conf

root@storage:~#
systemctl restart cinder-volume

root@storage:~#
systemctl enable cinder-volume
Matched Content