openstack octca 缺少 placement Service 解决办法

2018-07-06 18:22:46 浏览数 (1)

根据官方文档安装,当启动nova-compute时会报错

PlacementNotConfigured: This compute is not configured to talk to the placement service

原因:官方文档中遗漏了-nova-placement-api的安装

我总结的安装步骤

1、控制节点

代码语言:javascript复制
yum install openstack-nova-placement-api

openstack service create --name placement --description "OpenStack Placement" placement

openstack endpoint create --region RegionOne placement public http://<ip>:8778 
openstack endpoint create --region RegionOne placement admin http://<ip>:8778 
openstack endpoint create --region RegionOne placement intenal http://<ip>:8778 
systemctl restart httpd

2、计算节点

编辑 /etc/nova/nova.conf

增加

[placement]

代码语言:javascript复制
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = ******
os_region_name = RegionOne

 重启 systemctl restart openstack-nova-compute.service

0 人点赞