[原][openstack-pike][compute node][issue-1]openstack-nova-compute.service holdoff time over, scheduling restart.
在安装pike compute node节点的时候遇到启动nova-compute失败,问题如下(注意红色字体):
[root@compute1 nova]# systemctl start openstack-nova-compute.service Job for openstack-nova-compute.service failed because the control process exited with error code.
See "systemctl status openstack-nova-compute.service" and "journalctl -xe" for details.
[root@compute1 nova]# systemctl status openstack-nova-compute.service ● openstack-nova-compute.service - OpenStack Nova Compute Server Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled) Active: activating (start) since Tue 2018-09-04 09:37:58 CST; 2s ago Main PID: 3431 (nova-compute) Tasks: 1 CGroup: /system.slice/openstack-nova-compute.service └─3431 /usr/bin/python2 /usr/bin/nova-compute Sep 04 09:37:58 compute1 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart. Sep 04 09:37:58 compute1 systemd[1]: Starting OpenStack Nova Compute Server... [root@compute1 nova]# date Tue Sep 4 09:38:14 CST 2018 [root@compute1 nova]# journalctl -xe Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing workstation service for lo. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing workstation service for virbr0-nic. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing address record for 192.168.122.1 on virbr0. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing workstation service for virbr0. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing address record for fe80::fc81:46e3:49a7:d1da on ens35. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing address record for fe80::8fb9:3258:5058:d538 on ens35. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing address record for 192.168.70.73 on ens35. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing workstation service for ens35. Sep 04 09:38:59 compute1 avahi-daemon[692]: Withdrawing address record for fe80::fe24:180a:91a7:8bdf on ens34. Sep 04 09:38:59 compute1 avahi-daemon[692]: Host name conflict, retrying with compute1-60 Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for 192.168.122.1 on virbr0.IPv4. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for fe80::fc81:46e3:49a7:d1da on ens35.*. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for fe80::8fb9:3258:5058:d538 on ens35.*. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for 192.168.70.73 on ens35.IPv4. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for fe80::fe24:180a:91a7:8bdf on ens34.*. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for fe80::1041:9aae:6318:6a4a on ens34.*. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for 10.50.70.73 on ens34.IPv4. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering new address record for 192.168.184.135 on ens33.IPv4. Sep 04 09:38:59 compute1 avahi-daemon[692]: Registering HINFO record with values 'X86_64'/'LINUX'. Sep 04 09:39:00 compute1 systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE Sep 04 09:39:00 compute1 systemd[1]: Failed to start OpenStack Nova Compute Server. -- Subject: Unit openstack-nova-compute.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit openstack-nova-compute.service has failed. -- -- The result is failed. Sep 04 09:39:00 compute1 systemd[1]: Unit openstack-nova-compute.service entered failed state. Sep 04 09:39:00 compute1 systemd[1]: openstack-nova-compute.service failed. Sep 04 09:39:00 compute1 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart. Sep 04 09:39:00 compute1 systemd[1]: Starting OpenStack Nova Compute Server...
[root@compute1 nova]#vim /var/log/nova/nova-compute.log
... 2695 ERROR nova AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN.
For details see the broker logfile.
从上面的记录中可以推断应该message queue出了问题。导致无法login。
再想想涉及login到rabbit的使用的是用户名和密码:
查看rabbit server [on controller node]用户名密码:
[root@controller ~]# rabbitmq-plugins enable rabbitmq_management //开启rabbit web界面
[root@controller ~]#lsof |grep rabbit //查询rabbit web服务端口 15672
async_63 1089 2034 rabbitmq 49u IPv4 32616 0t0 TCP *:15672 (LISTEN)
在浏览器中输入controller:15672地址,如下图
再在compute node中的nova.conf中查找相关的用户名和密码
[DEFAULT]
。。。
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:rabbit@controller
用户名为openstack
密码为rabbit
login 失败
查看rabbit sever的用户列表发现没有openstack这个用户:
[root@controller ~]# rabbitmqctl list_users
Listing users ...
admin [administrator]
guest [administrator]
[重点]使用admin用户登录,由于忘记密码又不能直接查看明文密码,所以在rabbit_server[controller node]上重置用户为admin的用户密码:
[root@controller nova]# rabbitmqctl change_password admin admin
再次使用用户名和密码登录
用户名:admin
密码:admin
最后修改nova.conf [on compute node or controller node]
transport_url= rabbit://admin:admin@controller
启动nova-compute.service
[root@compute1 nova]# systemctl start openstack-nova-compute.service [root@compute1 nova]# systemctl status openstack-nova-compute.service ● openstack-nova-compute.service - OpenStack Nova Compute Server Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2018-09-04 13:46:08 CST; 49s ago Main PID: 25205 (nova-compute) Tasks: 22 CGroup: /system.slice/openstack-nova-compute.service └─25205 /usr/bin/python2 /usr/bin/nova-compute Sep 04 13:46:05 compute1 systemd[1]: Starting OpenStack Nova Compute Server... Sep 04 13:46:08 compute1 systemd[1]: Started OpenStack Nova Compute Server.
问题解决
作者:horizonli
出处:http://www.cnblogs.com/horizonli/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
如果您认为文章还不错或者有所收获,您可以通过扫描下方的二维码进行随性打赏(¥1/¥2/¥5)以及点击左下角的【好文要顶】按钮以示支持,或者扫描关注即将写作的公众号二维码,因为这几种方式都是支持我继续写作,分享的最大动力!公众号将记录工作生活,技术内容,个性观点等内容,欢迎您的关注
出处:http://www.cnblogs.com/horizonli/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
支付宝(alipay) 二维码打赏 |
微信(wechat) 二维码打赏 JUST LI(**波) |
微信公众号: 木子李的菜田 |