重启nova-scheduler服务,报错Login was refused using authentication mechanism AMQPLAIN

问题描述

运行

systemctl restart openstack-nova-scheduler.service

失败,查看日志报错如下:

2019-12-22 14:52:27.426 15138 ERROR oslo_service.service     (class_id, method_id), ConnectionError)
2019-12-22 14:52:27.426 15138 ERROR oslo_service.service AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.

查看状态

[root@controller ~]# systemctl status openstack-nova-scheduler.service
● openstack-nova-scheduler.service - OpenStack Nova Scheduler Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-nova-scheduler.service; enabled; vendor preset: disabled)
   Active: activating (start) since 日 2019-12-22 14:55:16 CST; 1s ago
 Main PID: 16532 (nova-scheduler)
   CGroup: /system.slice/openstack-nova-scheduler.service
           └─16532 /usr/bin/python2 /usr/bin/nova-scheduler

解决

原因是没有创建openstack用户(但是我之前确实创建了。。。重新启动加了一块网卡就没了),重新创建该用户,解决问题。
参考

// 查看当前rabbitmq的用户
rabbitmqctl list_users
// 添加openstack用户
rabbitmqctl add_user openstack 123456
//分配权限
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

posted @ 2019-12-22 15:03  冰柠檬的夏天  阅读(3032)  评论(0编辑  收藏  举报