当前位置:   article > 正文

OpenStack计算节点nove启动报错_modules with known eventlet monkey patching issues

modules with known eventlet monkey patching issues were imported prior to ev

OpenStack计算节点nove启动时提示如下错误:

  1. [root@c2 ~]# systemctl restart openstack-nova-compute.service
  2. Job for openstack-nova-compute.service failed because the control process exited with error code.
  3. See "systemctl status openstack-nova-compute.service" and "journalctl -xeu openstack-nova-compute.service" for details.

查看日志,错误信息如下:

  1. [root@c2 nova]# tail /var/log/messages
  2. 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
  3. 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
  4. Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
  5. Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.
  6. Dec 9 21:44:29 localhost systemd[1]: Failed to start OpenStack Nova Compute Server.
  7. Dec 9 21:44:29 localhost systemd[1]: openstack-nova-compute.service: Scheduled restart job, restart counter is at 18.
  8. Dec 9 21:44:29 localhost systemd[1]: Stopped OpenStack Nova Compute Server.
  9. Dec 9 21:44:29 localhost systemd[1]: Starting OpenStack Nova Compute Server...
  10. 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.
  11. 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即可,如下所示:

  1. [root@c1 ~]# vim /etc/nova/nova.conf
  2. ……此处省略文件原有内容……
  3. compute_driver=libvirt.LibvirtDriver
  4. ……此处省略文件原有内容……
  5. [root@c1 ~]# systemctl restart libvirtd.service openstack-nova-compute.service
  6. [root@c1 ~]# systemctl status openstack-nova-compute.service
  7. ● openstack-nova-compute.service - OpenStack Nova Compute Server
  8. Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
  9. Active: active (running) since Fri 2022-12-09 21:52:44 CST; 16min ago
  10. Main PID: 14609 (nova-compute)
  11. Tasks: 23 (limit: 201506)
  12. Memory: 135.4M
  13. CGroup: /system.slice/openstack-nova-compute.service
  14. └─14609 /usr/bin/python3 /usr/bin/nova-compute

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/342975
推荐阅读
相关标签
  

闽ICP备14008679号