赞
踩
今天装openstack,中途重启下机器,装到nova的时候,无法启动 openstack-nova-compute.service服务。报错如下:
- [root@venus nova]# journalctl -xe
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit openstack-nova-compute.service has begun starting up.
- 10月 15 11:42:11 venus systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE
- 10月 15 11:42:11 venus systemd[1]: Failed to start OpenStack Nova Compute Server.
- -- Subject: Unit openstack-nova-compute.service has failed
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit openstack-nova-compute.service has failed.
- --
- -- The result is failed.
- 10月 15 11:42:11 venus systemd[1]: Unit openstack-nova-compute.service entered failed state.
- 10月 15 11:42:11 venus systemd[1]: openstack-nova-compute.service failed.
- 10月 15 11:42:11 venus systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
- 10月 15 11:42:11 venus systemd[1]: Stopped OpenStack Nova Compute Server.
- -- Subject: Unit openstack-nova-compute.service has finished shutting down
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit openstack-nova-compute.service has finished shutting down.
- 10月 15 11:42:11 venus systemd[1]: Starting OpenStack Nova Compute Server...
- -- Subject: Unit openstack-nova-compute.service has begun start-up
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit openstack-nova-compute.service has begun starting up.
查看nova-computer.log文件
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self.connection.ensure_connection(errback=on_error)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 405, in ensure_connection
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service callback)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/utils/functional.py", line 332, in retry_over_time
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return fun(*args, **kwargs)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 261, in connect
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return self.connection
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 802, in connection
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self._connection = self._establish_connection()
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 757, in _establish_connection
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service conn = self.transport.establish_connection()
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 130, in establish_connection
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service conn.connect()
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 313, in connect
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self.drain_events(timeout=self.connect_timeout)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 500, in drain_events
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service while not self.blocking_read(timeout):
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 506, in blocking_read
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return self.on_inbound_frame(frame)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/method_framing.py", line 55, in on_frame
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service callback(channel, method_sig, buf, None)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 510, in on_inbound_method
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service method_sig, payload, content,
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 126, in dispatch_method
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service listener(*args)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 639, in _on_close
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service (class_id, method_id), ConnectionError)
- 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
通过查看反复出现的错误:
AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
解决方法是rabbitmq-server.service服务异常,先使用命令 rabbitmqctl status查看,如果异常输出,就重新安装rabbitmqctl,重新创建用户。如果正常输出,如下:
- [root@venus nova]# rabbitmqctl status
- Status of node rabbit@venus
- [{pid,1989},
- {running_applications,
- [{rabbit,"RabbitMQ","3.6.16"},
- {mnesia,"MNESIA CXC 138 12","4.14.3"},
- {ranch,"Socket acceptor pool for TCP protocols.","1.3.2"},
- {rabbit_common,
- "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
- "3.6.16"},
- {xmerl,"XML parser","1.3.14"},
- {ssl,"Erlang/OTP SSL application","8.1.3.1"},
- {os_mon,"CPO CXC 138 46","2.4.2"},
- {compiler,"ERTS CXC 138 10","7.0.4.1"},
- {public_key,"Public key infrastructure","1.4"},
- {crypto,"CRYPTO","3.7.4"},
- {syntax_tools,"Syntax tools","2.1.1"},
- {asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
- {recon,"Diagnostic tools for production use","2.3.2"},
- {sasl,"SASL CXC 138 11","3.0.3"},
- {stdlib,"ERTS CXC 138 10","3.3"},
- {kernel,"ERTS CXC 138 10","5.2"}]},
- {os,{unix,linux}},
- {erlang_version,
- "Erlang/OTP 19 [erts-8.3.5.3] [source] [64-bit] [smp:32:32] [async-threads:512] [hipe] [kernel-poll:true]\n"},
- {memory,
- [{connection_readers,2772584},
- {connection_writers,156680},
- {connection_channels,794696},
- {connection_other,5333856},
则只需要重新创新用户,如果出现这个错误就是rabbitmq服务的事情。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。