Re: [Openstack] Get nova diagnostics to work with libvirt

2012-03-16 Thread Leander Bessa
I don't remember where exactly i copied this from, but i found this in the
mailing list somewhere. This supposedly is the output produced by the
nova-diagnostics command with xen. Maybe this can help?


++-+
|Property|  Value  |
++-+
| cpu0   | 4.3627  |
| memory | 1171088064. |
| memory_target  | 1171088064. |
| vbd_xvda_read  | 0.0 |
| vbd_xvda_write | 0.0 |
| vif_0_rx   | 3223.6870   |
| vif_0_tx   | 0.0 |
| vif_1_rx   | 104.4955|
| vif_1_tx   | 0.0 |
++-+


On Tue, Mar 13, 2012 at 11:49 AM, Soren Hansen so...@linux2go.dk wrote:

 2012/3/12 Vishvananda Ishaya vishvana...@gmail.com:
  Diagnostics are a bunch of key/value pairs, but unfortunately there
 doesn't
  seem to be an example of what they are.  If someone running xen could
 post
  the result of get_diagnostics so that it could be added to a docstring
 and
  implemented for libvirt, that would be awesome.

 Once someone works out what this is actually supposed to look like, please
 add
 a unit test to test_virt_drivers to document it.

 --
 Soren Hansen | http://linux2go.dk/
 Senior Software Engineer | http://www.cisco.com/
 Ubuntu Developer | http://www.ubuntu.com/
 OpenStack Developer  | http://www.openstack.org/

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Get nova diagnostics to work with libvirt

2012-03-16 Thread Leander Bessa
I'm keep running into this error when i run nova diagnostics instance in
essex-4. Any ideas?

2012-03-16 16:17:41 INFO nova.api.openstack.wsgi
 [req-374885a7-2a31-49e6-9afb-aeba8cdeed9a 9c59de1dbabc4fe29b97e9d4d8847fbd
 e429e26b8205485eb2102d4bc2c973fd]
 http://192.168.111.203:8774/v2/e429e26b8205485eb2102d4bc2c973fd/servers/detailreturned
  with HTTP 200
 2012-03-16 16:18:03 INFO nova.api.openstack.wsgi
 [req-6ea023e4-4e14-42ce-a050-037587fb583c 9c59de1dbabc4fe29b97e9d4d8847fbd
 e429e26b8205485eb2102d4bc2c973fd] GET
 http://192.168.111.203:8774/v2/e429e26b8205485eb2102d4bc2c973fd/servers/3bc12246-2f1d-4f1f-97e1-ffc5bbb0db1f/diagnostics
 2012-03-16 16:18:03 DEBUG nova.api.openstack.wsgi
 [req-6ea023e4-4e14-42ce-a050-037587fb583c 9c59de1dbabc4fe29b97e9d4d8847fbd
 e429e26b8205485eb2102d4bc2c973fd] Unrecognized Content-Type provided in
 request from (pid=3472) get_body
 /opt/stack/nova/nova/api/openstack/wsgi.py:697
 2012-03-16 16:18:03 ERROR nova.api.openstack.wsgi
 [req-6ea023e4-4e14-42ce-a050-037587fb583c 9c59de1dbabc4fe29b97e9d4d8847fbd
 e429e26b8205485eb2102d4bc2c973fd] Exception handling resource: id() takes
 exactly one argument (0 given)
 (nova.api.openstack.wsgi): TRACE: Traceback (most recent call last):
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/api/openstack/wsgi.py, line 851, in _process_stack
 (nova.api.openstack.wsgi): TRACE: action_result = self.dispatch(meth,
 request, action_args)
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/api/openstack/wsgi.py, line 926, in dispatch
 (nova.api.openstack.wsgi): TRACE: return method(req=request,
 **action_args)
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/api/openstack/compute/contrib/server_diagnostics.py,
 line 45, in index
 (nova.api.openstack.wsgi): TRACE: instance = compute_api.get(context,
 id)
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/compute/api.py, line 1022, in get
 (nova.api.openstack.wsgi): TRACE: instance =
 self.db.instance_get(context, instance_id)
 (nova.api.openstack.wsgi): TRACE:   File /opt/stack/nova/nova/db/api.py,
 line 557, in instance_get
 (nova.api.openstack.wsgi): TRACE: return IMPL.instance_get(context,
 instance_id)
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/db/sqlalchemy/api.py, line 120, in wrapper
 (nova.api.openstack.wsgi): TRACE: return f(*args, **kwargs)
 (nova.api.openstack.wsgi): TRACE:   File
 /opt/stack/nova/nova/db/sqlalchemy/api.py, line 1353, in instance_get
 (nova.api.openstack.wsgi): TRACE: filter_by(id=instance_id).\
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py, line 1652, in
 first
 (nova.api.openstack.wsgi): TRACE: ret = list(self[0:1])
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py, line 1560, in
 __getitem__
 (nova.api.openstack.wsgi): TRACE: return list(res)
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py, line 1721, in
 __iter__
 (nova.api.openstack.wsgi): TRACE: return
 self._execute_and_instances(context)
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py, line 1726, in
 _execute_and_instances
 (nova.api.openstack.wsgi): TRACE: mapper=self._mapper_zero_or_none())
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py, line 724, in
 execute
 (nova.api.openstack.wsgi): TRACE: clause, params or {})
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py, line 1191, in
 execute
 (nova.api.openstack.wsgi): TRACE: params)
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py, line 1269, in
 _execute_clauseelement
 (nova.api.openstack.wsgi): TRACE: parameters=params
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py, line 1377, in
 __create_execution_context
 (nova.api.openstack.wsgi): TRACE: connection=self, **kwargs)
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py, line 388,
 in __init__
 (nova.api.openstack.wsgi): TRACE: grp,m in enumerate(parameters)]
 (nova.api.openstack.wsgi): TRACE:   File
 /usr/lib/python2.7/dist-packages/sqlalchemy/sql/compiler.py, line 291, in
 construct_params
 (nova.api.openstack.wsgi): TRACE: pd[self.bind_names[bindparam]] =
 bindparam.value()
 (nova.api.openstack.wsgi): TRACE: TypeError: id() takes exactly one
 argument (0 given)
 (nova.api.openstack.wsgi): TRACE:
 2012-03-16 16:18:03 INFO nova.api.openstack.wsgi
 [req-6ea023e4-4e14-42ce-a050-037587fb583c 9c59de1dbabc4fe29b97e9d4d8847fbd
 e429e26b8205485eb2102d4bc2c973fd]
 http://192.168.111.203:8774/v2/e429e26b8205485eb2102d4bc2c973fd/servers/3bc12246-2f1d-4f1f-97e1-ffc5bbb0db1f/diagnosticsreturned
  with HTTP 400


Re: [Openstack] Get nova diagnostics to work with libvirt

2012-03-12 Thread Vishvananda Ishaya
I gave pretty detailed instructions the last time this came up:

http://www.mail-archive.com/openstack@lists.launchpad.net/msg06980.html

That should be enough to get you started.

Diagnostics are a bunch of key/value pairs, but unfortunately there doesn't 
seem to be an example of what they are.  If someone running xen could post the 
result of get_diagnostics so that it could be added to a docstring and 
implemented for libvirt, that would be awesome.

Vish

On Mar 12, 2012, at 9:54 AM, Leander Bessa wrote:

 Hello,
 
 If recall correctly, the nova diagnostics command does not work with libvirt. 
 I can't find the exact post where this happend, but someone suggested that i 
 could implement the diagnostics command for libvirt. If so, where in the 
 openstack source code should i look to find the required interface/class for 
 this command? I'm using Ubuntu 11.10 and OpenStack Diablo.
 
 Regards,
 
 Leander
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp