欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2024-03-23 22:36:58
...

部署OpenStack Mitaka版时,计算节点openstack-nova-compute.service 服务一直夯着无法启动,libvirtd 服务启动正常:

[aaa@qq.com ~]$ 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 Fri 2019-06-21 21:43:51 CST; 22min ago
 Main PID: 3688 (nova-compute)
    Tasks: 1
   CGroup: /system.slice/openstack-nova-compute.service
           └─3688 /usr/bin/python2 /usr/bin/nova-compute

nova-compute日志如下:

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

原因是计算节点不知道谁是控制节点,所以需要把控制节点的IP写入到hosts文件中

[aaa@qq.com ~]$ vim /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.11   controller
10.0.0.31   compute1

启动成功!

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

相关标签: OpenStack