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

OpenStack(3)-placement服务部署

时间:2019-08-11 15:04:10      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:完成   success   auth   提供者   iss   详细   check   ESS   ref   

放置服务提供用于跟踪资源提供者清单和用法HTTP API可以在展示位置概述中找到更多详细信息

Placement作为数据模型上的Web服务运行。安装涉及创建必要的数据库以及安装和配置Web服务。这是一个简单的过程,但是有很多步骤可以将展示位置与OpenStack云的其余部分集成。

1.创建placement相关的数据库,并进行授权;

mysql> CREATE DATABASE placement;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON placement.* TO placement@localhost IDENTIFIED BY 123;
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON placement.* TO placement@% IDENTIFIED BY 123;
Query OK, 0 rows affected, 1 warning (0.00 sec)

2.创建palcement用户,设置密码;(确保以admin来运行)

[root@sxb2 ~]# openstack user create --domain default --password-prompt placement
User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 23b2c39d0f3c4262ad4b4716341d51ff |
| name                | placement                        |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

3.将palcmenet加入service,并以admin身份管理;

[root@sxb2 ~]# openstack role add --project service --user placement admin

4.在服务目录中创建Placement API条目;

[root@sxb2 ~]# openstack service create --name placement --description "Placement API" placement
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Placement API                    |
| enabled     | True                             |
| id          | e37cb13ed33648b8a6e0d1e09c0a4af0 |
| name        | placement                        |
| type        | placement                        |
+-------------+----------------------------------+

5.创建Placement API服务端点;

[root@sxb2 ~]# openstack endpoint create --region RegionOne placement public http://192.168.88.102:8778^C
[root@sxb2 ~]# openstack endpoint create --region RegionOne placement internal http://192.168.88.102:8778^C
[root@sxb2 ~]# openstack endpoint create --region RegionOne placement admin http://192.168.88.102:8778^C

6.安装软件openstack-placement-api;

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

7.配置/etc/placement/placement.conf文件;

[root@sxb2 ~]# vim /etc/placement/placement.conf

[placement_database]
connection = mysql+pymysql://placement:123@192.168.88.102/placement

[api]
auth_strategy = keystone

[keystone_authtoken]
auth_url = http://192.168.88.102:5000/v3
memcached_servers = 192.168.88.102:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = placement
password = 123

8.placement初始化数据库;

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

9.重启httpd服务;

[root@sxb2 ~]# systemctl restart httpd

接下来我们进行测试;(确保以admin用户运行)

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

我们的placement到这里计算完成了,一下章配置计算服务 nova

OpenStack(3)-placement服务部署

标签:完成   success   auth   提供者   iss   详细   check   ESS   ref   

原文地址:https://www.cnblogs.com/loganSxb/p/11334864.html

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