B15-openstack高可用(t版)-cinder计算节点集群
本次使用ceph作为后端的存储进行使用
1. 安装cinder
# 在全部计算点安装cinder服务,以compute01节点为例
[root@compute01 ~]# yum install -y openstack-cinder targetcli python-keystone
2. 配置cinder.conf
[root@compute01 ~]# egrep -v "^#|^$" /etc/cinder/cinder.conf
[DEFAULT]
transport_url = rabbit://openstack:huayun@10.100.214.200
auth_strategy = keystone
my_ip = 10.100.214.205
glance_api_servers = http://10.100.214.200:9292
enabled_backends = ceph
[backend]
[backend_defaults]
[barbican]
[brcd_fabric_example]
[cisco_fabric_example]
[coordination]
[cors]
[database]
connection = mysql+pymysql://cinder:huayun@10.100.214.200/cinder
[fc-zone-manager]
[healthcheck]
[key_manager]
[keystone_authtoken]
www_authenticate_uri = http://10.100.214.200:5000
auth_url = http://10.100.214.200:5000
memcached_servers = 10.100.214.201:11211,10.100.214.202:11211,10.100.214.203:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = huayun
[nova]
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]
[oslo_reports]
[oslo_versionedobjects]
[privsep]
[profiler]
[sample_castellan_source]
[sample_remote_file_source]
[service_user]
[ssl]
[vault]
[root@compute01 ~]# scp /etc/cinder/cinder.conf 10.100.214.207:/etc/cinder
[root@compute01 ~]# scp /etc/cinder/cinder.conf 10.100.214.206:/etc/cinder
3. 启动服务
[root@compute01 ~]# systemctl enable openstack-cinder-volume.service target.service
[root@compute01 ~]# systemctl start openstack-cinder-volume.service target.service
4. 验证
# 在任意控制节点(或具备客户端的节点)操作 [root@controller01 ~]# . admin-openrc # 查看agent服务; # 或:cinder service-list; # 此时后端存储服务为ceph,但ceph相关服务尚未启用并集成到cinder-volume,导致cinder-volume服务的状态也是”down” [root@controller01 ~]# openstack volume service list