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

         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    |
+----+------------------+---------+----------+---------+-------+----------------------------+

 

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

晚风_END

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值