验证操作
安装网络Nuetron 服务之前验证前面所部署的服务是否正常
~# . admin-openrc
列出服务组件以验证每个进程是否成功启动和注册:
~# openstack compute service list
+--------------------------------------+----------------+----------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+----------+----------+---------+-------+----------------------------+
| 66bae54a-bd1e-456e-a016-88bc05539ccb | nova-scheduler | nova-001 | internal | enabled | up | 2022-04-24T03:49:33.000000 |
| 6b924b34-895a-4057-a9ca-196f47e7128f | nova-conductor | nova-001 | internal | enabled | up | 2022-04-24T03:49:30.000000 |
| 67ae7624-aa05-4f46-96a8-a28b46d40ae4 | nova-compute | nova-001 | nova | enabled | up | 2022-04-24T03:49:34.000000 |
+--------------------------------------+----------------+----------+----------+---------+-------+----------------------------+
列出标识服务中的 API 终结点,以验证与标识服务的连接:
~# 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 |
| | | |
| placement | placement | RegionOne |
| | | internal: http://controller:8778 |
| | | RegionOne |
| | | admin: http://controller:8778 |
| | | RegionOne |
| | | public: http://controller:8778 |
| | | |
| glance | image | RegionOne |
| | | internal: http://controller:9292 |
| | | RegionOne |
| | | public: http://controller:9292 |
| | | RegionOne |
| | | admin: http://controller:9292 |
| | | |
| keystone | identity | RegionOne |
| | | internal: http://controller:5000/v3/ |
| | | RegionOne |
| | | admin: http://controller:5000/v3/ |
| | | RegionOne |
| | | public: http://controller:5000/v3/ |
| | | |
+-----------+-----------+-----------------------------------------+
列出影像服务中的图像以验证与影像服务的连通性:
~# openstack image list
+--------------------------------------+---------+--------+
| ID | Name | Status |
+--------------------------------------+---------+--------+
| 879f5362-bbb7-426e-ac78-d753996d4f95 | cirros | active |
| 798930cd-94c6-4049-b08f-94c31a9cc281 | cirros1 | active |
+--------------------------------------+---------+--------+
检查单元和放置 API 是否成功工作,以及其他必要的先决条件是否到位:
~# nova-status upgrade check
+-------------------------------------------+
| Upgrade Check Results |
+-------------------------------------------+
| Check: Cells v2 |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: Placement API |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: Cinder API |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: Policy Scope-based Defaults |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: Policy File JSON to YAML Migration |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: Older than N-1 computes |
| Result: Success |
| Details: None |
+-------------------------------------------+
| Check: hw_machine_type unset |
| Result: Success |
| Details: None |
+-------------------------------------------+