CentOS 6
Sponsored Link

OpenStack Havana - Configure Cinder2013/10/23

 
Install and Configure OpenStack Block Storage (Cinder).
[1] Install Cinder
# install from EPEL OpenStack, EPEL

[root@dlp ~]#
yum --enablerepo=openstack-havana,epel -y install openstack-cinder
[2] Configure Cinder
[root@dlp ~]#
vi /etc/cinder/cinder.conf
# line 78: uncomment

osapi_volume_listen=0.0.0.0
# line 81: uncomment

osapi_volume_listen_port=8776
# line 247: uncomment

api_paste_config=api-paste.ini
# line 261: uncomment and specify own IP address

my_ip=
10.0.0.30
# line 264: uncomment

glance_host=$my_ip
# line 267: uncomment

glance_port=9292
# line 271: uncomment

glance_api_servers=$glance_host:$glance_port
# line 385: uncomment and change

auth_strategy=
keystone
# line 532: add (it's OK to set any password because it is set later with a command)

sql_connection=mysql://cinder:password@10.0.0.30/cinder
# line 720: uncomment and change

rpc_backend=cinder.openstack.common.rpc.
impl_qpid
# line 828: uncomment and specify Qpid server

qpid_hostname=
10.0.0.30
# line 831: uncomment

qpid_port=5672
# line 834: uncomment

qpid_hosts=$qpid_hostname:$qpid_port
# line 1030: uncomment

iscsi_ip_address=$my_ip
# line 1034: uncomment

iscsi_port=3260
# line 1080: uncomment

iscsi_helper=tgtadm
[root@dlp ~]#
vi /etc/cinder/api-paste.ini
# add at the last (authentication info for Keystone)

admin_tenant_name=service
admin_user=cinder
admin_password=servicepassword
auth_host=10.0.0.30
auth_port=35357
auth_protocol=http
# 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 'cinder' database.
Updating 'cinder' database password in /etc/cinder/cinder.conf
Initializing the cinder database, please wait...
Complete!
[root@dlp ~]#
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 ~]#
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 ]
Matched Content