我要评分
获取效率
正确性
完整性
易理解

Installing and Configuring Cinder

Perform the following operations on the controller node.

  1. Install the software package.
    1
    yum -y install openstack-cinder
    
  2. Modify the /etc/cinder/cinder.conf file.
    1. Open the file.
      1
      vi /etc/cinder/cinder.conf
      
    2. Press i to enter the insert mode and perform the following configurations.
      1. Configure the database connection.
        1
        2
        [database] 
        connection = mysql+pymysql://cinder:PASSWORD@controller/cinder
        

        Replace PASSWORD with the password of the cinder user described in Creating the Cinder Database.

      2. Configure the RabbitMQ service and replace PASSWORD with the actual password.
        1
        2
        [DEFAULT] 
        transport_url = rabbit://openstack:PASSWORD@controller
        

        Replace PASSWORD with the password of the openstack user described in Installing RabbitMQ.

      3. 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
        

        Replace PASSWORD with the password of the cinder user described in Creating the Cinder Database.

      4. Configure my_ip to use the management IP address of the controller node.
        1
        2
        [DEFAULT] 
        my_ip = 192.168.100.120
        
      5. Configure the lock path.
        1
        2
        [oslo_concurrency] 
        lock_path = /var/lib/cinder/tmp
        
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Populate the block storage database.
    1
    su -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.