赞
踩
OpenStack计算节点nove启动时提示如下错误:
- [root@c2 ~]# systemctl restart 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 -xeu openstack-nova-compute.service" for details.
查看日志,错误信息如下:
- [root@c2 nova]# tail /var/log/messages
- Dec 9 21:44:28 localhost nova-compute[18618]: 2022-12-09 21:44:28.464 18618 INFO os_vif [-] Loaded VIF plugins: linux_bridge, noop, ovs#033[00m
- Dec 9 21:44:28 localhost nova-compute[18618]: 2022-12-09 21:44:28.976 18618 ERROR nova.virt.driver [req-7d8261fb-7525-4e22-bd96-88301a243a0a - - - - -] Compute driver option required, but not specified#033[00m
- Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
- Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.
- Dec 9 21:44:29 localhost systemd[1]: Failed to start OpenStack Nova Compute Server.
- Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Scheduled restart job, restart counter is at 18.
- Dec 9 21:44:29 localhost systemd[1]: Stopped OpenStack Nova Compute Server.
- Dec 9 21:44:29 localhost systemd[1]: Starting OpenStack Nova Compute Server...
- Dec 9 21:44:30 localhost nova-compute[18625]: Modules with known eventlet monkey patching issues were imported prior to eventlet monkey patching: urllib3. This warning can usually be ignored if the caller is only importing and not executing nova code.
- Dec 9 21:44:32 localhost nova-compute[18625]: 2022-12-09 21:44:32.185 18625 INFO os_vif [-] Loaded VIF plugins: linux_bridge, noop, ovs#033[00m
从中可以看到提示“Compute driver option required, but not specified”
在/etc/nova/nova.conf配置文件中可以找到compute driver选项被注释掉了,将注释符号删除,然后重启openstack-nova-compute.service即可,如下所示:
- [root@c1 ~]# vim /etc/nova/nova.conf
- ……此处省略文件原有内容……
- compute_driver=libvirt.LibvirtDriver
- ……此处省略文件原有内容……
-
- [root@c1 ~]# systemctl restart libvirtd.service openstack-nova-compute.service
- [root@c1 ~]# 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 Fri 2022-12-09 21:52:44 CST; 16min ago
- Main PID: 14609 (nova-compute)
- Tasks: 23 (limit: 201506)
- Memory: 135.4M
- CGroup: /system.slice/openstack-nova-compute.service
- └─14609 /usr/bin/python3 /usr/bin/nova-compute
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。