OpenStack Grizzly - Configure Cinder2013/08/13 |
Install and Configure OpenStack Block Storage (Cinder).
|
|
[1] | Install Cinder |
# install from EPEL OpenStack, EPEL [root@dlp ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-cinder
|
[2] | Configure Cinder |
# set database ( set any password you like for "password" section ) [root@dlp ~]# openstack-db --init --service cinder --password password Please enter the password for the 'root' MySQL user: # MySQL root password Verified connectivity to MySQL. Creating 'nova' database. Updating 'nova' database password in /etc/nova/nova.conf Initializing the nova database, please wait... Complete!
[root@dlp ~]#
vi /etc/cinder/cinder.conf # line 10: add rootwrap_config = /etc/cinder/rootwrap.conf auth_strategy = keystone
# line 12: chnage like follows [keystone_authtoken] admin_tenant_name = service admin_user = cinder admin_password = servicepassword auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http signing_dirname = /tmp/keystone-signing-cinder sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf [root@dlp ~]# /etc/rc.d/init.d/tgtd start [root@dlp ~]# chkconfig tgtd on [root@dlp ~]# chkconfig --add openstack-cinder-volume [root@dlp ~]# for service in api scheduler volume; do /etc/rc.d/init.d/openstack-cinder-$service start chkconfig openstack-cinder-$service on done Starting openstack-cinder-api: [ OK ] Starting openstack-cinder-scheduler: [ OK ] Starting openstack-cinder-volume: [ OK ] |
Sponsored Link |