重启nova-scheduler服务,报错Login was refused using authentication mechanism AMQPLAIN
Posted pan-xi-yi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了重启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 ".*" ".*" ".*"
以上是关于重启nova-scheduler服务,报错Login was refused using authentication mechanism AMQPLAIN的主要内容,如果未能解决你的问题,请参考以下文章
第 5 章 Nova - 027 - 看 nova-scheduler 如何选择计算节点