Installing and Configuring Cinder
Perform the following operations on the controller node.
- Install the software package.
1yum -y install openstack-cinder
- Modify the /etc/cinder/cinder.conf file.
- Open the file.
1vi /etc/cinder/cinder.conf - Press i to enter the insert mode and perform the following configurations.
- Configure the database connection.
1 2
[database] connection = mysql+pymysql://cinder:PASSWORD@controller/cinder
- Configure the RabbitMQ service and replace PASSWORD with the actual password.
1 2
[DEFAULT] transport_url = rabbit://openstack:PASSWORD@controller
- Configure Identity service access and replace PASSWORD with the password selected for the cinder user in the Identity service.
1 2 3 4 5 6 7 8 9 10 11 12
[DEFAULT] auth_strategy = keystone [keystone_authtoken] www_authenticate_uri = http://controller:5000 auth_url = http://controller:5000 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = cinder password = PASSWORD
- Configure my_ip to use the management IP address of the controller node.
1 2
[DEFAULT] my_ip = 192.168.100.120
- Configure the lock path.
1 2
[oslo_concurrency] lock_path = /var/lib/cinder/tmp
- Configure the database connection.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Populate the block storage database.
1su -s /bin/sh -c "cinder-manage db sync" cinder
Ignore any abandoned messages in the command output. The OpenStack project has fast iteration, and the Stein version may have some abandoned content. Ignore such information.
Parent topic: Installing, Configuring, and Verifying Cinder