守望的麦子

[OpenStack] 创建第一个实例

2017-6-7    大连    /ericsson/2017/06/07/1i.html ericsson openstack,

本文最近更新于 2018 年 7 月 6 日

使用 CentOS 7 和 PackStack 部署了 OpenStack 后,我们就可以着手创建第一个实例了。

1) 通过浏览器访问 https://<虚拟机地址>/dashboard/ 登录 OpenStack dashboard GUI。

用户名密码在 /root/keystonerc_admin/root/keystonerc_demo 中,接下来创建实例使用 demo 或者 admin 登录都可以,登录后我们可以通过 dashboard GUI 修改我们的登录密码。

2) 进入 OpenStack dashboard GUI 后,点击 Project - Compute - Instances,显示界面如下:

3) 点击 Lauch Instance,弹出如下窗口:

4) 配置实例信息,例如:

Details:

Source:

OpenStack 自带一个 image 叫做 CirrOS(CirrOS is a Tiny OS that specializes in running on a cloud),OpenStack 的开发基本都使用这个 image 来测试,因为它比较小,只有 10M 左右。镜像地址:https://launchpad.net/cirros/
CirrOS 可以使用用户名和密码登陆,也可以使用密钥登陆。用户名密码为:cirros/cubswin:)

--- 分割线 ---

若发现 OpenStack 中缺少可用的 image,可以下载 CirrOS image 文件进行添加。方法如下:

1.到 CirrOS 镜像网站下载镜像文件,例如 cirros-0.3.5-x86_64-disk.img

2.将下载的 .img 镜像文件上传到 CentOS/OpenStack,例如上传到根目录。

3.通过下面的命令注册 image(自定义修改其中的 <imageName>):

1 openstack image create <imageName>
2 openstack image set <imageName>
3 openstack image create --disk-format qcow2 --container-format bare --public --file /cirros-0.3.5-x86_64-disk.img <imageName>

4.完成,通过 openstack image list 可以查看镜像列表:

1 [root@localhost ~(keystone_admin)]# openstack image list
2 +--------------------------------------+--------+--------+
3 | ID                                   | Name   | Status |
4 +--------------------------------------+--------+--------+
5 | eb94652f-4764-4ec9-baca-499e181eb91b | cirros | active |
6 +--------------------------------------+--------+--------+
7 [root@localhost ~(keystone_admin)]# 

--- 分割线 ---

Flavor 可以选择最小的 m1.tiny 即可。如下图所示:

5) 其他配置信息可以保持默认。然后点击 Launch Instance,等待完成。

具体各个配置项的含义可以访问 OpenStack 查看:链接地址

视频演示:

视频演示(exe 文件):点击下载

实例化过程中如遇报错,善查相关 log。log 路径:参考链接

至此,我们已经成功创建了第一个实例,接下来我们可以通过 terminal 的方式查看我们的 OpenStack 配置和实例信息,试着直观地理解 OpenStack 命令。

1 [root@localhost ~(keystone_demo)]# nova list
2 +--------------------------------------+------+--------+------------+-------------+------------------+
3 | ID                                   | Name | Status | Task State | Power State | Networks         |
4 +--------------------------------------+------+--------+------------+-------------+------------------+
5 | d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938 | test | ACTIVE | -          | Running     | private=10.0.0.5 |
6 +--------------------------------------+------+--------+------------+-------------+------------------+
7 [root@localhost ~(keystone_demo)]#

执行 nova list 时如果遇到下面报错:

1 [root@openstack-server ~]# nova list
2 ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]

解决方法:使用 source <环境变量> 来获取 token,例如 source /root/keystonerc_admin 或者 source /root/keystonerc_demo

如果在 source <环境变量> 后,执行 OpenStack 相关指令遇到如下报错:

1 [root@localhost ~(keystone_admin)]# openstack image show
2 The request you have made requires authentication. (HTTP 401) (Request-ID: req-adefb8e9-27d7-4aab-a9b4-a311f8952340)
3 [root@localhost ~(keystone_admin)]#

这应该是由于我们通过 dashboard GUI 修改了登录密码,但是 /root/keystonerc_admin 或者 /root/keystonerc_demo 中的 export OS_PASSWORD=<password> 没有修改导致的,将 <password> 改为正确的登录密码即可。

 1 [root@localhost ~(keystone_demo)]# pwd
 2 /root
 3 [root@localhost ~(keystone_demo)]# source keystonerc_demo #根据实际情况,如果是登录 admin 账号创建的实例,则需要执行 source keystonerc_admin
 4 [root@localhost ~(keystone_demo)]# nova list
 5 +--------------------------------------+------+--------+------------+-------------+------------------+
 6 | ID                                   | Name | Status | Task State | Power State | Networks         |
 7 +--------------------------------------+------+--------+------------+-------------+------------------+
 8 | d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938 | test | ACTIVE | -          | Running     | private=10.0.0.5 |
 9 +--------------------------------------+------+--------+------------+-------------+------------------+
10 [root@localhost ~(keystone_demo)]#
1 [root@localhost ~(keystone_admin)]# openstack project list
2 +----------------------------------+----------+
3 | ID                               | Name     |
4 +----------------------------------+----------+
5 | 355c595975894e7d8caa9c3af1ad3cb7 | admin    |
6 | 541cbc457e4544a593ea8a8ce0f87e88 | demo     |
7 | 577fe7d4ac0346a1976335dc7400c65d | services |
8 +----------------------------------+----------+
9 [root@localhost ~(keystone_admin)]# 
 1 [root@localhost ~(keystone_admin)]# openstack user list
 2 +----------------------------------+------------+
 3 | ID                               | Name       |
 4 +----------------------------------+------------+
 5 | 179a265ba71a4d00b602fb130e7fe65b | swift      |
 6 | 1f8b1698b91c42169437f856426fc0b1 | admin      |
 7 | 3668649a42d54bc3bd90e41a48f67e7f | demo       |
 8 | 525ea601affb42ba82c84fd1ac7f69f6 | nova       |
 9 | 62e05e7360e347dab374f7e6ecd9373e | neutron    |
10 | 76923e150c0e45289ce2b949f9e8de91 | gnocchi    |
11 | 9760566253204a7d8781c22be9ca81d6 | glance     |
12 | d8959f7ec63e4572a016dac66d9908ae | aodh       |
13 | e810efa8b27144ff83ec1a9d5788e562 | ceilometer |
14 | ea63efcf740e4b26847159da7b50c743 | placement  |
15 | ebd7bc00e2824e2d8b2f45c4d9b737d8 | cinder     |
16 +----------------------------------+------------+
17 [root@localhost ~(keystone_admin)]# 
 1 [root@localhost ~(keystone_admin)]# openstack role list
 2 +----------------------------------+---------------+
 3 | ID                               | Name          |
 4 +----------------------------------+---------------+
 5 | 36b984c4e73d4150a1679c90c7a358c3 | admin         |
 6 | 4603d58a0f2b4a9cb6258eab5176c7b8 | ResellerAdmin |
 7 | 9fe2ff9ee4384b1894a90878d3e92bab | _member_      |
 8 | dda3c3492daf42a5ba3f7a832d7e0b78 | SwiftOperator |
 9 +----------------------------------+---------------+
10 [root@localhost ~(keystone_admin)]# 
 1 [root@localhost ~(keystone_demo)]# nova show d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938
 2 +--------------------------------------+---------------------------------------------------------------------------------+
 3 | Property                             | Value                                                                           |
 4 +--------------------------------------+---------------------------------------------------------------------------------+
 5 | OS-DCF:diskConfig                    | AUTO                                                                            |
 6 | OS-EXT-AZ:availability_zone          | nova                                                                            |
 7 | OS-EXT-STS:power_state               | 1                                                                               |
 8 | OS-EXT-STS:task_state                | -                                                                               |
 9 | OS-EXT-STS:vm_state                  | active                                                                          |
10 | OS-SRV-USG:launched_at               | 2017-06-07T06:20:22.000000                                                      |
11 | OS-SRV-USG:terminated_at             | -                                                                               |
12 | accessIPv4                           |                                                                                 |
13 | accessIPv6                           |                                                                                 |
14 | config_drive                         |                                                                                 |
15 | created                              | 2017-06-07T06:19:38Z                                                            |
16 | description                          | test                                                                            |
17 | flavor                               | m1.tiny (1)                                                                     |
18 | hostId                               | 619d9e1be3fc2dcb0f6a6e250e40e99d2e34ffc61cceff029f38fb3e                        |
19 | id                                   | d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938                                            |
20 | image                                | Attempt to boot from volume - no image supplied                                 |
21 | key_name                             | -                                                                               |
22 | locked                               | False                                                                           |
23 | metadata                             | {}                                                                              |
24 | name                                 | test                                                                            |
25 | os-extended-volumes:volumes_attached | [{"id": "b8901d5e-2634-499d-8d20-f1774942fc3f", "delete_on_termination": true}] |
26 | private network                      | 10.0.0.5                                                                        |
27 | progress                             | 0                                                                               |
28 | security_groups                      | default                                                                         |
29 | status                               | ACTIVE                                                                          |
30 | tags                                 | []                                                                              |
31 | tenant_id                            | 541cbc457e4544a593ea8a8ce0f87e88                                                |
32 | updated                              | 2017-06-07T06:20:23Z                                                            |
33 | user_id                              | 3668649a42d54bc3bd90e41a48f67e7f                                                |
34 +--------------------------------------+---------------------------------------------------------------------------------+
35 [root@localhost ~(keystone_demo)]# 
 1 [root@localhost ~(keystone_admin)]# nova availability-zone-list
 2 +--------------------------+----------------------------------------+
 3 | Name                     | Status                                 |
 4 +--------------------------+----------------------------------------+
 5 | internal                 | available                              |
 6 | |- localhost.localdomain |                                        |
 7 | | |- nova-conductor      | enabled :-) 2017-06-07T09:11:59.000000 |
 8 | | |- nova-consoleauth    | enabled :-) 2017-06-07T09:12:04.000000 |
 9 | | |- nova-scheduler      | enabled :-) 2017-06-07T09:12:06.000000 |
10 | | |- nova-cert           | enabled :-) 2017-06-07T09:11:58.000000 |
11 | nova                     | available                              |
12 | |- localhost.localdomain |                                        |
13 | | |- nova-compute        | enabled :-) 2017-06-07T09:12:05.000000 |
14 +--------------------------+----------------------------------------+
15 [root@localhost ~(keystone_admin)]# openstack availability zone list
16 +-----------+-------------+
17 | Zone Name | Zone Status |
18 +-----------+-------------+
19 | internal  | available   |
20 | nova      | available   |
21 | nova      | available   |
22 | nova      | available   |
23 | nova      | available   |
24 +-----------+-------------+
25 [root@localhost ~(keystone_admin)]# 
 1 [root@localhost ~(keystone_demo)]# openstack image list
 2 +--------------------------------------+--------+--------+
 3 | ID                                   | Name   | Status |
 4 +--------------------------------------+--------+--------+
 5 | eb94652f-4764-4ec9-baca-499e181eb91b | cirros | active |
 6 +--------------------------------------+--------+--------+
 7 [root@localhost ~(keystone_demo)]# glance image-list
 8 +--------------------------------------+--------+
 9 | ID                                   | Name   |
10 +--------------------------------------+--------+
11 | eb94652f-4764-4ec9-baca-499e181eb91b | cirros |
12 +--------------------------------------+--------+
13 [root@localhost ~(keystone_demo)]#
 1 [root@localhost ~(keystone_demo)]# openstack image show eb94652f-4764-4ec9-baca-499e181eb91b
 2 +------------------+------------------------------------------------------+
 3 | Field            | Value                                                |
 4 +------------------+------------------------------------------------------+
 5 | checksum         | ee1eca47dc88f4879d8a229cc70a07c6                     |
 6 | container_format | bare                                                 |
 7 | created_at       | 2017-05-24T18:41:41Z                                 |
 8 | disk_format      | qcow2                                                |
 9 | file             | /v2/images/eb94652f-4764-4ec9-baca-499e181eb91b/file |
10 | id               | eb94652f-4764-4ec9-baca-499e181eb91b                 |
11 | min_disk         | 0                                                    |
12 | min_ram          | 0                                                    |
13 | name             | cirros                                               |
14 | owner            | 577fe7d4ac0346a1976335dc7400c65d                     |
15 | protected        | False                                                |
16 | schema           | /v2/schemas/image                                    |
17 | size             | 13287936                                             |
18 | status           | active                                               |
19 | tags             |                                                      |
20 | updated_at       | 2017-05-24T18:41:41Z                                 |
21 | virtual_size     | None                                                 |
22 | visibility       | public                                               |
23 +------------------+------------------------------------------------------+
24 [root@localhost ~(keystone_demo)]# glance image-show eb94652f-4764-4ec9-baca-499e181eb91b
25 +------------------+--------------------------------------+
26 | Property         | Value                                |
27 +------------------+--------------------------------------+
28 | checksum         | ee1eca47dc88f4879d8a229cc70a07c6     |
29 | container_format | bare                                 |
30 | created_at       | 2017-05-24T18:41:41Z                 |
31 | disk_format      | qcow2                                |
32 | id               | eb94652f-4764-4ec9-baca-499e181eb91b |
33 | min_disk         | 0                                    |
34 | min_ram          | 0                                    |
35 | name             | cirros                               |
36 | owner            | 577fe7d4ac0346a1976335dc7400c65d     |
37 | protected        | False                                |
38 | size             | 13287936                             |
39 | status           | active                               |
40 | tags             | []                                   |
41 | updated_at       | 2017-05-24T18:41:41Z                 |
42 | virtual_size     | None                                 |
43 | visibility       | public                               |
44 +------------------+--------------------------------------+
45 [root@localhost ~(keystone_demo)]# 
 1 [root@localhost ~(keystone_demo)]# openstack flavor list
 2 +----+-----------+-------+------+-----------+-------+-----------+
 3 | ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
 4 +----+-----------+-------+------+-----------+-------+-----------+
 5 | 1  | m1.tiny   |   512 |    1 |         0 |     1 | True      |
 6 | 2  | m1.small  |  2048 |   20 |         0 |     1 | True      |
 7 | 3  | m1.medium |  4096 |   40 |         0 |     2 | True      |
 8 | 4  | m1.large  |  8192 |   80 |         0 |     4 | True      |
 9 | 5  | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
10 +----+-----------+-------+------+-----------+-------+-----------+
11 [root@localhost ~(keystone_demo)]# openstack flavor show 1
12 +----------------------------+---------+
13 | Field                      | Value   |
14 +----------------------------+---------+
15 | OS-FLV-DISABLED:disabled   | False   |
16 | OS-FLV-EXT-DATA:ephemeral  | 0       |
17 | access_project_ids         | None    |
18 | disk                       | 1       |
19 | id                         | 1       |
20 | name                       | m1.tiny |
21 | os-flavor-access:is_public | True    |
22 | properties                 |         |
23 | ram                        | 512     |
24 | rxtx_factor                | 1.0     |
25 | swap                       |         |
26 | vcpus                      | 1       |
27 +----------------------------+---------+
28 [root@localhost ~(keystone_demo)]# 
 1 [root@localhost ~(keystone_demo)]# cinder list
 2 +--------------------------------------+--------+------+------+-------------+----------+--------------------------------------+
 3 | ID                                   | Status | Name | Size | Volume Type | Bootable | Attached to                          |
 4 +--------------------------------------+--------+------+------+-------------+----------+--------------------------------------+
 5 | b8901d5e-2634-499d-8d20-f1774942fc3f | in-use |      | 1    | iscsi       | true     | d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938 |
 6 +--------------------------------------+--------+------+------+-------------+----------+--------------------------------------+
 7 [root@localhost ~(keystone_demo)]# cinder list --all-tenant
 8 +--------------------------------------+----------------------------------+--------+------+------+-------------+----------+--------------------------------------+
 9 | ID                                   | Tenant ID                        | Status | Name | Size | Volume Type | Bootable | Attached to                          |
10 +--------------------------------------+----------------------------------+--------+------+------+-------------+----------+--------------------------------------+
11 | b8901d5e-2634-499d-8d20-f1774942fc3f | 541cbc457e4544a593ea8a8ce0f87e88 | in-use |      | 1    | iscsi       | true     | d91a9a0e-8a6c-4e4f-9f47-99f2d1da7938 |
12 +--------------------------------------+----------------------------------+--------+------+------+-------------+----------+--------------------------------------+
13 [root@localhost ~(keystone_demo)]# 
14 [root@localhost ~(keystone_demo)]# openstack volume list
15 +--------------------------------------+--------------+--------+------+-------------------------------+
16 | ID                                   | Display Name | Status | Size | Attached to                   |
17 +--------------------------------------+--------------+--------+------+-------------------------------+
18 | b8901d5e-2634-499d-8d20-f1774942fc3f |              | in-use |    1 | Attached to test on /dev/vda  |
19 +--------------------------------------+--------------+--------+------+-------------------------------+
20 [root@localhost ~(keystone_demo)]# openstack volume list --all
21 +--------------------------------------+--------------+--------+------+-------------------------------+
22 | ID                                   | Display Name | Status | Size | Attached to                   |
23 +--------------------------------------+--------------+--------+------+-------------------------------+
24 | b8901d5e-2634-499d-8d20-f1774942fc3f |              | in-use |    1 | Attached to test on /dev/vda  |
25 +--------------------------------------+--------------+--------+------+-------------------------------+
26 [root@localhost ~(keystone_demo)]#
 1 [root@localhost ~(keystone_admin)]# openstack network list
 2 +--------------------------------------+---------+--------------------------------------+
 3 | ID                                   | Name    | Subnets                              |
 4 +--------------------------------------+---------+--------------------------------------+
 5 | 12f45958-2c36-48bb-ac47-9532ac2d07e4 | public  | c954be37-19a7-4baa-9a57-09e5d9027610 |
 6 | 9034943f-a6d3-4497-a1b0-c7863d8b36fb | private | ebd61f34-9c77-4c14-be5c-42e7e2667b7a |
 7 +--------------------------------------+---------+--------------------------------------+
 8 [root@localhost ~(keystone_admin)]# openstack network show 12f45958-2c36-48bb-ac47-9532ac2d07e4
 9 +---------------------------+--------------------------------------+
10 | Field                     | Value                                |
11 +---------------------------+--------------------------------------+
12 | admin_state_up            | UP                                   |
13 | availability_zone_hints   |                                      |
14 | availability_zones        |                                      |
15 | created_at                | 2017-05-24T18:44:26Z                 |
16 | description               |                                      |
17 | dns_domain                | None                                 |
18 | id                        | 12f45958-2c36-48bb-ac47-9532ac2d07e4 |
19 | ipv4_address_scope        | None                                 |
20 | ipv6_address_scope        | None                                 |
21 | is_default                | False                                |
22 | mtu                       | 1500                                 |
23 | name                      | public                               |
24 | port_security_enabled     | False                                |
25 | project_id                | 355c595975894e7d8caa9c3af1ad3cb7     |
26 | provider:network_type     | flat                                 |
27 | provider:physical_network | extnet                               |
28 | provider:segmentation_id  | None                                 |
29 | qos_policy_id             | None                                 |
30 | revision_number           | 5                                    |
31 | router:external           | External                             |
32 | segments                  | None                                 |
33 | shared                    | False                                |
34 | status                    | ACTIVE                               |
35 | subnets                   | c954be37-19a7-4baa-9a57-09e5d9027610 |
36 | updated_at                | 2017-05-24T18:44:29Z                 |
37 +---------------------------+--------------------------------------+
 1 [root@localhost ~(keystone_admin)]# openstack subnet list
 2 +--------------------------------------+----------------+--------------------------------------+---------------+
 3 | ID                                   | Name           | Network                              | Subnet        |
 4 +--------------------------------------+----------------+--------------------------------------+---------------+
 5 | c954be37-19a7-4baa-9a57-09e5d9027610 | public_subnet  | 12f45958-2c36-48bb-ac47-9532ac2d07e4 | 172.24.4.0/24 |
 6 | ebd61f34-9c77-4c14-be5c-42e7e2667b7a | private_subnet | 9034943f-a6d3-4497-a1b0-c7863d8b36fb | 10.0.0.0/24   |
 7 +--------------------------------------+----------------+--------------------------------------+---------------+
 8 [root@localhost ~(keystone_admin)]# openstack subnet show c954be37-19a7-4baa-9a57-09e5d9027610
 9 +-------------------+--------------------------------------+
10 | Field             | Value                                |
11 +-------------------+--------------------------------------+
12 | allocation_pools  | 172.24.4.2-172.24.4.254              |
13 | cidr              | 172.24.4.0/24                        |
14 | created_at        | 2017-05-24T18:44:29Z                 |
15 | description       |                                      |
16 | dns_nameservers   |                                      |
17 | enable_dhcp       | False                                |
18 | gateway_ip        | 172.24.4.1                           |
19 | host_routes       |                                      |
20 | id                | c954be37-19a7-4baa-9a57-09e5d9027610 |
21 | ip_version        | 4                                    |
22 | ipv6_address_mode | None                                 |
23 | ipv6_ra_mode      | None                                 |
24 | name              | public_subnet                        |
25 | network_id        | 12f45958-2c36-48bb-ac47-9532ac2d07e4 |
26 | project_id        | 355c595975894e7d8caa9c3af1ad3cb7     |
27 | revision_number   | 2                                    |
28 | segment_id        | None                                 |
29 | service_types     |                                      |
30 | subnetpool_id     | None                                 |
31 | updated_at        | 2017-05-24T18:44:29Z                 |
32 +-------------------+--------------------------------------+
33 [root@localhost ~(keystone_admin)]# 
34 [root@localhost ~(keystone_admin)]# openstack subnet show ebd61f34-9c77-4c14-be5c-42e7e2667b7a
35 +-------------------+--------------------------------------+
36 | Field             | Value                                |
37 +-------------------+--------------------------------------+
38 | allocation_pools  | 10.0.0.2-10.0.0.254                  |
39 | cidr              | 10.0.0.0/24                          |
40 | created_at        | 2017-05-24T18:44:33Z                 |
41 | description       |                                      |
42 | dns_nameservers   |                                      |
43 | enable_dhcp       | True                                 |
44 | gateway_ip        | 10.0.0.1                             |
45 | host_routes       |                                      |
46 | id                | ebd61f34-9c77-4c14-be5c-42e7e2667b7a |
47 | ip_version        | 4                                    |
48 | ipv6_address_mode | None                                 |
49 | ipv6_ra_mode      | None                                 |
50 | name              | private_subnet                       |
51 | network_id        | 9034943f-a6d3-4497-a1b0-c7863d8b36fb |
52 | project_id        | 541cbc457e4544a593ea8a8ce0f87e88     |
53 | revision_number   | 2                                    |
54 | segment_id        | None                                 |
55 | service_types     |                                      |
56 | subnetpool_id     | None                                 |
57 | updated_at        | 2017-05-24T18:44:33Z                 |
58 +-------------------+--------------------------------------+
59 [root@localhost ~(keystone_admin)]# 
 1 [root@localhost ~(keystone_admin)]# openstack catalog list
 2 +------------+--------------+----------------------------------------------------------------------------+
 3 | Name       | Type         | Endpoints                                                                  |
 4 +------------+--------------+----------------------------------------------------------------------------+
 5 | placement  | placement    | RegionOne                                                                  |
 6 |            |              |   internal: https://10.0.2.15:8778/placement                                |
 7 |            |              | RegionOne                                                                  |
 8 |            |              |   admin: https://10.0.2.15:8778/placement                                   |
 9 |            |              | RegionOne                                                                  |
10 |            |              |   public: https://10.0.2.15:8778/placement                                  |
11 |            |              |                                                                            |
12 | aodh       | alarming     | RegionOne                                                                  |
13 |            |              |   internal: https://10.0.2.15:8042                                          |
14 |            |              | RegionOne                                                                  |
15 |            |              |   admin: https://10.0.2.15:8042                                             |
16 |            |              | RegionOne                                                                  |
17 |            |              |   public: https://10.0.2.15:8042                                            |
18 |            |              |                                                                            |
19 | cinderv2   | volumev2     | RegionOne                                                                  |
20 |            |              |   internal: https://10.0.2.15:8776/v2/355c595975894e7d8caa9c3af1ad3cb7      |
21 |            |              | RegionOne                                                                  |
22 |            |              |   admin: https://10.0.2.15:8776/v2/355c595975894e7d8caa9c3af1ad3cb7         |
23 |            |              | RegionOne                                                                  |
24 |            |              |   public: https://10.0.2.15:8776/v2/355c595975894e7d8caa9c3af1ad3cb7        |
25 |            |              |                                                                            |
26 | glance     | image        | RegionOne                                                                  |
27 |            |              |   public: https://10.0.2.15:9292                                            |
28 |            |              | RegionOne                                                                  |
29 |            |              |   admin: https://10.0.2.15:9292                                             |
30 |            |              | RegionOne                                                                  |
31 |            |              |   internal: https://10.0.2.15:9292                                          |
32 |            |              |                                                                            |
33 | gnocchi    | metric       | RegionOne                                                                  |
34 |            |              |   admin: https://10.0.2.15:8041                                             |
35 |            |              | RegionOne                                                                  |
36 |            |              |   public: https://10.0.2.15:8041                                            |
37 |            |              | RegionOne                                                                  |
38 |            |              |   internal: https://10.0.2.15:8041                                          |
39 |            |              |                                                                            |
40 | nova       | compute      | RegionOne                                                                  |
41 |            |              |   admin: https://10.0.2.15:8774/v2.1/355c595975894e7d8caa9c3af1ad3cb7       |
42 |            |              | RegionOne                                                                  |
43 |            |              |   internal: https://10.0.2.15:8774/v2.1/355c595975894e7d8caa9c3af1ad3cb7    |
44 |            |              | RegionOne                                                                  |
45 |            |              |   public: https://10.0.2.15:8774/v2.1/355c595975894e7d8caa9c3af1ad3cb7      |
46 |            |              |                                                                            |
47 | keystone   | identity     | RegionOne                                                                  |
48 |            |              |   public: https://10.0.2.15:5000/v3                                         |
49 |            |              | RegionOne                                                                  |
50 |            |              |   admin: https://10.0.2.15:35357/v3                                         |
51 |            |              | RegionOne                                                                  |
52 |            |              |   internal: https://10.0.2.15:5000/v3                                       |
53 |            |              |                                                                            |
54 | cinder     | volume       | RegionOne                                                                  |
55 |            |              |   internal: https://10.0.2.15:8776/v1/355c595975894e7d8caa9c3af1ad3cb7      |
56 |            |              | RegionOne                                                                  |
57 |            |              |   public: https://10.0.2.15:8776/v1/355c595975894e7d8caa9c3af1ad3cb7        |
58 |            |              | RegionOne                                                                  |
59 |            |              |   admin: https://10.0.2.15:8776/v1/355c595975894e7d8caa9c3af1ad3cb7         |
60 |            |              |                                                                            |
61 | cinderv3   | volumev3     | RegionOne                                                                  |
62 |            |              |   public: https://10.0.2.15:8776/v3/355c595975894e7d8caa9c3af1ad3cb7        |
63 |            |              | RegionOne                                                                  |
64 |            |              |   internal: https://10.0.2.15:8776/v3/355c595975894e7d8caa9c3af1ad3cb7      |
65 |            |              | RegionOne                                                                  |
66 |            |              |   admin: https://10.0.2.15:8776/v3/355c595975894e7d8caa9c3af1ad3cb7         |
67 |            |              |                                                                            |
68 | ceilometer | metering     | RegionOne                                                                  |
69 |            |              |   internal: https://10.0.2.15:8777                                          |
70 |            |              | RegionOne                                                                  |
71 |            |              |   admin: https://10.0.2.15:8777                                             |
72 |            |              | RegionOne                                                                  |
73 |            |              |   public: https://10.0.2.15:8777                                            |
74 |            |              |                                                                            |
75 | neutron    | network      | RegionOne                                                                  |
76 |            |              |   public: https://10.0.2.15:9696                                            |
77 |            |              | RegionOne                                                                  |
78 |            |              |   internal: https://10.0.2.15:9696                                          |
79 |            |              | RegionOne                                                                  |
80 |            |              |   admin: https://10.0.2.15:9696                                             |
81 |            |              |                                                                            |
82 | swift      | object-store | RegionOne                                                                  |
83 |            |              |   internal: https://10.0.2.15:8080/v1/AUTH_355c595975894e7d8caa9c3af1ad3cb7 |
84 |            |              | RegionOne                                                                  |
85 |            |              |   admin: https://10.0.2.15:8080/v1/AUTH_355c595975894e7d8caa9c3af1ad3cb7    |
86 |            |              | RegionOne                                                                  |
87 |            |              |   public: https://10.0.2.15:8080/v1/AUTH_355c595975894e7d8caa9c3af1ad3cb7   |
88 |            |              |                                                                            |
89 +------------+--------------+----------------------------------------------------------------------------+
90 [root@localhost ~(keystone_admin)]# 

- EOF -

下一篇计划写一下通过命令行创建实例的方法。

更新历史:

2017/06/07 初稿发布
2017/06/16 更新 CirrOS 下载地址,添加注册 image 方法和修改登录密码相关内容

关于作者
麦子,80 后,现从事通信行业。安卓玩家一个人的书房朗读者。
MRJENGLISH
jsntn
jasonwtien
jasonwtien
更多…… /about.html

最近更新: