OpenStack Trail 部署文档(五)部署Placement
作者:互联网
资源管理服务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 | +----------------------------------+
标签:Placement,部署,local,--,controller,openstack,OpenStack,root,placement 来源: https://www.cnblogs.com/wubolive/p/14417544.html