openstack-nova-compute.service 计算节点服务无法启动
发布日期:2021-05-07 15:04:29 浏览次数:15 分类:技术文章

本文共 2366 字,大约阅读时间需要 7 分钟。

         openstack-nova-compute.service 计算节点服务无法启动

由于前期粗心,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    |
+----+------------------+---------+----------+---------+-------+----------------------------+
 

此时正常了,世界清静了!!

 

上一篇:pip的官方源替换为国内高速镜像源
下一篇:linux 下安装kolla报错 提示Cannot uninstall requests

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2025年03月22日 15时35分20秒