OpenStack计算节点nove启动报错

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

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值