• 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                    |
    +----------------------------------+

  • 相关阅读:
    VC:文件串行化(CFileDialog类、CFile类、CArchive类、Edit控件)
    实例说明optimize table在优化mysql时很重要
    文件备份,同步工具rsync服务器端的安装及配置
    log4cxx does not compile on kernel 2.6.29.6
    CentOS桌面安装
    编译 apachelog4cxx0.10.0inputstreamreader.cpp:66: error: ‘memmove’ was not declared in this sco
    解决/usr/bin/ld: cannot find lmysqlclient错误
    mysql 复制表数据,表结构的3种方法
    php 动态添加OPENSSL模块
    mysql开启慢查询方法
  • 原文地址:https://www.cnblogs.com/wubolive/p/14417544.html
Copyright © 2020-2023  润新知