Ask Your Question
0

openstack server list always show ERROR status of instance

asked 2016-10-26 09:21:28 -0500

chansonzhang gravatar image

Hello, When I follow the guide Launch an instance, the status of the instance is always "ERROR"

  [root@controller ~]# openstack server list
+------------------+------------------+--------+----------+--------------------+
| ID               | Name             | Status | Networks | Image Name         |
+------------------+------------------+--------+----------+--------------------+
| f1d3769c-        | provider-        | ERROR  |          | cirros-0.3.4-x86_6 |
| d7d2-4419-b1bd-  | instance1        |        |          | 4-uec              |
| 2f450b45558d     |                  |        |          |                    |
+------------------+------------------+--------+----------+--------------------+

In Dashboard I saw the following info:

名称
provider-instance1
ID
f1d3769c-d7d2-4419-b1bd-2f450b45558d
状态
错误
可用域
-
已创建
2016年10月26日 14:02
创建后的时间
1 分钟
主机
-
故障

消息
object of type 'int' has no len()
编码
500
详情
File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 484, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 555, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 370, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 126, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 450, in _send msg=msg, timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1278, in topic_send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1162, in _ensure_publishing self.ensure(method, retry=retry, error_callback=_error_callback) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 791, in ensure ret, channel = autoretry_method() File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 436, in _ensured return fun(*args, **kwargs) File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 508, in __call__ return fun(*args, channel=channels[0], **kwargs), channels[0] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 767, in execute_method method() File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1193, in _publish compression=self.kombu_compression) File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 168, in publish routing_key, mandatory, immediate, exchange, declare) File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 184, in _publish mandatory=mandatory, immediate=immediate, File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 2130, in basic_publish_confirm self.wait([(60, 80)]) File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 2123, in _basic_publish basic_publish = _basic_publish File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 56, in _send_method self.channel_id, method_sig, args, content, File "/usr/lib/python2.7/site-packages/amqp/method_framing.py ...
(more)
edit retag flag offensive close merge delete

Comments

openstack server show may provide details about the error. Also check the logs under /var/log/nova. The stack trace in the dashboard indicates a problem with RabbitMQ, most likely a misconfiguration.

Bernd Bausch gravatar imageBernd Bausch ( 2016-10-27 22:55:21 -0500 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2016-10-28 01:19:30 -0500

chansonzhang gravatar image

thank you! I finally solved this problem, the dashboard unexpectedly gave an unreal stack trace. After a day, when I try to launch the instance again, the dashboard show the real reason, which indicate that the image may be broken. So I changed image, and all get OK.

edit flag offensive delete link more
0

answered 2018-10-29 06:10:59 -0500

Heyyy guys... I have the same problem with openstack "newton" can you please help me to find a solution and what can i do exact to resolve the status error Thank you

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-26 09:21:28 -0500

Seen: 1,946 times

Last updated: Oct 29 '18