openstack-nova-compute报错解决-程序员宅基地

技术标签: linux  

2022-05-21 19:38:03.589 8905 CRITICAL nova [req-f5a4b361-f052-4ef0-892d-3b188aa996e9 - - - - -] Unhandled error: AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2022-05-21 19:38:03.589 8905 ERROR nova Traceback (most recent call last):
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/bin/nova-compute", line 10, in <module>
2022-05-21 19:38:03.589 8905 ERROR nova     sys.exit(main())
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/cmd/compute.py", line 57, in main
2022-05-21 19:38:03.589 8905 ERROR nova     topic=compute_rpcapi.RPC_TOPIC)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 271, in create
2022-05-21 19:38:03.589 8905 ERROR nova     periodic_interval_max=periodic_interval_max)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 128, in __init__
2022-05-21 19:38:03.589 8905 ERROR nova     conductor_api.wait_until_ready(context.get_admin_context())
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/conductor/api.py", line 67, in wait_until_ready
2022-05-21 19:38:03.589 8905 ERROR nova     timeout=timeout)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/baserpc.py", line 58, in ping
2022-05-21 19:38:03.589 8905 ERROR nova     return cctxt.call(context, 'ping', arg=arg_p)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 181, in call
2022-05-21 19:38:03.589 8905 ERROR nova     transport_options=self.transport_options)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 129, in _send
2022-05-21 19:38:03.589 8905 ERROR nova     transport_options=transport_options)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 674, in send
2022-05-21 19:38:03.589 8905 ERROR nova     transport_options=transport_options)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 618, in _send
2022-05-21 19:38:03.589 8905 ERROR nova     msg.update({'_reply_q': self._get_reply_q()})
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 599, in _get_reply_q
2022-05-21 19:38:03.589 8905 ERROR nova     conn = self._get_connection(rpc_common.PURPOSE_LISTEN)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 590, in _get_connection
2022-05-21 19:38:03.589 8905 ERROR nova     purpose=purpose)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/common.py", line 432, in __init__
2022-05-21 19:38:03.589 8905 ERROR nova     self.connection = connection_pool.create(purpose)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/pool.py", line 148, in create
2022-05-21 19:38:03.589 8905 ERROR nova     return self.connection_cls(self.conf, self.url, purpose)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 625, in __init__
2022-05-21 19:38:03.589 8905 ERROR nova     self.ensure_connection()
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 740, in ensure_connection
2022-05-21 19:38:03.589 8905 ERROR nova     self.connection.ensure_connection(errback=on_error)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 422, in ensure_connection
2022-05-21 19:38:03.589 8905 ERROR nova     callback, timeout=timeout)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/utils/functional.py", line 343, in retry_over_time
2022-05-21 19:38:03.589 8905 ERROR nova     return fun(*args, **kwargs)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 275, in connect
2022-05-21 19:38:03.589 8905 ERROR nova     return self.connection
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 823, in connection
2022-05-21 19:38:03.589 8905 ERROR nova     self._connection = self._establish_connection()
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 778, in _establish_connection
2022-05-21 19:38:03.589 8905 ERROR nova     conn = self.transport.establish_connection()
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 130, in establish_connection
2022-05-21 19:38:03.589 8905 ERROR nova     conn.connect()
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 313, in connect
2022-05-21 19:38:03.589 8905 ERROR nova     self.drain_events(timeout=self.connect_timeout)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 500, in drain_events
2022-05-21 19:38:03.589 8905 ERROR nova     while not self.blocking_read(timeout):
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 506, in blocking_read
2022-05-21 19:38:03.589 8905 ERROR nova     return self.on_inbound_frame(frame)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/method_framing.py", line 55, in on_frame
2022-05-21 19:38:03.589 8905 ERROR nova     callback(channel, method_sig, buf, None)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 510, in on_inbound_method
2022-05-21 19:38:03.589 8905 ERROR nova     method_sig, payload, content,
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 126, in dispatch_method
2022-05-21 19:38:03.589 8905 ERROR nova     listener(*args)
2022-05-21 19:38:03.589 8905 ERROR nova   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 639, in _on_close
2022-05-21 19:38:03.589 8905 ERROR nova     (class_id, method_id), ConnectionError)
2022-05-21 19:38:03.589 8905 ERROR nova AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2022-05-21 19:38:03.589 8905 ERROR nova 
2022-05-21 19:38:04.784 8918 INFO os_vif [-] Loaded VIF plugins: ovs, linux_bridge, noop
2022-05-21 19:38:04.825 8918 CRITICAL nova [req-161a5854-e2a8-47f5-bad3-214fd16d393b - - - - -] Unhandled error: AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.

检查配置文件/etc/nova/nova.conf(控制和计算节点都要)

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:openstack123@controller    rabbitmqd的账户和密码
my_ip = 节点ip
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver

检查完成后,重启服务

控制节点

 systemctl restart openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service

计算节点

systemctl restart libvirtd.service openstack-nova-compute.service

# 查看日志
tail -f  /var/log/nova/nova-compute.log
2022-05-21 19:50:48.928 9111 INFO nova.service [-] Starting compute node (version 20.6.0-1.el7)
2022-05-21 19:50:48.986 9111 INFO nova.virt.libvirt.driver [-] Connection event '1' reason 'None'
2022-05-21 19:50:49.007 9111 INFO nova.virt.libvirt.host [-] Libvirt host capabilities <capabilities>

  <host>
    <uuid>1c894d56-04e4-3a32-ccbe-d72c47ed574d</uuid>
    <cpu>
      <arch>x86_64</arch>
      <model>Broadwell-noTSX-IBRS</model>
      <vendor>Intel</vendor>
      <microcode version='52'/>
      <counter name='tsc' frequency='2303997000' scaling='no'/>
      <topology sockets='2' cores='2' threads='1'/>
      <feature name='vme'/>
      <feature name='ss'/>
      <feature name='ht'/>
      <feature name='vmx'/>

如果出现下面这样,那么是因为控制节点没有重启,所以检查完配置文件之后,要先重启控制节点,再去启动计算节点

2022-05-21 19:47:18.129 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID b35b94db002f4f91b69b70704b47f41a
2022-05-21 19:47:28.131 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID e11176b17e0849fcb52e24366392b97a
2022-05-21 19:47:38.133 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID ce5777da9aa5462592fdd3c3f47e58fc
2022-05-21 19:47:48.136 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 6d1b1acf25f042988d726e5f4ad44daa
2022-05-21 19:47:58.138 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 14b620d74a014c06b537519f170554fd
2022-05-21 19:48:08.141 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 2a0d9f96908d4cf993c9a3d38cf66479
2022-05-21 19:48:18.144 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 8bbe958ecc1e463aa4750003eef6d5f0
2022-05-21 19:48:28.146 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID bb86454749b0439ba8a3baaba886ced9
2022-05-21 19:48:38.148 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID e4fb3598e076437d97c3826c81b2b66b
2022-05-21 19:48:48.151 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 0316a24e75ee46ddaed83a788406bc4d
2022-05-21 19:49:48.153 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID 58907370c34c44d990231f5070906d8c
2022-05-21 19:50:48.155 9111 WARNING nova.conductor.api [req-9ea7bbe6-5f44-4c64-85fc-3d28d0305a6b - - - - -] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...: MessagingTimeout: Timed out waiting for a reply to message ID cd1c68fa7d4c41098371b4c1371daa08

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/a1980054932/article/details/124902547

智能推荐

R 笔记_r语言adaboost.m1-程序员宅基地

文章浏览阅读2.6k次,点赞3次,收藏15次。包含命令以及简单的文字说明,巩固记忆,并方便以后检索,包含调用方式一些简短说明。经历包括包括《R语言与机器学习》,夹杂一些《R语言实战》以及参考一些网络大神的博客。关于model的summary的说明:星号(***)表示预测能力,显著性水平,星号越多,显著性水平越低,相关的可能越小。多元R方值(判定系数)代表着从整体上,模型能多大程度上解释因变量的值,类似于相关系数。F检验:线性模型输出显示中的F_r语言adaboost.m1

Linux 内核的编译_编译linux内核-程序员宅基地

文章浏览阅读634次。编译Linux内核方面的内容_编译linux内核

Java去除字符串中的空格以及特殊符号_java去前后多空格特殊字符-程序员宅基地

文章浏览阅读3.4k次。前言在抓取一个网站内容的时候遇到了这样的日期没找到现成的代码,就自己写了个方法Java将汉字数字日期转换为数字日期(例如: 二〇二〇年十一月二十一日 → 2020年11月21日)本以为高枕无忧了没成想过了几天又开始作妖了,前面加了一堆空格一样的东西异常拦截到了一打印果真好长一串二〇二〇年一月十三日处理本以为是手到擒来先用了个百度的办法这个博主说这个方法很霸道,秒杀一切stringUtils.d..._java去前后多空格特殊字符

prometheus部署及与grafana结合应用_prometheus下载-程序员宅基地

文章浏览阅读297次。prometheus server 是 Prometheus组件中的核心部分,负责实现对监控数据的获取,存储以及查询。它会定期从静态配置的监控目标或者基于服务发现自动配置的自标中进行拉取数据,当新拉取到的数据大于配置的内存缓存区时,数据就会持久化到存储设备当中。node_exporter是用于采集node的运行指标,包括node的cpu、load、filesystem、meminfo、network等基础监控指标,类似于zabbix监控系统的的zabbix-agent。3.7、启动prometheus。_prometheus下载

安卓APP闪退-程序员宅基地

文章浏览阅读185次。final Intent intent=new Intent(this,Servicetest1.class)位置放到onCreate()外面,那么就会出现闪退。如果在调试的时候闪退,很可能是语句的位置出现了问题,至今位置我发生过2次闪退,2次都是语句位置不对。我觉得那个时候Sercicetest1.class类可能还没有加载完吧。首先:语句没有问题,可以通过编译,那么就是位置不对了-----逻辑问题。例如如果把这个里面的。

Java中 四种引用(强引用 软引用 弱引用 虚引用)_java中的四种引用关系由强到弱 site:blog.csdn.net-程序员宅基地

文章浏览阅读1.4k次。四种引用在Java 1.2 之后,Java地引用的概念进行了补充,以前只有被引用和没有被引用两种状态。扩充之后分为四种,1. 强引用(Strong Reference)2. 软引用(Soft Reference)3. 弱引用(WeakReference)4. 虚引用(Phantom Reference),也称幽灵引用或者幻影引用_java中的四种引用关系由强到弱 site:blog.csdn.net

随便推点

OpenAI Sora模型,官方技术文档翻译_openai-sora+技术文档-程序员宅基地

文章浏览阅读1.1k次,点赞21次,收藏21次。本技术报告的重点是(1)将所有类型的视觉数据转化为统一表示,从而能够大规模训练生成模型的方法;以及(2)对Sora的能力和局限性的定性评估。_openai-sora+技术文档

在PyTorch中搭建神经网络的基础知识-程序员宅基地

文章浏览阅读889次,点赞20次,收藏19次。1.背景介绍在PyTorch中搭建神经网络的基础知识1. 背景介绍深度学习是一种通过多层神经网络来处理复杂数据的技术。它已经成为了人工智能领域的核心技术之一,并在图像识别、自然语言处理、语音识别等领域取得了显著的成果。PyTorch是一个流行的深度学习框架,它提供了易于使用的API来构建、训练和部署神经网络。本文将涵盖PyTorch中神经网络的基础知识,包括核心概念、算法原理、最佳实践...

(免费领源码)java#springboot#mysql开放实验室管理系统03361-计算机毕业设计项目选题推荐-程序员宅基地

文章浏览阅读445次,点赞11次,收藏10次。开放实验室管理系统从功能、数据流程、可行性、运行环境进行需求分析。对开放实验室管理系统的数据库、功能进行了详细设计,分析了主要界面设计和相关组件设计,开放实验室管理系统的具体实现进行了介绍。从数据库中获取数据、向数据库中写入数据,实现系统直接对数据库进行各种数据库查询、插入、删除、更新等操作,在网页中加入动态内容,从而实现开放实验室管理系统所需要的各种基本功能。

现代控制理论(4)——李雅普诺夫稳定性理论_李亚普诺夫稳定性-程序员宅基地

文章浏览阅读2.5w次,点赞20次,收藏236次。文章目录_李亚普诺夫稳定性

大电流dcdc降压芯片20a_基于MC34063芯片DC-DC(20-5)降压型变换电路-程序员宅基地

文章浏览阅读1.4k次。目录基于MC34063芯片的DC-DC(20/5)降压型变换电路.................................................................21引言......................................................................................................_dc电源芯片 20a

About Add DataRow-程序员宅基地

文章浏览阅读128次。当从一个表中将记录Copy到另一个结构相同的表中的时候,有两种方式:DataTable.ImportRow()或: DataTable.Rows.Add()正确的使用方法: dt1.ImportRow(dt.Rows[0]);或: dt1.Rows.Add(dt.Rows[0].ItemArray);不要使用:..._add data row

推荐文章

热门文章

相关标签