检查服务正常化
1
|
nova-manage service list |
发现很多nova服务没有启动。 全部启动,直到nova-manage service list所有服务都是:)而不是XXX。
虚拟机状态修正
重置状态
1
|
nova reset-state instance- id
|
1
|
nova stop instance- id
|
1
|
nova start instance- id
|
具体为:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
root@node-5 ~] # nova list --all-tenants
+--------------------------------------+--------------------------------------------+--------+------------+-------------+----------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+--------------------------------------------+--------+------------+-------------+----------------------------+ | 5476f0de-7f6a-4c62-9718-cd6f245032a3 | Master2_Chester | REBOOT | rebooting | Running | vlan39=172.17.39.7 | | 46d12cc3-a51a-4af6-a62d-730017229237 | Slave2_Chester | REBOOT | rebooting | Running | vlan39=172.17.39.11 | | b0cfb2ad-7658-4211-a0cb-400ea061e0da | Slave3_Chester | REBOOT | rebooting | Running | vlan39=172.17.39.12 | | 511d4a9d-c908-4eba-9569-a1ddb6022ad7 | [TimaEye_Dev]RedisStorm1 | REBOOT | rebooting | Running | vlan51=172.17.51.3 | | 2812c603-7f86-4829-9fd3-56fbce0bd529 | [TimaEye_Dev]RedisStorm2 | REBOOT | rebooting | Running | vlan51=172.17.51.6 | | ca84f68f-24c7-4149-a8b2-7edcf9f0a16b | [TimaEye_Dev]RedisStorm3 | REBOOT | rebooting | Running | vlan51=172.17.51.5 | | 013bce2e-7ebc-4572-b151-a690de7f2baf | fds | REBOOT | rebooting | Running | novanetwork_0=172.17.36.7 | | 38e340aa-679c-42b0-b023-6a5dd94b4562 | fdsf-38e340aa-679c-42b0-b023-6a5dd94b4562 | REBOOT | rebooting | Running | novanetwork_0=172.17.36.10 | | 3dedd62e-5b63-430b-a03a-fc7a97def5fe | fdsf-3dedd62e-5b63-430b-a03a-fc7a97def5fe | REBOOT | rebooting | Running | novanetwork_0=172.17.36.8 | | 56e37303-17d5-4850-9e1c-1f7a5dc6dea1 | fdsf-56e37303-17d5-4850-9e1c-1f7a5dc6dea1 | REBOOT | rebooting | Running | novanetwork_0=172.17.36.12 | | 6a0bef12-a547-4035-8835-3f857bec5785 | fdsf-6a0bef12-a547-4035-8835-3f857bec5785 | REBOOT | rebooting | Running | novanetwork_0=172.17.36.9 | | 9a98e2a9-7d0e-4322-8502-0db898a099ca | fdsf-9a98e2a9-7d0e-4322-8502-0db898a099ca | REBOOT | rebooting | Running | novanetwork_0=172.17.36.11 | | 5fff4b79-8627-4938-9842-1fa4e52bcd41 | fgfh | ACTIVE | None | Running | novanetwork_0=172.17.36.16 | | 952c6e56-3add-4dad-a8c1-57488ddb36e9 | gfdgf-952c6e56-3add-4dad-a8c1-57488ddb36e9 | REBOOT | rebooting | Running | novanetwork_0=172.17.36.15 | | b23fa799-04b6-415c-bbbd-0d8281752956 | gfdgf-b23fa799-04b6-415c-bbbd-0d8281752956 | REBOOT | rebooting | Running | novanetwork_0=172.17.36.13 | | 6bd2435f-8fef-4fde-9e6c-74bf2a5f2f71 | gfgfda | REBOOT | rebooting | Running | novanetwork_0=172.17.36.6 | | 14d2b295-9fd1-4814-af4a-a5dea115572e | gfhgf | REBOOT | rebooting | Running | novanetwork_0=172.17.36.5 | | 96d19176-a63c-47af-9529-c0958c0d21a9 | hgfh | REBOOT | rebooting | Running | novanetwork_0=172.17.36.3 | | dbbad3c0-ee55-477d-ba83-e349d3cf8a49 | tangcl | REBOOT | rebooting | Running | novanetwork_0=172.17.36.23 | | 72a1fd3b-37ce-4bf7-8d73-741cf793e3a9 | 小妹 | ACTIVE | None | Running | novanetwork_0=172.17.36.14 | +--------------------------------------+--------------------------------------------+--------+------------+-------------+----------------------------+ [root@node-5 ~] # nova reset-state 511d4a9d-c908-4eba-9569-a1ddb6022ad7
[root@node-5 ~] # nova stop 511d4a9d-c908-4eba-9569-a1ddb6022ad7
[root@node-5 ~] # nova start 511d4a9d-c908-4eba-9569-a1ddb6022ad7
|
虚拟机的真实状态就同实际数据库的状态一致了。
但是可能有部分的虚拟机能使用vnc界面访问,但是不能使用SSH链接。使用vnc登录后,发现eth0没有IP绑定。在虚拟机中执行
1
|
dhclient -d eth0 |