openstack命令学习

openstack版本查询

[root@localhost ~(keystone_admin)]# nova-manage --version
14.0.10

 查询openstack的Endpoint

[root@localhost ~(keystone_admin)]# openstack catalog list
+------------+--------------+------------------------------------------------------------------------------------+
| Name       | Type         | Endpoints                                                                          |
+------------+--------------+------------------------------------------------------------------------------------+
| nova       | compute      | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8774/v2.1/341ae3a595a64a6b9f754585c4df331d      |
|            |              |   internalURL: http://192.168.122.71:8774/v2.1/341ae3a595a64a6b9f754585c4df331d    |
|            |              |   adminURL: http://192.168.122.71:8774/v2.1/341ae3a595a64a6b9f754585c4df331d       |
|            |              |                                                                                    |
| neutron    | network      | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:9696                                            |
|            |              |   internalURL: http://192.168.122.71:9696                                          |
|            |              |   adminURL: http://192.168.122.71:9696                                             |
|            |              |                                                                                    |
| cinderv2   | volumev2     | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8776/v2/341ae3a595a64a6b9f754585c4df331d        |
|            |              |   internalURL: http://192.168.122.71:8776/v2/341ae3a595a64a6b9f754585c4df331d      |
|            |              |   adminURL: http://192.168.122.71:8776/v2/341ae3a595a64a6b9f754585c4df331d         |
|            |              |                                                                                    |
| cinderv3   | volumev3     | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8776/v3/341ae3a595a64a6b9f754585c4df331d        |
|            |              |   internalURL: http://192.168.122.71:8776/v3/341ae3a595a64a6b9f754585c4df331d      |
|            |              |   adminURL: http://192.168.122.71:8776/v3/341ae3a595a64a6b9f754585c4df331d         |
|            |              |                                                                                    |
| aodh       | alarming     | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8042                                            |
|            |              |   internalURL: http://192.168.122.71:8042                                          |
|            |              |   adminURL: http://192.168.122.71:8042                                             |
|            |              |                                                                                    |
| glance     | image        | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:9292                                            |
|            |              |   internalURL: http://192.168.122.71:9292                                          |
|            |              |   adminURL: http://192.168.122.71:9292                                             |
|            |              |                                                                                    |
| ceilometer | metering     | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8777                                            |
|            |              |   internalURL: http://192.168.122.71:8777                                          |
|            |              |   adminURL: http://192.168.122.71:8777                                             |
|            |              |                                                                                    |
| cinder     | volume       | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8776/v1/341ae3a595a64a6b9f754585c4df331d        |
|            |              |   internalURL: http://192.168.122.71:8776/v1/341ae3a595a64a6b9f754585c4df331d      |
|            |              |   adminURL: http://192.168.122.71:8776/v1/341ae3a595a64a6b9f754585c4df331d         |
|            |              |                                                                                    |
| swift      | object-store | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8080/v1/AUTH_341ae3a595a64a6b9f754585c4df331d   |
|            |              |   internalURL: http://192.168.122.71:8080/v1/AUTH_341ae3a595a64a6b9f754585c4df331d |
|            |              |   adminURL: http://192.168.122.71:8080/v1/AUTH_341ae3a595a64a6b9f754585c4df331d    |
|            |              |                                                                                    |
| gnocchi    | metric       | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:8041                                            |
|            |              |   internalURL: http://192.168.122.71:8041                                          |
|            |              |   adminURL: http://192.168.122.71:8041                                             |
|            |              |                                                                                    |
| keystone   | identity     | RegionOne                                                                          |
|            |              |   publicURL: http://192.168.122.71:5000/v2.0                                       |
|            |              |   internalURL: http://192.168.122.71:5000/v2.0                                     |
|            |              |   adminURL: http://192.168.122.71:35357/v2.0                                       |
|            |              |                                                                                    |
+------------+--------------+------------------------------------------------------------------------------------+

 查询nova的endpoint

[root@localhost /(keystone_admin)]# openstack endpoint show nova
+--------------+-----------------------------------------------+
| Field        | Value                                         |
+--------------+-----------------------------------------------+
| adminurl     | http://192.168.122.71:8774/v2.1/%(tenant_id)s |
| enabled      | True                                          |
| id           | 7651b0db69424134be0df550b80daee1              |
| internalurl  | http://192.168.122.71:8774/v2.1/%(tenant_id)s |
| publicurl    | http://192.168.122.71:8774/v2.1/%(tenant_id)s |
| region       | RegionOne                                     |
| service_id   | 97e40236315a4340915c2f2617328209              |
| service_name | nova                                          |
| service_type | compute                                       |
+--------------+-----------------------------------------------+

查看openstack的用户列表

[root@localhost ~(keystone_admin)]# openstack role list
+----------------------------------+---------------+
| ID                               | Name          |
+----------------------------------+---------------+
| 407f91d48460408ebd14969d8fea299c | SwiftOperator |
| 91b26d2efb0b475c8c04d460a268337a | ResellerAdmin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_      |
| cf1d2320a6ba4440ab60601359da4e2b | admin         |
+----------------------------------+---------------+
[root@localhost ~(keystone_admin)]#

查看镜像列表

[root@localhost ~(keystone_admin)]# glance image-list
+--------------------------------------+--------+
| ID                                   | Name   |
+--------------------------------------+--------+
| 1a9dadee-f2f0-47f4-994b-c8d38ebeca7a | cirros |
+--------------------------------------+--------+

 查询openstack的用户列表

[root@localhost /(keystone_admin)]# openstack user list
+----------------------------------+------------+
| ID                               | Name       |
+----------------------------------+------------+
| e705723ebb594b6a96d481359267fb15 | admin      |
| 2c99a8815b854fc386e8cdffee72d0ba | neutron    |
| d7b87f39da704ef8acf92c9791d1226c | gnocchi    |
| 8185d2ac765244c097ff3cf518bc449d | aodh       |
| b5bd50401b4748bf961c36d482030fe4 | nova       |
| a79197792a9f4e769843b347c306a30f | glance     |
| 85634b9c1e6343f39fd74aa76ba1580e | ceilometer |
| 2a4386059bd046b3b6c884de5859ced8 | cinder     |
| f1f807ba65cc44b9939ffc8c39a2d57c | demo       |
| bde45554f2d543549b3cc5b6a65f8921 | swift      |
+----------------------------------+------------+
[root@localhost /(keystone_admin)]# 
 
shanzhiyou
原文地址:https://www.cnblogs.com/shanzhiyou/p/8117573.html