配置placement服务
mysql -u root -p
MariaDB [(none)]> CREATE DATABASE placement;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' \ IDENTIFIED BY '123';
控制端
1. 使用您选择的创建Placement服务用户PLACEMENT_PASS
openstack user create --domain default --password-prompt placement
2. 使用admin角色将Placement用户添加到服务项目
openstack role add --project service --user placement admin
3. 在服务目录中创建Placement API条目
openstack service create --name placement \
--description "Placement API" placement
4. 创建Placement API服务端点
openstack endpoint create --region RegionOne placement public http://controller:8778
openstack endpoint create --region RegionOne placement internal http://controller:8778
openstack endpoint create --region RegionOne placement admin http://controller:8778
5. 安装openstack-placement-api
yum -y install openstack-placement-api
6. 编辑/etc/placement/placement.conf
sed -i -e '/^#/d' -e '/^$/d' /etc/placement/placement.conf
[DEFAULT][api]auth_strategy = keystone[keystone_authtoken]auth_url = http://controller:5000/v3memcached_servers = openvip.com:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = placementpassword = 123[placement][placement_database]connection = mysql+pymysql://placement:123@openvip.com/placement
7. 填充placement数据库
su -s /bin/sh -c "placement-manage db sync" placement
8. 重启httpd服务
systemctl restart httpd
9. 验证
placement-status upgrade check
+----------------------------------+
| Upgrade Check Results|
+----------------------------------+
|Check: Missing Root Provider IDs |
| Result: Success || Details: None |
+----------------------------------+
| Check: Incomplete Consumers |
| Result: Success || Details: None |
+----------------------------------+
原文链接:https://blog.csdn.net/weixin_42758707/article/details/100054938