[Openstack] Not able to get compute host details with vmwareapi

Guduru Sirisha guduru_sirisha at persistent.co.in
Tue Aug 14 07:40:40 UTC 2012


Hi All,

I've been working on Nova (stable/essex) with VMWare ESXi as the Hypervisor. Everything working fine except "nova-manage service describe_resource" function. Following snip shows the error:

root at openstack-secondary:~# nova-manage service describe_resource openstack-secondary
Command failed, please check log for more info

And the nova-manage log is like this:

2012-08-14 12:50:04 DEBUG nova.rpc.common [req-990062e8-1a10-43f8-84bd-68f3ebfeb065 None None] Making asynchronous call on scheduler ... from (pid=12241) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:319
2012-08-14 12:50:04 DEBUG nova.rpc.common [req-990062e8-1a10-43f8-84bd-68f3ebfeb065 None None] MSG_ID is 3fc554e4da964cab9d6145cec70ef81b from (pid=12241) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:322
2012-08-14 12:50:04 DEBUG nova.rpc.common [req-990062e8-1a10-43f8-84bd-68f3ebfeb065 None None] Pool creating new connection from (pid=12241) create /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:57
2012-08-14 12:50:04 INFO nova.rpc.common [req-990062e8-1a10-43f8-84bd-68f3ebfeb065 None None] Connected to AMQP server on xx.xx.xx.xx:5672
2012-08-14 12:50:04 CRITICAL nova [req-990062e8-1a10-43f8-84bd-68f3ebfeb065 None None] Remote error: IndexError list index out of range
[u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 250, in _process_data\n    rval = node_func(context=ctxt, **node_args)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 154, in show_host_resources\n    compute_ref = compute_ref[\'compute_node\'][0]\n', u'IndexError: list index out of range\n'].
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE:   File "/usr/bin/nova-manage", line 2459, in <module>
(nova): TRACE:     main()
(nova): TRACE:   File "/usr/bin/nova-manage", line 2446, in main
(nova): TRACE:     fn(*fn_args, **fn_kwargs)
(nova): TRACE:   File "/usr/bin/nova-manage", line 1126, in describe_resource
(nova): TRACE:     "args": {"host": host}})
(nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 69, in call
(nova): TRACE:     return _get_impl().call(context, topic, msg, timeout)
(nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 624, in call
(nova): TRACE:     return rpc_amqp.call(context, topic, msg, timeout, Connection.pool)
(nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 336, in call
(nova): TRACE:     rv = list(rv)
(nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 304, in __iter__
(nova): TRACE:     raise result
(nova): TRACE: RemoteError: Remote error: IndexError list index out of range
(nova): TRACE: [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 250, in _process_data\n    rval = node_func(context=ctxt, **node_args)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 154, in show_host_resources\n    compute_ref = compute_ref[\'compute_node\'][0]\n', u'IndexError: list index out of range\n'].
(nova): TRACE:


Also I'm getting an error while compute is trying to update its status to the scheduler. The error in compute's log is as show below:

2012-08-14 12:54:22 INFO nova.compute.manager [-] Updating host status
2012-08-14 12:54:22 ERROR nova.manager [-] Error during ComputeManager._report_driver_status:
(nova.manager): TRACE: Traceback (most recent call last):
(nova.manager): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/manager.py", line 155, in periodic_tasks
(nova.manager): TRACE:     task(self, context)
(nova.manager): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2217, in _report_driver_status
(nova.manager): TRACE:     self.driver.get_host_stats(refresh=True))
(nova.manager): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 572, in get_host_stats
(nova.manager): TRACE:     raise NotImplementedError()
(nova.manager): TRACE: NotImplementedError
(nova.manager): TRACE:


Compute_nodes table is not getting updated because compute is not able to poll scheduler with host details. And "nova-manage service describe_resouce hostname" fetches data from compute_nodes table. Is the problem related to the vmwareapi? Has anyone faced/worked on similar problem?

Any help would be appreciated..:)

Regards,
Sirisha G

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120814/29159c54/attachment.html>


More information about the Openstack mailing list