一、环境简介:
OS:CentOS Linux release 7.7.1908 (Core)
openstack:train
环境有限当前只跑单台
mysql复用,rabbitmq和memcached
角色 | ip地址 | 主机名 |
---|---|---|
conroller1 | 192.168.39.239 | controller.local |
conroller1 | 192.168.39.239 | controller.local |
haproxy | 192.168.39.241 | haproxy.local vip 192.168.39.238 |
node1 | 192.168.39.240 | node1.local |
mysql | 192.168.39.242 | mysql.local |
参考文档:
https://docs.openstack.org/
stein版本拆分出来的一个组件,作用:起到node节点的可用资源统计,后被nova等服务调用
一、前提条件:在安装和配置展示位置服务之前,必须创建数据库,服务凭证和API端点
1、创建数据库,并授权:
MariaDB [(none)]> CREATE DATABASE placement;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' \
-> IDENTIFIED BY 'placement123';
Query OK, 0 rows affected (0.000 sec)
二、配置用户和端点
1、创建用户
[root@controller1 ~]# openstack user create --domain default --password-prompt placement
User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 301b7a6262b4415e8f68e3ee67bb8149 |
| name | placement |
| options | {
} |
| password_expires_at | None |
+---------------------+----------------------------------+
2、使用管理员角色将Placement用户添加到服务项目中
[root@controller1 ~]# openstack role add --project service --user placement admin
3、在服务中创建Placement API条目
[root@controller1 ~]# openstack service create --name placement --description "Placement API" placement
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | Placement API |
| enabled | True