部署OpenStack Mitaka版时,计算节点openstack-nova-compute.service 服务一直夯着无法启动,libvirtd 服务启动正常: [root@compute1 ~]$ 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日志如下: 原因是计算节点不知道谁是控制节点,所以需要把控制节点的IP写入到hosts文件中 [root@compute1 ~]$ 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 启动成功! (责任编辑:IT) |