Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

openstack server list always show ERROR status of instance

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", line 219, in write_method properties = content._serialize_properties() File "/usr/lib/python2.7/site-packages/amqp/serialization.py", line 499, in _serialize_properties File "/usr/lib/python2.7/site-packages/amqp/serialization.py", line 324, in write_shortstr if isinstance(s, string):
已创建
2016年10月26日 14:02

But in /var/log/messages, I can't find above error message: here is what show up in /var/log/messages:

Oct 26 22:02:05 localhost nova-api: 2016-10-26 22:02:05.968 11626 INFO nova.osap
i_compute.wsgi.server [req-c0831cc3-fe1b-4ffb-872d-ea3937e174d9 58bae27616784fff95c242fbfcb4bd89 ae1cf04552eb446cbfeb45b98cd97992 - default default] 192.168.0.201 "POST /v2.1/ae1cf04552eb446cbfeb45b98cd97992/servers HTTP/1.1" status: 202 len: 894 time: 0.8532660
Oct 26 22:02:05 localhost nova-conductor: 2016-10-26 22:02:05.976 3087 ERROR oslo.messaging._drivers.impl_rabbit [req-c0831cc3-fe1b-4ffb-872d-ea3937e174d9 58bae27616784fff95c242fbfcb4bd89 ae1cf04552eb446cbfeb45b98cd97992 - - -] Failed to publish message to topic 'nova': object of type 'int' has no len()
Oct 26 22:02:05 localhost nova-conductor: 2016-10-26 22:02:05.977 3087 WARNING nova.scheduler.utils [req-c0831cc3-fe1b-4ffb-872d-ea3937e174d9 58bae27616784fff95c242fbfcb4bd89 ae1cf04552eb446cbfeb45b98cd97992 - - -] Failed to compute_task_build_instances: object of type 'int' has no len()
Oct 26 22:02:05 localhost nova-conductor: 2016-10-26 22:02:05.977 3087 WARNING nova.scheduler.utils [req-c0831cc3-fe1b-4ffb-872d-ea3937e174d9 58bae27616784fff95c242fbfcb4bd89 ae1cf04552eb446cbfeb45b98cd97992 - - -] [instance: f1d3769c-d7d2-4419-b1bd-2f450b45558d] Setting instance to ERROR state.
Oct 26 22:02:06 localhost nova-api: 2016-10-26 22:02:06.066 11626 INFO nova.osapi_compute.wsgi.server [req-026b2560-26c8-47d2-80a6-2ed34e42360d 58bae27616784fff95c242fbfcb4bd89 ae1cf04552eb446cbfeb45b98cd97992 - default default] 192.168.0.201 "GET /v2.1/ae1cf04552eb446cbfeb45b98cd97992/servers/f1d3769c-d7d2-4419-b1bd-2f450b45558d HTTP/1.1" status: 200 len: 1747 time: 0.0949690

If anyone can tell me what's the matter on earth, I will appreciate it very much!