OpenStack Yoga : Configure Cinder (Storage Node)2022/06/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
+-----------+-----------+ +-----------+-----------+ +-----------+-----------+
| [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] |
| (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 | | | | OVN-Controller |
+-----------------------+ +-----------------------+ +-----------------------+
|
| [1] | Install Cinder Volume service. |
|
[root@network ~]# dnf --enablerepo=centos-openstack-yoga,powertools,epel -y install openstack-cinder targetcli
|
| [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 enable_v3_api = True # Glance connection info glance_api_servers = https://dlp.srv.world:9292 # MariaDB connection info [database] connection = mysql+pymysql://cinder:password@dlp.srv.world/cinder # 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 Apache httpd Keystone, turn to [true] insecure = false [oslo_concurrency] lock_path = $state_path/tmp chmod 640 /etc/cinder/cinder.conf [root@network ~]# chgrp cinder /etc/cinder/cinder.conf [root@network ~]# systemctl enable --now openstack-cinder-volume |
| [3] | If SELinux is enabled, change policy. |
|
[root@network ~]#
vi iscsiadm.te # create new
module iscsiadm 1.0;
require {
type iscsid_t;
class capability dac_override;
}
#============= iscsid_t ==============
allow iscsid_t self:capability dac_override;
checkmodule -m -M -o iscsiadm.mod iscsiadm.te [root@network ~]# semodule_package --outfile iscsiadm.pp --module iscsiadm.mod [root@network ~]# semodule -i iscsiadm.pp |
| Sponsored Link |
|
|