openstack安装(37)

2021-05-07 18:00:25 浏览数 (1)

服务安装控制节点

[root@controller ~]#yum install -y openstack-cinder python-cinderclient

[root@controller ~]# egrep -v "^$|^#" /etc/cinder/cinder.conf #编辑cinder.conf

[DEFAULT]

rpc_backend = rabbit #配置 RabbitMQ 消息队列访问

auth_strategy = keystone #配置认证服务访问

my_ip = 192.168.1.101 #配置 my_ip 来使用控制节点的管理接口的IP 地址

verbose = True #启用详细日志

[BRCD_FABRIC_EXAMPLE]

[CISCO_FABRIC_EXAMPLE]

[cors]

[cors.subdomain]

[database]

connection = mysql://cinder:123456@controller/cinder #配置数据库访问

[fc-zone-manager]

[keymgr]

[keystone_authtoken] #配置认证服务访问,在 [keystone_authtoken] 中注释或者删除其他选项。

auth_uri = http://controller:5000

auth_url = http://controller:35357

auth_plugin = password

project_domain_id = default

user_domain_id = default

project_name = service

username = cinde

password = 123456

[matchmaker_redis]

[matchmaker_ring]

[oslo_concurrency]

lock_path = /var/lib/cinder/tmp #配置锁路径

[oslo_messaging_amqp]

[oslo_messaging_qpid]

[oslo_messaging_rabbit] #配置 RabbitMQ 消息队列访问

rabbit_host = controlle

rabbit_userid = openstack

rabbit_password = 123456

[oslo_middleware]

[oslo_policy]

[oslo_reports]

[profiler]

[root@controller ~]#su -s /bin/sh -c "cinder-manage db sync" cinder #初始化块设备服务的数据库

[root@controller ~]#[root@controller ~]# grep -A 1 "[cinder]" /etc/nova/nova.conf #配置计算节点以使用块设备存储,编辑文件 /etc/nova/nova.conf 并添加如下内容

[cinder]

os_region_name = RegionOne

[root@controller ~]# systemctl restart openstack-nova-api.service

[root@controller ~]#systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service

[root@controller ~]#systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service

0 人点赞