openstack服务不正常
使用命令
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[root@node-5 TimaIaas] # nova-manage service list Binary Host Zone Status State Updated_At nova-cert node-5.domain.tld internal enabled :-) 2014-11-17 09:18:09 nova-consoleauth node-5.domain.tld internal enabled :-) 2014-11-17 09:18:06 nova-conductor node-5.domain.tld internal enabled :-) 2014-11-17 09:18:00 nova-scheduler node-5.domain.tld internal enabled :-) 2014-11-17 09:18:04 nova-cert node-9.domain.tld internal enabled :-) 2014-11-17 09:18:03 nova-consoleauth node-9.domain.tld internal enabled :-) 2014-11-17 09:18:07 nova-scheduler node-9.domain.tld internal enabled :-) 2014-11-17 09:18:09 nova-conductor node-9.domain.tld internal enabled :-) 2014-11-17 09:18:08 nova-cert node-10.domain.tld internal enabled :-) 2014-11-17 09:18:08 nova-consoleauth node-10.domain.tld internal enabled :-) 2014-11-17 09:18:05 nova-scheduler node-10.domain.tld internal enabled :-) 2014-11-17 09:18:07 nova-conductor node-10.domain.tld internal enabled :-) 2014-11-17 09:18:04 nova-compute node-12.domain.tld nova enabled XXX 2014-11-10 18:32:30 nova-network node-12.domain.tld internal enabled :-) 2014-11-17 09:18:06 nova-console node-10.domain.tld internal enabled :-) 2014-11-17 09:18:09 nova-console node-5.domain.tld internal enabled :-) 2014-11-17 09:18:03 nova-network node-14.domain.tld internal enabled :-) 2014-11-17 09:18:07 nova-compute node-14.domain.tld nova enabled :-) 2014-11-17 09:18:01 |
我们必须保证里面所有的服务State都是:-),我们看到有一个服务nova-compute不正常,所以查找原因。
在计算节点
1
2
3
4
5
6
7
8
9
10
|
[root@node-14 ~] # ps auxf | grep compute root 22722 0.0 0.0 103236 824 pts /4 S+ 09:35 0:00 \_ grep compute 166 16044 9.5 0.4 715464 398084 ? S Nov13 575:51 /usr/bin/python /usr/bin/ceilometer-agent-compute --logfile /var/log/ceilometer/compute .log nova 14621 2.3 0.0 1971540 64228 ? Sl 09:17 0:24 /usr/bin/python /usr/bin/nova-compute --logfile /var/log/nova/compute .log [root@node-14 ~] # netstat -p | grep 14621 tcp 0 0 node-14:44787 node-5:jms ESTABLISHED 14621 /python tcp 0 0 node-14:44789 node-5:jms ESTABLISHED 14621 /python tcp 0 0 node-14:44788 node-5:jms ESTABLISHED 14621 /python unix 3 [ ] STREAM CONNECTED 25541768 14621 /python unix 2 [ ] DGRAM 25541753 14621 /python 0859 /python |
可以看到,compute服务会想node-5节点的jms端口发起请求。 这里我们就可以找到是rabbitmq的服务不正常,重启该服务。启动计算节点的nova-compute服务。
全部up正常状态
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[root@node-5 ~] # nova service-list +------------------+--------------------+----------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+--------------------+----------+---------+-------+----------------------------+-----------------+ | nova-cert | node-5.domain.tld | internal | enabled | up | 2014-11-17T09:42:11.000000 | None | | nova-consoleauth | node-5.domain.tld | internal | enabled | up | 2014-11-17T09:42:08.000000 | None | | nova-conductor | node-5.domain.tld | internal | enabled | up | 2014-11-17T09:42:02.000000 | None | | nova-scheduler | node-5.domain.tld | internal | enabled | up | 2014-11-17T09:42:08.000000 | None | | nova-cert | node-9.domain.tld | internal | enabled | up | 2014-11-17T09:42:09.000000 | None | | nova-consoleauth | node-9.domain.tld | internal | enabled | up | 2014-11-17T09:42:12.000000 | None | | nova-scheduler | node-9.domain.tld | internal | enabled | up | 2014-11-17T09:42:03.000000 | None | | nova-conductor | node-9.domain.tld | internal | enabled | up | 2014-11-17T09:42:11.000000 | None | | nova-cert | node-10.domain.tld | internal | enabled | up | 2014-11-17T09:42:05.000000 | None | | nova-consoleauth | node-10.domain.tld | internal | enabled | up | 2014-11-17T09:42:09.000000 | None | | nova-scheduler | node-10.domain.tld | internal | enabled | up | 2014-11-17T09:42:11.000000 | None | | nova-conductor | node-10.domain.tld | internal | enabled | up | 2014-11-17T09:42:08.000000 | None | | nova-compute | node-12.domain.tld | nova | enabled | up | 2014-11-17T09:42:07.000000 | None | | nova-network | node-12.domain.tld | internal | enabled | up | 2014-11-17T09:42:09.000000 | None | | nova-console | node-10.domain.tld | internal | enabled | up | 2014-11-17T09:42:05.000000 | None | | nova-console | node-5.domain.tld | internal | enabled | up | 2014-11-17T09:42:08.000000 | None | | nova-network | node-14.domain.tld | internal | enabled | up | 2014-11-17T09:42:09.000000 | None | | nova-compute | node-14.domain.tld | nova | enabled | up | 2014-11-17T09:42:12.000000 | None | +------------------+--------------------+----------+---------+-------+----------------------------+-----------------+ |