openstack安装报错及处理

如下启动amqp服务时失败:


Applying 192.168.0.109_mariadb.pp

192.168.0.109_amqp.pp:                            [ ERROR ]         

Applying Puppet manifests                         [ ERROR ]


ERROR : Error appeared during Puppet run: 192.168.0.109_amqp.pp

Error: Could not start Service[rabbitmq-server]: Execution of '/usr/bin/systemctl start rabbitmq-server' returned 1: Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.

You will find full trace in log /var/tmp/packstack/20150904-125106-m9gHVs/manifests/192.168.0.109_amqp.pp.log


手动启动并查看日志:

[root@node109 ~]# journalctl -f

[root@node109 ~]# systemctl restart rabbitmq-server.service

Sep 04 13:48:04 node109.zte.com sshd[12869]: reverse mapping checking getaddrinfo for bogon [192.168.0.101] failed - POSSIBL...TEMPT!

Sep 04 13:48:04 node109.zte.com sshd[12869]: Accepted password for root from 192.168.0.101 port 56258 ssh2

Sep 04 13:48:04 node109.zte.com systemd[1]: Starting Session 201 of user root.

Sep 04 13:48:04 node109.zte.com systemd[1]: Started Session 201 of user root.

Sep 04 13:48:04 node109.zte.com systemd-logind[568]: New session 201 of user root.

Sep 04 13:48:04 node109.zte.com sshd[12869]: pam_unix(sshd:session): session opened for user root by (uid=0)

Sep 04 13:48:11 node109.zte.com systemd[1]: Starting RabbitMQ broker...

Sep 04 13:48:11 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12908.

Sep 04 13:48:11 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12909.

Sep 04 13:48:11 node109.zte.com systemd[1]: rabbitmq-server.service: Got notification message from PID 12912, but reception ... 12895

Sep 04 13:48:42 node109.zte.com rabbitmq-server[12895]: ERROR: epmd error for host node109: timeout (timed out)

Sep 04 13:48:42 node109.zte.com systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE

Sep 04 13:48:42 node109.zte.com rabbitmqctl[12923]: Stopping and halting node rabbit@node109 ...

Sep 04 13:48:49 node109.zte.com rabbitmqctl[12923]: Error: unable to connect to node rabbit@node109: nodedown

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: DIAGNOSTICS

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: ===========

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: attempted to contact: [rabbit@node109]

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: rabbit@node109:

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: * connected to epmd (port 4369) on node109

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: * epmd reports: node 'rabbit' not running at all

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: no other nodes on node109

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: * suggestion: start the node

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: current node details:

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: - node name: rabbitmqctl12923@node109

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: - home dir: /var/lib/rabbitmq

Sep 04 13:48:50 node109.zte.com rabbitmqctl[12923]: - cookie hash: Cl5CFarYxY6fT48PiBawHw==

Sep 04 13:48:50 node109.zte.com systemd[1]: rabbitmq-server.service: control process exited, code=exited status=2

Sep 04 13:48:50 node109.zte.com systemd[1]: Failed to start RabbitMQ broker.

Sep 04 13:48:50 node109.zte.com systemd[1]: Unit rabbitmq-server.service entered failed state.


如上面红色标记部分,是因为连接主机node109失败了。检查/etc/hosts文件和/etc/sysconfig/network文件查看主机名设置及解析情况。在network文件中配置主机名并在hosts文件中配置相应的解析记录,然后重启ampq服务并查看日志:

[root@node109 ~]# systemctl restart rabbitmq-server.service

[root@node109 ~]# journalctl -f

Sep 04 13:50:23 node109.zte.com systemd[1]: Starting RabbitMQ broker...

Sep 04 13:50:23 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12970.

Sep 04 13:50:23 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12971.

Sep 04 13:50:23 node109.zte.com systemd[1]: rabbitmq-server.service: Got notification message from PID 12974, but reception ... 12957

Sep 04 13:50:24 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12988.

Sep 04 13:50:24 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12989.

Sep 04 13:50:24 node109.zte.com systemd[1]: Cannot find unit for notify message of PID 12992.

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: RabbitMQ 3.3.5. Copyright (C) 2007-2014 GoPivotal, Inc.

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: ##  ##

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: ##########  Logs: /var/log/rabbitmq/[email protected]

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: ######  ##        /var/log/rabbitmq/[email protected]

Sep 04 13:50:24 node109.zte.com rabbitmq-server[12957]: ##########

Sep 04 13:50:25 node109.zte.com rabbitmq-server[12957]: Starting broker... completed with 0 plugins.

Sep 04 13:50:25 node109.zte.com systemd[1]: Started RabbitMQ broker.


你可能感兴趣的:(error,status,failed,start)