next up previous contents
Next: 使用 Selfservice network 新增 Up: Instance Previous: Security Group Rules   Contents

新增 Instance 前確認

  1. 載入用戶 demo 的環境變數。
    [root@controller ~]# . demo.token
    
  2. 列出 falvor。
    [root@controller ~]# openstack flavor list
    +----+---------+------+------+-----------+-------+-----------+
    | ID | Name    |  RAM | Disk | Ephemeral | VCPUs | Is Public |
    +----+---------+------+------+-----------+-------+-----------+
    | 0  | m1.nano |   64 |    1 |         0 |     1 | True      |
    | 1  | m1.crt  | 4096 |   16 |         0 |     2 | True      |
    +----+---------+------+------+-----------+-------+-----------+
    
  3. 列出 image。
    [root@controller ~]# openstack image list
    +--------------------------------------+--------+--------+
    | ID                                   | Name   | Status |
    +--------------------------------------+--------+--------+
    | 5bb44bde-d1e8-4937-b0fc-d3cdab6929c5 | cirros | active |
    | e4bea3db-581a-472d-a0dd-37b1e7055bbf | crtusb | active |
    +--------------------------------------+--------+--------+
    
  4. 列出 network。
    [root@controller ~]# openstack network list
    +--------------------------------------+-------------+--------------------------------------+
    | ID                                   | Name        | Subnets                              |
    +--------------------------------------+-------------+--------------------------------------+
    | 0b0ebcee-057b-4798-bf73-5dd449e7879a | provider    | 2a7287d7-4a4f-43cc-beb2-bc9c023af929 |
    | 37d0dee7-d573-4f3b-863d-c92c05b6dbbb | selfservice | 36c70394-9a28-4cdf-bfee-9c65f4512027 |
    +--------------------------------------+-------------+--------------------------------------+
    
  5. 列出 security group。
    [root@controller ~]# openstack security group list
    +--------------------------------------+---------+------------------------+----------------------------------+
    | ID                                   | Name    | Description            | Project                          |
    +--------------------------------------+---------+------------------------+----------------------------------+
    | 1f149288-87c2-43b5-a3b3-89eb153c9249 | default | Default security group | 92d1ec3e04384ad599c1a8f5aed73663 |
    +--------------------------------------+---------+------------------------+----------------------------------+
    
  6. 確認 project 92d1ec3e04384ad599c1a8f5aed73663 是 demo,不是管理者 admin。
    [root@controller ~]# openstack project list
    +----------------------------------+---------+
    | ID                               | Name    |
    +----------------------------------+---------+
    | 92d1ec3e04384ad599c1a8f5aed73663 | demo    |
    +----------------------------------+---------+
    



De-Yu Wang 2018-08-15