Openstack+Ceph 安装及配置-08.2-Openstack-Yoga Cinder安装-计算节点
Openstack Yoga版本Cinder安装-计算节点
安装服务
[root@node-3 ~]# yum install openstack-cinder targetcli python3-keystone -y
配置cinder.conf
[root@node-3 ~]# vim /etc/cinder/cinder.conf [DEFAULT] transport_url = rabbit://openstack:RabbitMQ123@node-1 auth_strategy = keystone my_ip = 172.16.1.82 enabled_backends = ceph glance_api_servers = http://node-1:9292 [backend] [backend_defaults] [barbican] [brcd_fabric_example] [ceph] rbd_pool = Openstack-Volumes rbd_user = cinder rbd_ceph_conf = /etc/ceph/ceph.conf rbd_flatten_volume_from_snapshot = false rbd_secret_uuid = d42450cf-3d0c-4bce-951a-46f3167c1d46 rbd_max_clone_depth = 5 rbd_store_chunk_size = 4 rados_connect_timeout = -1 volume_driver = cinder.volume.drivers.rbd.RBDDriver volume_backend_name = ceph [cisco_fabric_example] [coordination] [cors] [database] connection = mysql+pymysql://cinder:Cinder123@node-1/cinder [fc-zone-manager] [healthcheck] [key_manager] [keystone_authtoken] www_authenticate_uri = http://node-1:5000 auth_url = http://node-1:5000 memcached_servers = node-1:11211,node-2:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = cinder password = Cinder123 [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@node-3 ~]# systemctl start openstack-cinder-volume.service target.service [root@node-3 ~]# systemctl enable openstack-cinder-volume.service target.service Created symlink /etc/systemd/system/multi-user.target.wants/openstack-cinder-volume.service → /usr/lib/systemd/system/openstack-cinder-volume.service. Created symlink /etc/systemd/system/multi-user.target.wants/target.service → /usr/lib/systemd/system/target.service.
安装和配置备份服务
配置nova.conf
[root@node-1 ClientConf]# vim /etc/nova/nova.conf [cinder] os_region_name = RegionOne
重启nova服务
[root@node-3 ~]# systemctl restart openstack-nova-compute.service