OpenStack查看版本命令
OpenStack是一个开源的云计算平台,用于构建和管理公共云和私有云。在使用OpenStack时,了解其版本信息是很重要的。本文将介绍OpenStack中用于查看版本的命令,并给出相应的代码示例。
OpenStack版本命令
openstack --version
:该命令用于查看安装的OpenStack客户端的版本。示例代码如下:
$ openstack --version
openstack 4.2.0
openstack --os-cloud <cloud> version list
:该命令用于查看指定云的OpenStack服务的版本。其中,<cloud>
为云的名称。示例代码如下:
$ openstack --os-cloud mycloud version list
+---------+-----------------+
| Version | Service |
+---------+-----------------+
| 2.1 | identity |
| 2.7 | image |
| 1.21 | compute |
| 1.6 | volume |
| 1.6 | network |
| 1 | orchestration |
| 1.1 | telemetry |
| 1 | metric |
| 1 | dns |
| 1.0 | load-balancer |
| 1 | data-processing |
+---------+-----------------+
openstack endpoint list
:该命令用于查看OpenStack服务的端点列表,包括版本信息。示例代码如下:
$ openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+
| 035b48a8e5c943df88b92dfdb973d4b1 | regionOne | keystone | identity | True | admin | |
| 2a8f3a2bd5d3499fb849559f5bdf1b94 | regionOne | keystone | identity | True | internal | |
| 5c9dd6f973db4b5ebabc0d6568f64cf3 | regionOne | keystone | identity | True | public | |
| 23b9205c8eae409698cfe4a0d5c8e1fe | regionOne | glance | image | True | admin | |
| 9788af14d6d34e9ab65625da9edf4b1a | regionOne | glance | image | True | internal | |
| 57b696bc5e7540e1b8f9de0f0b5b9b9e | regionOne | glance | image | True | public | |
| 2d7bd64e17fe4e62bcb0fe19d2f9ad9f | regionOne | nova | compute | True | admin | |
| 7249d6e697cb46778b01d8f2e28b146c | regionOne | nova | compute | True | internal | |
| 92e79adde72349f4b9c9e17d4a141e7e | regionOne | nova | compute | True | public | |
| 4f5f1c6b916d451dbf32cfe7e3944f54 | regionOne | cinder | volume | True | admin | |
| 5d5e4563b7ec4c4dbd199078dfc6b0c6 | regionOne | cinder | volume | True | internal | |
| 8e99b245f1a04ef8b