# Install Cinder
[root@cloud01 ~]# 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@cloud01 ~]# vim /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
[root@cloud01 ~]# sed -i ’1iinclude /etc/cinder/volumes/*’ /etc/tgt/targets.conf
[root@cloud01 ~]# /etc/rc.d/init.d/tgtd start
Starting SCSI target daemon: [ OK ]
[root@cloud01 ~]# chkconfig tgtd on
[root@cloud01 ~]# 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 ]
阅读(829) | 评论(0) | 转发(0) |