• openstack(四)placement_nova先决条件


    yum install -y  placement openstack-placement-api

    keystone创建用户/授权/服务/端点

    openstack service create --name placement --description "Placement API" placement
    openstack endpoint create --region RegionOne placement public http://192.168.3.220:8778
    openstack endpoint create --region RegionOne placement internal http://192.168.3.220:8778
    openstack endpoint create --region RegionOne placement admin http://192.168.3.220:8778
    View Code

    /etc/placement/placement.conf

    cat > /etc/placement/placement.conf << EOF
    [DEFAULT]
    verbose = True
    
    [api]
    auth_strategy = keystone
    
    [keystone_authtoken]
    auth_url = http://192.168.3.220:5000/v3
    memcached_servers = 192.168.3.220:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = placement
    password = placement
    
    [placement]
    
    [placement_database]
    connection = mysql+pymysql://placement:placement@192.168.3.220/placement
    EOF
    placement.conf

    初始化placement数据库并查看

    su -s /bin/sh -c "placement-manage db sync" placement && mysql -uplacement -pplacement -e 'use placement;show tables;'

    添加http.conf文件并重启

    /etc/httpd/conf.d/00-nova-placement-api.conf

    cat > /etc/httpd/conf.d/00-nova-placement-api.conf << EOF
    <Directory /usr/bin>
       <IfVersion >= 2.4>
          Require all granted
       </IfVersion>
       <IfVersion < 2.4>
          Order allow,deny
          Allow from all
       </IfVersion>
    </Directory>
    EOF
    00-nova-placement-api.conf

    systemctl restart httpd

    placement-status upgrade check

  • 相关阅读:
    Docker 入门
    python3模块: sys
    Python sys os getpass 包的导入
    Python3模块: hashlib
    python3异常处理 try
    python3模块: uuid
    python3 内置函数详解
    servlet/和/*匹配的区别
    [转]任何程序员应该记住的性能指标
    [转]使用CMS垃圾收集器产生的问题和解决方案
  • 原文地址:https://www.cnblogs.com/Leaders543/p/12731201.html
Copyright © 2020-2023  润新知