分享

openstack compute启动报错 在线等

414370365 发表于 2015-6-26 15:13:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 18933
配置的compute节点,rabbit配置是配置的rabbit_hosts配置 rabbit_hosts=mq1:5672,mq2:5672,mq3:5672
然后启动compute节点 一直报错
下面是/var/log/nova/nova-compute.log 错误信息

2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 87, in dispatch_method
2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit     return amqp_method(self, args)
2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 241, in _close
2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit     reply_code, reply_text, (class_id, method_id), ChannelError,
2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit PreconditionFailed: Exchange.declare: (406) PRECONDITION_FAILED - cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value
2015-06-26 15:05:22.495 18426 TRACE oslo.messaging._drivers.impl_rabbit
2015-06-26 15:05:22.498 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Delaying reconnect for 1.0 seconds...
2015-06-26 15:05:23.501 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Connecting to AMQP server on mq1:5672
2015-06-26 15:05:23.522 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Connected to AMQP server on mq1:5672
2015-06-26 15:05:23.524 18426 ERROR oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Failed to publish message to topic 'conductor': Exchange.declare: (406) PRECONDITION_FAILED - cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit Traceback (most recent call last):
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 655, in ensure
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     return method()
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 752, in _publish
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     publisher = cls(self.conf, self.channel, topic=topic, **kwargs)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 378, in __init__
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     **options)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 326, in __init__
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.reconnect(channel)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 334, in reconnect
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     routing_key=self.routing_key)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 83, in __init__
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.revive(self._channel)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 214, in revive
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.declare()
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 100, in declare
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.exchange.declare()
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 163, in declare
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     nowait=nowait, passive=passive,
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 620, in exchange_declare
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     (40, 11),  # Channel.exchange_declare_ok
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 69, in wait
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     return self.dispatch_method(method_sig, args, content)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 87, in dispatch_method
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     return amqp_method(self, args)
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 241, in _close
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit     reply_code, reply_text, (class_id, method_id), ChannelError,
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit PreconditionFailed: Exchange.declare: (406) PRECONDITION_FAILED - cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value
2015-06-26 15:05:23.524 18426 TRACE oslo.messaging._drivers.impl_rabbit
2015-06-26 15:05:23.526 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Delaying reconnect for 1.0 seconds...
2015-06-26 15:05:24.528 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Connecting to AMQP server on mq3:5672
2015-06-26 15:05:24.550 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Connected to AMQP server on mq3:5672
2015-06-26 15:05:24.553 18426 ERROR oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Failed to publish message to topic 'conductor': Exchange.declare: (406) PRECONDITION_FAILED - cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit Traceback (most recent call last):
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 655, in ensure
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     return method()
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 752, in _publish
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     publisher = cls(self.conf, self.channel, topic=topic, **kwargs)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 378, in __init__
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     **options)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 326, in __init__
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.reconnect(channel)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_rabbit.py", line 334, in reconnect
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     routing_key=self.routing_key)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 83, in __init__
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.revive(self._channel)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 214, in revive
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.declare()
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 100, in declare
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     self.exchange.declare()
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 163, in declare
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     nowait=nowait, passive=passive,
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 620, in exchange_declare
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     (40, 11),  # Channel.exchange_declare_ok
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 69, in wait
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     return self.dispatch_method(method_sig, args, content)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 87, in dispatch_method
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     return amqp_method(self, args)
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 241, in _close
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit     reply_code, reply_text, (class_id, method_id), ChannelError,
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit PreconditionFailed: Exchange.declare: (406) PRECONDITION_FAILED - cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value
2015-06-26 15:05:24.553 18426 TRACE oslo.messaging._drivers.impl_rabbit
2015-06-26 15:05:24.555 18426 INFO oslo.messaging._drivers.impl_rabbit [req-0cdf1008-b846-41c1-bf1e-fe376003269c ] Delaying reconnect for 1.0 seconds...


已有(5)人评论

跳转到指定楼层
Alkaloid0515 发表于 2015-6-26 15:37:55
什么版本的,为何这样配置
[mw_shl_code=bash,true][DEFAULT]
...
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = RABBIT_PASS[/mw_shl_code]

后面端口是怎么来的
回复

使用道具 举报

414370365 发表于 2015-6-27 23:38:28
Alkaloid0515 发表于 2015-6-26 15:37
什么版本的,为何这样配置
[mw_shl_code=bash,true][DEFAULT]
...

因为使用的ha方案。rabbitmq有三个节点集群  所以要配置三个
回复

使用道具 举报

Alkaloid0515 发表于 2015-6-28 21:56:33
414370365 发表于 2015-6-27 23:38
因为使用的ha方案。rabbitmq有三个节点集群  所以要配置三个

ubuntu版本的话,这里配置的是主机, 不是主机端口
rabbit_host = controller
回复

使用道具 举报

414370365 发表于 2015-6-28 23:06:20
Alkaloid0515 发表于 2015-6-28 21:56
ubuntu版本的话,这里配置的是主机, 不是主机端口
rabbit_host = controller

我的是centos。。是rabbit集群
回复

使用道具 举报

414370365 发表于 2015-7-7 17:31:01
没人么,,还没解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条