码迷,mamicode.com
首页 > 其他好文 > 详细

OpenStack Trail 部署文档(五)部署Placement

时间:2021-02-20 12:18:39      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:配置   res   color   efault   创建数据库   mct   reg   memcache   文档   

资源管理服务Placement

官方文档:https://docs.openstack.org/placement/train/install/install-rdo.html 

1、创建数据库

MariaDB [(none)]> CREATE DATABASE placement;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO placement@%   IDENTIFIED BY placement123;

2、创建placement用户:

[root@openstack-controller ~]# openstack user create --domain default --password-prompt placement
User Password: placement
Repeat User Password: placement

3、创建service及服务:

[root@openstack-controller ~]# openstack role add --project service --user placement admin
[root@openstack-controller ~]# openstack service create --name placement --description "Placement API" placement

4、注册API端口:

[root@openstack-controller ~]# openstack endpoint create --region RegionOne placement public http://openstack-controller.local:8778 
[root@openstack-controller ~]# openstack endpoint create --region RegionOne placement internal http://openstack-controller.local:8778 
[root@openstack-controller ~]# openstack endpoint create --region RegionOne placement admin http://openstack-controller.local:8778 

5、安装软件

[root@openstack-controller ~]# yum install openstack-placement-api

6、编辑配置文件:/etc/placement/placement.conf

[api]
auth_strategy = keystone
......
[cors]
[keystone_authtoken]
auth_url = http://openstack-controller.local:5000/v3 
memcached_servers = openstack-controller.local:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = placement
......
[placement_database]
connection = mysql+pymysql://placement:placement123@openstack-controller.local/placement

7、初始化数据库

[root@openstack-controller ~]# su -s /bin/sh -c "placement-manage db sync" placement

8、重启HTTP服务

[root@openstack-controller ~]# systemctl restart httpd

 


 

重启方法:systemctl restart httpd
日志路径:/var/log/placement/placement-api.log

验证方法:

[root@openstack-controller ~]# placement-status upgrade check
+----------------------------------+
| Upgrade Check Results            |
+----------------------------------+
| Check: Missing Root Provider IDs |
| Result: Success                  |
| Details: None                    |
+----------------------------------+
| Check: Incomplete Consumers      |
| Result: Success                  |
| Details: None                    |
+----------------------------------+

 

OpenStack Trail 部署文档(五)部署Placement

标签:配置   res   color   efault   创建数据库   mct   reg   memcache   文档   

原文地址:https://www.cnblogs.com/wubolive/p/14417544.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!