赞
踩
由于前期粗心,rabbitmq服务的密码未能正确设置,引起了很多错误,其表现为Nova-compute 服务没有启动,
命令:openstack compute service listopenstack compute service list
+----+------------------+---------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+---------+----------+---------+-------+----------------------------+
| 1 | nova-scheduler | centos1 | internal | enabled | up |
| 2 | nova-consoleauth | centos1 | internal | enabled | up |
| 3 | nova-conductor | centos1 | internal | enabled | up |
| 7 | nova-compute | centos2 | nova | enabled | down |
查看compute节点日志:
tail /var/log/nova/nova-compute.log
==================================================================
192.168.0.3:5672 after None tries: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-06-17 17:28:54.177 6270 ERROR nova
======================================================================
提示密码未能验证通过,查看配置文件:
vim /etc/nova/nova.conf#打开的是compute节点的配置文件
vim /etc/nova/nova.conf #打开control节点的同样配置文件
=======================================================
# (string value)
transport_url=rabbit://openstack:123456@192.168.0.3#在Nova.conf文件内更改这一行,密码设置为123456
#192.168.0.3为control节点IP
#两个文件内的这一行保持一致
===========================================================
在controll节点机器重设rabbitmq密码:
执行命令:rabbitmqctl change_password openstack 123456
rabbitmqctl authenticate_user openstack 123456#该命令是验证openstack这个用户密码是否正确
#Authenticating user "openstack"
#Success#提示密码验证成功,更改密码成功了
systemctl restart rabbitmq-server#重启rabbitmq服务
在compute节点重启相关服务,命令如下:
systemctl restart openstack-nova-compute.service
在control节点查看服务是否正常:
openstack compute service list :
---+------------------+---------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+---------+----------+---------+-------+----------------------------+
| 1 | nova-scheduler | centos1 | internal | enabled | up |
| 2 | nova-consoleauth | centos1 | internal | enabled | up |
| 3 | nova-conductor | centos1 | internal | enabled | up |
| 7 | nova-compute | centos2 | nova | enabled | up |
+----+------------------+---------+----------+---------+-------+----------------------------+
此时正常了,世界清静了!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。