六、测试是否运行正常
查看nova各服务
openstack compute service list
root@controller ~]# . admin-openrc
[root@controller ~]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| Id | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+------------+----------+---------+-------+----------------------------+
| 1 | nova-conductor | controller | internal | enabled | up | 2017-11-28T15:20:58.000000 |
| 2 | nova-consoleauth | controller | internal | enabled | up | 2017-11-28T15:21:07.000000 |
| 3 | nova-scheduler | controller | internal | enabled | up | 2017-11-28T15:21:05.000000 |
| 6 | nova-compute | compute1 | nova | enabled | up | 2017-11-28T15:21:04.000000 |
| 7 | nova-compute | compute2 | nova | enabled | up | 2017-11-28T15:21:04.000000 |
| 8 | nova-compute | cinder | nova | enabled | up | 2017-11-28T15:20:57.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+
查看cinder服务
cinder service-list
[root@controller ~]# cinder service-list
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled | up | 2017-11-28T15:22:17.000000 | - |
| cinder-volume | cinder | nova | enabled | down | 2017-11-28T12:13:07.000000 | - |
| cinder-volume | cinder@ceph | nova | enabled | up | 2017-11-28T15:22:18.000000 | - |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
发现有个down掉的,不碍事我们删掉它眼不见心不烦
先更改状态为disable
cinder service-disable cinder cind

本文详细介绍如何在OpenStack环境中检查服务状态,包括nova和cinder组件的状态验证、故障排除及资源创建流程。通过具体步骤展示了如何处理服务状态异常、上传镜像、创建云硬盘和虚拟机等操作。
最低0.47元/天 解锁文章
472

被折叠的 条评论
为什么被折叠?



