next up previous contents
Next: Neutron Up: Nova Previous: 新增計算節點到 CELL 資料庫   Contents

驗證

  1. 載入管理者環境變變數。
    [root@ip112 ~]# . admin.token
    
  2. 列出計算服務,確認有如下四項。
    [root@ip112 ~]# openstack compute service list
    +----+------------------+------------------------+----------+---------+-------+----------------------------+
    | ID | Binary           | Host                   | Zone     | Status  | State | Updated At                 |
    +----+------------------+------------------------+----------+---------+-------+----------------------------+
    |  1 | nova-consoleauth | ip112.csie.cyut.edu.tw | internal | enabled | up    | 2018-05-24T14:37:55.000000 |
    |  2 | nova-conductor   | ip112.csie.cyut.edu.tw | internal | enabled | up    | 2018-05-24T14:37:59.000000 |
    |  4 | nova-scheduler   | ip112.csie.cyut.edu.tw | internal | enabled | up    | 2018-05-24T14:37:59.000000 |
    | 13 | nova-compute     | ip112.csie.cyut.edu.tw | nova     | enabled | up    | 2018-05-24T14:37:59.000000 |
    +----+------------------+------------------------+----------+---------+-------+----------------------------+
    
  3. 列出身份服務中的 API endpoints 以確認連線。
    [root@ip112 ~]# openstack catalog list
    +-----------+-----------+-----------------------------------------+
    | Name      | Type      | Endpoints                               |
    +-----------+-----------+-----------------------------------------+
    | keystone  | identity  | RegionOne                               |
    |           |           |   internal: http://controller:5000/v3/  |
    |           |           | RegionOne                               |
    |           |           |   public: http://controller:5000/v3/    |
    |           |           | RegionOne                               |
    |           |           |   admin: http://controller:5000/v3/     |
    |           |           |                                         |
    | placement | placement | RegionOne                               |
    |           |           |   public: http://controller:8778        |
    |           |           | RegionOne                               |
    |           |           |   admin: http://controller:8778         |
    |           |           | RegionOne                               |
    |           |           |   internal: http://controller:8778      |
    |           |           |                                         |
    | nova      | compute   | RegionOne                               |
    |           |           |   admin: http://controller:8774/v2.1    |
    |           |           | RegionOne                               |
    |           |           |   internal: http://controller:8774/v2.1 |
    |           |           | RegionOne                               |
    |           |           |   public: http://controller:8774/v2.1   |
    |           |           |                                         |
    | glance    | image     | RegionOne                               |
    |           |           |   admin: http://controller:9292         |
    |           |           | RegionOne                               |
    |           |           |   public: http://controller:9292        |
    |           |           | RegionOne                               |
    |           |           |   internal: http://controller:9292      |
    |           |           |                                         |
    +-----------+-----------+-----------------------------------------+
    
  4. 上傳 crtusb.qcow2 到 image 服務,disk 格式為 qcow2,container 格式為 bare,public 讓所有 project 可以存取。
    
    
  5. 列出 image,確認連線 image 服務。
    [root@ip112 ~]# openstack image list
    +--------------------------------------+--------+--------+
    | ID                                   | Name   | Status |
    +--------------------------------------+--------+--------+
    | e4bea3db-581a-472d-a0dd-37b1e7055bbf | crtusb | active |
    +--------------------------------------+--------+--------+
    
  6. 確認 cells 和 placement API 工作正常。
    [root@ip112 ~]# nova-status upgrade check
    /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:332: 
    NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
      exception.NotSupportedWarning
    Option "os_region_name" from group "placement" is deprecated. 
    Use option "region-name" from group "placement".
    +---------------------------+
    | Upgrade Check Results     |
    +---------------------------+
    | Check: Cells v2           |
    | Result: Success           |
    | Details: None             |
    +---------------------------+
    | Check: Placement API      |
    | Result: Success           |
    | Details: None             |
    +---------------------------+
    | Check: Resource Providers |
    | Result: Success           |
    | Details: None             |
    +---------------------------+
    


2018-09-19