OpenStack Juno : Configure Cinder#2 ( Service Node )2015/01/11 |
Install OpenStack Block Storage (Cinder).
For this example, Install Cinder API Server on Control Node which Keystone/Glance/Nova API are already installed,
and Install Cinder-Volume on Block Storage Service Node.
+------------------+ 10.0.0.50| [ Storage Node ] | +------------------+ +-----+ Cinder-Volume | | [ Control Node ] | | eth0| | | Keystone |10.0.0.30 | +------------------+ | Glance |------------+ | Nova API |eth0 | +------------------+ | Cinder API | | eth0| [ Compute Node ] | +------------------+ +-----+ Nova Compute | 10.0.0.51| | +------------------+ |
Configure Block Storage Service Node on this section.
|
|
[1] | Install Cinder Volume. |
[root@storage ~]# yum --enablerepo=openstack-juno,epel -y install openstack-cinder
|
[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] state_path=/var/lib/cinder api_paste_config=api-paste.ini enable_v1_api=true osapi_volume_listen=0.0.0.0 osapi_volume_listen_port=8776 rootwrap_config=/etc/cinder/rootwrap.conf auth_strategy=keystone # specify Glance server glance_host=10.0.0.30 glance_port=9292 # specify RabbitMQ server rabbit_host=10.0.0.30 rabbit_port=5672 # RabbitMQ user for auth rabbit_userid=guest # RabbitMQ user's password for auth rabbit_password=password rpc_backend=rabbit # specify iSCSI target (it's just the own IP) iscsi_ip_address=10.0.0.50 iscsi_port=3260 iscsi_helper=tgtadm scheduler_driver=cinder.scheduler.filter_scheduler.FilterScheduler volume_manager=cinder.volume.manager.VolumeManager volume_api_class=cinder.volume.api.API volumes_dir=$state_path/volumes # auth info for MariaDB [database] connection=mysql://cinder:password@10.0.0.30/cinder # auth info for Keystone [keystone_authtoken] auth_host=10.0.0.30 auth_port=35357 auth_protocol=http admin_user=cinder admin_password=servicepassword admin_tenant_name=service chmod 640 /etc/cinder/cinder.conf [root@storage ~]# chgrp cinder /etc/cinder/cinder.conf
[root@storage ~]#
systemctl start openstack-cinder-volume [root@storage ~]# systemctl enable openstack-cinder-volume # show status [root@storage ~]# cinder-manage service list Binary Host Zone Status State Updated At cinder-scheduler dlp nova enabled :-) 2015-01-11 12:54:54 cinder-volume storage nova enabled :-) 2015-01-11 12:54:52 |
Sponsored Link |