赞
踩
安装到nova 组件时,启动服务,发现nova-consoleauth、nova-scheduler 两个服务总是在启动中,
查看log 发现报错如下
#2018-04-14 17:21:36.373 14562 ERROR oslo_service.service conn.connect() #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 300, in connect #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service self.drain_events(timeout=self.connect_timeout) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 464, in drain_events #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service return self.blocking_read(timeout) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 469, in blocking_read #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service return self.on_inbound_frame(frame) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/method_framing.py", line 68, in on_frame #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service callback(channel, method_sig, buf, None) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 473, in on_inbound_method #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service method_sig, payload, content, #32018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 142, in dispatch_method #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service listener(*args) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 595, in _on_close #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service (class_id, method_id), ConnectionError) #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service
## 是rabbitmq 的问题,无法访问
检查rabbitmq
- rabbitmqctl list_users
- Listing users ...
- guest [administrator]
明明创建了openstack用户,怎么没有
重新创建 openstack用户
- rabbitmqctl add_user openstack RABBIT_PASS
- Creating user "openstack" ...
- rabbitmqctl set_permissions openstack ".*" ".*" ".*"
- Setting permissions for user "openstack" in vhost "/" ...
##检查一下是否创建成功
rabbitmqctl list_users
- Listing user....
- openstack []
- guest [administrator]
###重启驱动rabbitmq-server 和nova服务的组件,显示正常,log 也显示成功访问amqp
- ECONNREFUSED
- 2018-04-14 17:25:31.175 16959 INFO oslo.messaging._drivers.impl_rabbit [req-156e2f92-a7fb-4de2-adeb-44f7fb0cb5ec - - - - -] [264f594c-aa6a-4831-b00e-863032fc37e1] Reconnected to AMQP server on controller:5672 via [amqp] client with port 56885.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。