OpenStack Ussuri : Configure Cinder (Storage Node)2020/06/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 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ Control Node ] | | [ Storage Node ] | | [ Compute Node ] | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached httpd | | L2 Agent | | Nova Compute | | Keystone Glance | | L3 Agent | | Open vSwitch | | Nova API | | Metadata Agent | | L2 Agent | | Neutron Server | | Cinder-Volume | | | | Metadata Agent | | | | | | Cinder API | | | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Install Cinder Volume service. |
[root@storage ~]# dnf --enablerepo=centos-openstack-ussuri,powertools,epel -y install openstack-cinder targetcli
|
[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 log_dir = /var/log/cinder state_path = /var/lib/cinder auth_strategy = keystone # RabbitMQ connection info transport_url = rabbit://openstack:password@10.0.0.30 # Glance connection info glance_api_servers = http://10.0.0.30:9292 enable_v3_api = True # 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 chmod 640 /etc/cinder/cinder.conf [root@storage ~]# chgrp cinder /etc/cinder/cinder.conf [root@storage ~]# systemctl enable --now openstack-cinder-volume |
[3] | If SELinux is enabled, change policy. |
[root@storage ~]#
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@storage ~]# semodule_package --outfile iscsiadm.pp --module iscsiadm.mod [root@storage ~]# semodule -i iscsiadm.pp |
Sponsored Link |