计算节点systemctl status openstack-nova-compute.service起不来的解决方案

这篇具有很好参考价值的文章主要介绍了计算节点systemctl status openstack-nova-compute.service起不来的解决方案。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

报错

[root@compute ~]# systemctl start libvirtd.service 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 -xe" for details.

● openstack-nova-compute.service - OpenStack Nova Compute Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Wed 2022-03-02 20:22:30 PST; 1min 48s ago
  Process: 1897 ExecStart=/usr/bin/nova-compute (code=exited, status=1/FAILURE)
 Main PID: 1897 (code=exited, status=1/FAILURE)

Mar 02 20:22:30 compute systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE
Mar 02 20:22:30 compute systemd[1]: Failed to start OpenStack Nova Compute Server.
Mar 02 20:22:30 compute systemd[1]: Unit openstack-nova-compute.service entered failed state.
Mar 02 20:22:30 compute systemd[1]: openstack-nova-compute.service failed.
Mar 02 20:22:30 compute systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
Mar 02 20:22:30 compute systemd[1]: Stopped OpenStack Nova Compute Server.
Mar 02 20:22:30 compute systemd[1]: start request repeated too quickly for openstack-nova-compute.service
Mar 02 20:22:30 compute systemd[1]: Failed to start OpenStack Nova Compute Server.
Mar 02 20:22:30 compute systemd[1]: Unit openstack-nova-compute.service entered failed state.
Mar 02 20:22:30 compute systemd[1]: openstack-nova-compute.service failed.

(1)按照网上说的 ,找控制节点rabbitmq日志/var/log/rabbitmq/下的日志,没有发现有error

(2)进入计算节点的/var/log/nova/目录,没有日志文件

(3)进入控制节点的/var/log/nova/目录,查看所有的nova日志,没有异常

(4)查看5672端口,处于被监控状态

(5)增加了rabbit的访问配置

这些还是不行,我想是不是openstack服务安装。在计算节点控制台敲入openstack命令,报错了。

[root@compute ~]# openstack
/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.10.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/usr/bin/openstack", line 6, in <module>
    from openstackclient.shell import main
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 22, in <module>
    from osc_lib.api import auth
  File "/usr/lib/python2.7/site-packages/osc_lib/api/auth.py", line 19, in <module>
    from keystoneauth1.loading import base
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/__init__.py", line 13, in <module>
    from keystoneauth1.loading import adapter
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/adapter.py", line 13, in <module>
    from keystoneauth1 import adapter
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 16, in <module>
    from keystoneauth1 import session
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 25, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 94, in <module>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning

 这个错误我熟啊,就是python的包冲突了。

使用以下方式解决了。

[root@compute ~]# wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
--2022-03-02 20:27:18--  https://bootstrap.pypa.io/pip/2.7/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.0.175, 151.101.64.175, 151.101.128.175, ...
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.0.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1908226 (1.8M) [text/x-python]
Saving to: ‘get-pip.py’

100%[=============================================================================================================>] 1,908,226    376KB/s   in 16s

2022-03-02 20:27:56 (117 KB/s) - ‘get-pip.py’ saved [1908226/1908226]

You have new mail in /var/spool/mail/root
[root@compute ~]# python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pip<21.0
  Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 21 kB/s
Collecting wheel
  Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: pip, wheel
Successfully installed pip-20.3.4 wheel-0.37.1
[root@compute ~]# pip uninstall urllib3 -y
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Found existing installation: urllib3 1.10.2
Uninstalling urllib3-1.10.2:
  Successfully uninstalled urllib3-1.10.2
[root@compute ~]# pip uninstall chardet -y
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Found existing installation: chardet 3.0.4
Uninstalling chardet-3.0.4:
  Successfully uninstalled chardet-3.0.4
[root@compute ~]# pip install requests
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (2.19.1)
Collecting chardet<3.1.0,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 199 kB/s
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python2.7/site-packages (from requests) (2.5)
Collecting urllib3<1.24,>=1.21.1
  Downloading urllib3-1.23-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 81 kB/s
Installing collected packages: chardet, urllib3
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
oslo-vmware 2.31.0 requires PyYAML>=3.12, but you'll have pyyaml 3.10 which is incompatible.
os-brick 2.5.10 requires eventlet!=0.18.3,!=0.20.1,>=0.18.2, but you'll have eventlet 0.20.1 which is incompatible.
Successfully installed chardet-3.0.4 urllib3-1.23

然后再启动服务就成功了。文章来源地址https://www.toymoban.com/news/detail-437476.html

[root@compute ~]# openstack
(openstack) exit
[root@compute ~]# systemctl start libvirtd.service openstack-nova-compute.service
[root@compute ~]#

到了这里,关于计算节点systemctl status openstack-nova-compute.service起不来的解决方案的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【云计算】实验5:Nova配置(控制节点)

    熟悉Linux基本服务配置; 理解OpenStack基本环境中各组件用途。 实验资源 云主机Vultr、DigitalOCean等 软件环境 CentOS 7 1)创建 nova 相关数据库 nova 服务新增加了两个数据库(Rocky 版) mysql -u root -p123456 CREATE DATABASE nova_api; CREATE DATABASE nova; CREATE DATABASE nova_cell0; CREATE DATABASE placement; GR

    2024年02月05日
    浏览(29)
  • 【云计算知识库】什么是云?什么是云计算?计算的是什么?openstack是什么?nova计算组件?【持续更新中】

    欢迎关注公众号:天天说编程 你的关注是我最大的动力! 1.什么是云,什么是云计算,计算是指计算什么 云计算中的云不是天空中的云,在计算机的世界里,可以将它理解为一个群组,汇集在一起,只不过天上的云是雨水的群组,而云计算是计算机与互联网汇集起来的群组

    2024年02月14日
    浏览(40)
  • OpenStack云计算(十)——OpenStack虚拟机实例管理,增加一个计算节点并进行实例冷迁移,增加一个计算节点的步骤,实例冷迁移的操作方法

    本实训任务对实验环境要求较高,而且过程比较复杂,涉及的步骤非常多,有一定难度,可根据需要选做。可以考虑改为直接观看相关的微课视频 增加一个计算节点并进行实例冷迁移 熟悉增加一个计算节点的步骤。 熟悉实例冷迁移的操作方法。 (1)复习使用Packstack安装器

    2024年04月28日
    浏览(46)
  • OpenStack云计算平台部署 单节点

    虚拟机(centos7 、内存8G、硬盘300G、处理器4核并开启intel vt-x,网络模式设置为NAT,虚拟机网络一定要设置好,并可以ping通baidu,不然有中途掉IP的情况发生) 点击查看执行结果 博客园地址点击此处!

    2024年02月17日
    浏览(42)
  • 云计算:OpenStack 分布式架构部署(单控制节点与单计算节点)

    目录 一、实验 1.环境 2.OpenStack包安装 3.数据库安装 4.消息队列安装 5.令牌缓存安装 6.认证服务安装 7.镜像服务安装 8. 计算服务安装(控制节点) 9. 计算服务安装(计算节点) 10. 网络服务安装(控制节点) 11. 网络服务安装(计算节点) 12. Dashboard图形化界面安装(控制节点) (1) 主机 表

    2024年02月03日
    浏览(39)
  • OpenStack计算节点宕机自动撤离

    关于openstack计算节点宕机时,vms自动撤离问题,官方在新版的openstack版本中,加入了新的项目专门解决该场景,但是判断还是依然存在问题,虚机容易出现双写问题。 一、场景分析 1、计算节点宕机-共享存储 openstack 后端对接比较流行的存储,也是生产环境下使用最多的,便

    2024年02月10日
    浏览(135)
  • openstack nova 源码分析

    从 github 下载 Victoria 版本的 Nova 源码 nova/ 文件夹下的目录 最新版的源码如下: nova/ 文件夹下的 python 文件: setup.cfg 配置文件,[entry_points] 小节指定了 nova 各个组件入口 2. nova-api nova-api 对外提供 RESTful API,没有对内的 RPC 。 nova/api/ 目录结构 openstack 目录中包含 WSGI 基础架构的

    2024年02月08日
    浏览(45)
  • OpenStack — Nova

    Nova是OpenStack最核心的服务模块,负责管理和维护云计算环境的计算资源,负责整个云环境虚拟机生命周期的管理。 Nova自身并没有提供任何虚拟化能力,它提供计算服务,使用不同的虚拟化驱动来与底层支持的Hypervisor(虚拟机管理器)进行交互。 所有的计算实例(虚拟服务器

    2023年04月17日
    浏览(32)
  • openstack-nova

    Nova是Openstack最核心的服务,负责维护和管理云环境的 计算资源 。OpenStack作为Iaas的云操作系统,虚拟机生命周期管理就是通过Nova来实现的。 用途与功能: 实例生命周期管理:虚拟机从创建的动作开始,直到被删除,真个过程都是Nova负责调度的。 管理计算资源:   cpu、内存

    2024年02月03日
    浏览(41)
  • openstack 之 nova架构,源码剖析

            nova是openstack最核心的服务,负责维护和管理云环境的计算资源。因此,云主机的整个生命周期都是由nova负责的。         负责接收和相应客户的API调用。         nova-schedule         负责决定在哪个计算节点运行虚拟机。         nova-compute         通过调用Hype

    2024年02月09日
    浏览(37)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包