4

Keystone

1.查询所有用户:

[root@controller ~]# openstack user list

+----------------------------------+-----------+
| ID                               | Name      |
+----------------------------------+-----------+
| 5dff98790e7849f5a9a6efb8ba984056 | glance    |
| 647ac5b8de4d4b109e3eda68a7d86894 | neutron   |
| a37535eb791a4d219ded1e0163a42aac | demo      |
| aa6274ce2a4b4441bff1522b07afed84 | admin     |
| d217676fff054a3e9c7a3a9b3ed8b1f8 | nova      |
| faf1bbd882a84c4988ad2dae98e1d6a8 | placement |
+----------------------------------+-----------+

2.查询所有认证服务:

[root@controller ~]# openstack catalog list

+-----------+-----------+-----------------------------------------+
| Name      | Type      | Endpoints                               |
+-----------+-----------+-----------------------------------------+
| nova      | compute   | RegionOne                               |
|           |           |   public: http://controller:8774/v2.1   |
|           |           | RegionOne                               |
|           |           |   internal: http://controller:8774/v2.1 |
|           |           | RegionOne                               |
|           |           |   admin: http://controller:8774/v2.1    |
|           |           |                                         |
| neutron   | network   | RegionOne                               |
|           |           |   internal: http://controller:9696      |
|           |           | RegionOne                               |
|           |           |   admin: http://controller:9696         |
|           |           | RegionOne                               |
|           |           |   public: http://controller:9696        |
|           |           |                                         |
| 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      |
|           |           |                                         |
| glance    | image     | RegionOne                               |
|           |           |   public: http://controller:9292        |
|           |           | RegionOne                               |
|           |           |   internal: http://controller:9292      |
|           |           | RegionOne                               |
|           |           |   admin: http://controller:9292         |
|           |           |                                         |
+-----------+-----------+-----------------------------------------+

Glance

1.查询所有镜像列表:

[root@controller ~]# openstack image list

+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 92db7e2e-bbe2-4e2e-8c18-4db2a2190ee4 | cirros | active |
| cd83fba7-00a7-44d7-ac7e-5bf66e560e94 | ningsi | active |
+--------------------------------------+--------+--------+

2.删除指定镜像:

[root@controller ~]# openstack image delete ID

3.查看镜像:

[root@controller ~]# openstack image show 92db7e2e-bbe2-4e2e-8c18-4db2a2190ee4

+------------------+------------------------------------------------------+
| Field            | Value                                                |
+------------------+------------------------------------------------------+
| checksum         | f8ab98ff5e73ebab884d80c9dc9c7290                     |
| container_format | bare                                                 |
| created_at       | 2019-03-25T04:54:34Z                                 |
| disk_format      | qcow2                                                |
| file             | /v2/images/92db7e2e-bbe2-4e2e-8c18-4db2a2190ee4/file |
| id               | 92db7e2e-bbe2-4e2e-8c18-4db2a2190ee4                 |
| min_disk         | 0                                                    |
| min_ram          | 0                                                    |
| name             | cirros                                               |
| owner            | 214903aa0dc24bf39460f82917a0aab2                     |
| protected        | False                                                |
| schema           | /v2/schemas/image                                    |
| size             | 13267968                                             |
| status           | active                                               |
| tags             |                                                      |
| updated_at       | 2019-03-25T04:54:35Z                                 |
| virtual_size     | None                                                 |
| visibility       | public                                               |
+------------------+------------------------------------------------------+

4.上传镜像

[root@controller ~]# openstack image create "cirros" --file cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format bare --public

未完,持续更新中...


圣特仑特星
17 声望3 粉丝

“在这样一个时代,你必须努力奔跑才能停留在原地。”


引用和评论

0 条评论