当前位置:   article > 正文

openstack openstack-nova-consoleauth.service 和openstack-nova-scheduler.service 服务启动报错_unit openstack-nova-scheduler.service has failed

unit openstack-nova-scheduler.service has failed

安装到nova 组件时,启动服务,发现nova-consoleauth、nova-scheduler 两个服务总是在启动中,

查看log 发现报错如下

  1. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service conn.connect()
  2. #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
  3. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service self.drain_events(timeout=self.connect_timeout)
  4. #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
  5. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service return self.blocking_read(timeout)
  6. #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
  7. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service return self.on_inbound_frame(frame)
  8. #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
  9. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service callback(channel, method_sig, buf, None)
  10. #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
  11. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service method_sig, payload, content,
  12. #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
  13. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service listener(*args)
  14. #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
  15. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service (class_id, method_id), ConnectionError)
  16. #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.
  17. #2018-04-14 17:21:36.373 14562 ERROR oslo_service.service

## 是rabbitmq 的问题,无法访问

检查rabbitmq

  1. rabbitmqctl list_users
  2. Listing users ...
  3. guest [administrator]

明明创建了openstack用户,怎么没有

重新创建 openstack用户

  1. rabbitmqctl add_user openstack RABBIT_PASS
  2. Creating user "openstack" ...
  3. rabbitmqctl set_permissions openstack ".*" ".*" ".*"
  4. Setting permissions for user "openstack" in vhost "/" ...

##检查一下是否创建成功

rabbitmqctl list_users

  1. Listing user....
  2. openstack []
  3. guest [administrator]

###重启驱动rabbitmq-server 和nova服务的组件,显示正常,log 也显示成功访问amqp

  1. ECONNREFUSED
  2. 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.










声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/342988
推荐阅读
相关标签
  

闽ICP备14008679号