91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

OpenStack stein安裝(四)placement

發布時間:2020-07-26 11:47:06 來源:網絡 閱讀:844 作者:zhaolinew 欄目:系統運維

??placement服務提供一個HTTP API,用于跟蹤資源提供者清單和使用情況。placement作為數據模型上的web服務進行操作。安裝包括創建必要的數據庫以及安裝和配置web服務。這是一個簡單的過程,但是要將placement與OpenStack云的其余部分集成起來,有相當多的步驟。
??其他一些OpenStack服務(尤其是nova)需要安裝placement,因此應該在其他服務之前安裝placement,而在Identity (keystone)之后安裝placement。

安裝準備

安裝配置placement服務之前,建庫等。

  1. 建立數據庫

    1. 完成下列建庫操作:
        ○ 使用root用戶登錄:
            $ mysql -u root -p root123 
        ○ 建立placement database:
            MariaDB [(none)]> CREATE DATABASE placement;
        ○ Grant proper access to the database:
            MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%'  IDENTIFIED BY 'placement123';
    
    2. Configure User and Endpoints
        1. Source the admin credentials to gain access to admin-only CLI commands:
            $ . admin-openrc
        2. Create a Placement service user using your chosen PLACEMENT_PASS:
            $ openstack user create --domain default --password-prompt placement
    
            User Password:placement123
            Repeat User Password:placement123
            +---------------------+----------------------------------+
            | Field               | Value                            |
            +---------------------+----------------------------------+
            | domain_id           | default                          |
            | enabled             | True                             |
            | id                  | fa742015a6494a949f67629884fc7ec8 |
            | name                | placement                        |
            | options             | {}                               |
            | password_expires_at | None                             |
            +---------------------+----------------------------------+
        3. Add the Placement user to the service project with the admin role:
            $ openstack role add --project service --user placement admin
    ?
        4. Create the Placement API entry in the service catalog:
            $ openstack service create --name placement \
              --description "Placement API" placement
    
            +-------------+----------------------------------+
            | Field       | Value                            |
            +-------------+----------------------------------+
            | description | Placement API                    |
            | enabled     | True                             |
            | id          | 2d1a27022e6e4185b86adac4444c495f |
            | name        | placement                        |
            | type        | placement                        |
            +-------------+----------------------------------+
        5. Create the Placement API service endpoints:
            注意:域名為你規劃好url, 必須能夠解析.
            $ openstack endpoint create --region RegionOne placement public http://stack.flex.net:8778
            +--------------+----------------------------------+
            | Field        | Value                            |
            +--------------+----------------------------------+
            | enabled      | True                             |
            | id           | 2b1b2637908b4137a9c2e0470487cbc0 |
            | interface    | public                           |
            | region       | RegionOne                        |
            | region_id    | RegionOne                        |
            | service_id   | 2d1a27022e6e4185b86adac4444c495f |
            | service_name | placement                        |
            | service_type | placement                        |
            | url          | http://controller:8778           |
            +--------------+----------------------------------+
    
            $ openstack endpoint create --region RegionOne placement internal http://stack.flex.net:8778
            +--------------+----------------------------------+
            | Field        | Value                            |
            +--------------+----------------------------------+
            | enabled      | True                             |
            | id           | 02bcda9a150a4bd7993ff4879df971ab |
            | interface    | internal                         |
            | region       | RegionOne                        |
            | region_id    | RegionOne                        |
            | service_id   | 2d1a27022e6e4185b86adac4444c495f |
            | service_name | placement                        |
            | service_type | placement                        |
            | url          | http://controller:8778           |
            +--------------+----------------------------------+
    
            $ openstack endpoint create --region RegionOne placement admin http://stack.flex.net:8778
            +--------------+----------------------------------+
            | Field        | Value                            |
            +--------------+----------------------------------+
            | enabled      | True                             |
            | id           | 3d71177b9e0f406f98cbff198d74b182 |
            | interface    | admin                            |
            | region       | RegionOne                        |
            | region_id    | RegionOne                        |
            | service_id   | 2d1a27022e6e4185b86adac4444c495f |
            | service_name | placement                        |
            | service_type | placement                        |
            | url          | http://controller:8778           |
            +--------------+----------------------------------+
    安裝配置組件
  2. Install the packages:
    # yum install openstack-placement-api
  3. Edit the /etc/placement/placement.conf file and complete the following actions:

    ○ In the [placement_database] section, configure database access:
        [placement_database]
        # ...
        connection = mysql+pymysql://placement:placement123@dbs.flex.net/placement
    ○ In the [api] and [keystone_authtoken] sections, configure Identity service access:
        [api]
        # ...
        auth_strategy = keystone
    
        [keystone_authtoken]
        # ...
        auth_url = http://stack.flex.net:5000/v3
        memcached_servers = dbs.flex.net:11211
        auth_type = password
        project_domain_name = default
        user_domain_name = default
        project_name = service
        username = placement
        password = placement123
    
        注意: 注釋或移除在掉在[keystone_authtoken]區域中的其它的選項
  4. Populate the placement database:
    # su -s /bin/sh -c "placement-manage db sync" placement
    完成完裝
    ○ Restart the httpd service:
        # systemctl restart httpd
    校驗安裝

    你需要admin的權限驗證

  5. 加載admin的訪問憑據,執行管理員命令:
    $ . admin-openrc
  6. 執行狀態檢查命令:
    $ placement-status upgrade check
    +----------------------------------+
    | Upgrade Check Results            |
    +----------------------------------+
    | Check: Missing Root Provider IDs |
    | Result: Success                  |
    | Details: None                    |
    +----------------------------------+
    | Check: Incomplete Consumers      |
    | Result: Success                  |
    | Details: None                    |
    +----------------------------------+
  7. 運行對placement API的命令(這個步驟我沒有成功,但不影響):

    ○ Install the osc-placement plugin:
        $ pip install osc-placement
    ○ List available resource classes and traits:
        $ openstack --os-placement-api-version 1.2 resource class list --sort-column name
        +----------------------------+
        | name                       |
        +----------------------------+
        | DISK_GB                    |
        | IPV4_ADDRESS               |
        | ...                        |
    
        $ openstack --os-placement-api-version 1.6 trait list --sort-column name
        +---------------------------------------+
        | name                                  |
        +---------------------------------------+
        | COMPUTE_DEVICE_TAGGING                |
        | COMPUTE_NET_ATTACH_INTERFACE          |
        | ...                                   |
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

无为县| 柳河县| 呼伦贝尔市| 北安市| 宾阳县| 民丰县| 安陆市| 铁力市| 鄂州市| 青浦区| 景洪市| 图木舒克市| 肇东市| 哈巴河县| 哈尔滨市| 宁海县| 开化县| 石台县| 平舆县| 兰溪市| 顺平县| 交城县| 平遥县| 礼泉县| 叙永县| 逊克县| 泊头市| 纳雍县| 惠东县| 东源县| 拉萨市| 乐昌市| 博湖县| 晋州市| 冷水江市| 枣庄市| 瓮安县| 海南省| 宝清县| 龙游县| 商城县|