Ubuntu 24.04
Sponsored Link

OpenStack Dalmatian : Configure Cinder (Storage Node)2024/10/09

 

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
+-----------+-----------+  +-----------+-----------+  +-----------+-----------+
|   [ 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         |  |   OVN Metadata Agent  |
|  Cinder API           |  |     Cinder Volume     |  |     OVN-Controller    |
+-----------------------+  +-----------------------+  +-----------------------+

[1] Install Cinder Volume service.
root@network:~#
apt -y install cinder-volume python3-mysqldb
[2] Configure Cinder Volume.
root@network:~#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

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

[DEFAULT]
# define 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@dlp.srv.world:5672
enable_v3_api = True
# Glance connection info
glance_api_servers = https://dlp.srv.world:9292
# OK with empty value now
enabled_backends =

# MariaDB connection info
[database]
connection = mysql+pymysql://cinder:password@dlp.srv.world:3306/cinder

# Keystone auth info
[service_user]
send_service_user_token = true
auth_url = https://dlp.srv.world:5000
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = cinder
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

# 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 = cinder
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

[oslo_concurrency]
lock_path = $state_path/tmp

[oslo_policy]
enforce_new_defaults = true

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

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

root@network:~#
systemctl restart cinder-volume

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