Ask Your Question
2

ceilometer resource-list is running fine from controller node while there is an error accessing resource usage via dashboard Error "NotImplementedError: metaquery not implemented"

asked 2014-04-22 03:33:09 -0500

exergy gravatar image

updated 2015-01-09 03:52:30 -0500

root@controller:/var/log/ceilometer# ceilometer resource-list
+----------------------------------------------+--------+----------------------------------+----------------------------------+
| Resource ID                                  | Source | User ID                          | Project ID                       |
+----------------------------------------------+--------+----------------------------------+----------------------------------+
| 50a9a09e-a71a-477e-816a-3ac8a8a1b055         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| 6c794811-73fa-4f4c-bef4-ce5fea20d9fc         |        | 5aeff724eaa24320b800c1805fb6c438 | 5b3463337426443fbc85633051c2e972 |
| 8813ff3d-6b65-45c5-b0ca-f104bab41f7c         |        | 5aeff724eaa24320b800c1805fb6c438 | 5b3463337426443fbc85633051c2e972 |
| 8f81eefb-5f28-4b5c-b283-58911710adcd         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| 99344452-5fee-4607-acb7-74b257bd948a         |        | None                             | 5b3463337426443fbc85633051c2e972 |
| 9d16cb95-fd6d-4132-8a5c-ec06ebbb7319         |        | None                             | 5b3463337426443fbc85633051c2e972 |
| aff4e933-8e83-4aa0-83c0-c9a559dacdaa         |        | None                             | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| b1206217-cc37-4780-a882-6013b885cc79         |        | None                             | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| b912ab7f-380a-49dd-abe6-347635660429         |        | 5aeff724eaa24320b800c1805fb6c438 | 5b3463337426443fbc85633051c2e972 |
| cbc0c113-45e2-427b-8ec4-8ddf3a3c6bf5         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| cbf18e9f-33ed-439b-89e7-a8f106fdc537         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| cc3f8efa-ed18-49b1-b696-2fa3a58115a8         |        | None                             | 5b3463337426443fbc85633051c2e972 |
| d33f8089-b751-456f-9054-98de74560feb         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| d85e264d-8bef-4679-b17f-65575192f558         |        | None                             | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| d919a729-90f3-46d7-994d-86371c47b37b         |        | None                             | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| e9e0e8ba-4420-4b05-9759-1c68c626356c         |        | None                             | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| f2f30735-196f-4db8-90d7-9b9eb6eca732         |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| nova-instance-instance-00000001-fa163eb56aa0 |        | 5aeff724eaa24320b800c1805fb6c438 | 5b3463337426443fbc85633051c2e972 |
| nova-instance-instance-00000003-fa163e9a105d |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| nova-instance-instance-00000005-fa163e7b328f |        | 5aeff724eaa24320b800c1805fb6c438 | 5b3463337426443fbc85633051c2e972 |
| nova-instance-instance-0000000b-fa163efdd281 |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
| nova-instance-instance-0000001b-fa163e2ed3ee |        | 5aeff724eaa24320b800c1805fb6c438 | 9ab8946b9b7c4e81af03e8b0d359f1cf |
+----------------------------------------------+--------+----------------------------------+----------------------------------+



Error: 2014-04-22 13:45:49.923 27494 ERROR wsme.api [-] Server-side error: "metaquery not implemented". Detail:
Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/wsmeext/pecan.py", line 72, in callfunction
    result = f(self, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/ceilometer/api/controllers/v2.py", line 968, in get_all
    for r in pecan.request.storage_conn.get_resources(**kwargs)]

  File "/usr/lib/python2.7/dist-packages/ceilometer/storage/impl_sqlalchemy.py", line 310, in get_resources
    raise NotImplementedError(_('metaquery not implemented'))

NotImplementedError: metaquery not implemented

Below is the output of

root@controller:/var/log/ceilometer# cat ceilometer-collector.log

2015-01-09 15:12:10.800 1408 WARNING ceilometer.openstack.common.db.sqlalchemy.session [req-deb506c5-27ce-43f7-98da-75af10fbcb99 admin None Got mysql server has gone away: (2006, 'MySQL server has gone away')

edit retag flag offensive close merge delete

Comments

Please help to resolve the same..

exergy gravatar imageexergy ( 2014-04-22 03:35:31 -0500 )edit

Try editing your question and add more details about how you setup openstack, which version you're running, the steps you've tried to debug this issue (logs, for example).

smaffulli gravatar imagesmaffulli ( 2015-01-08 16:32:37 -0500 )edit

are you using the mongodb or other db as backend storage? By default ceilometer support mongodb well.

9lives gravatar image9lives ( 2015-01-08 20:09:35 -0500 )edit

@smaffulli It is a Rackspace Chef Deployment for OpenStack havana. Updated question with few logs.

exergy gravatar imageexergy ( 2015-01-09 03:53:35 -0500 )edit

@9lives I am using mysql. Thanks! I would try for mangodb and will update.

exergy gravatar imageexergy ( 2015-01-09 03:54:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-09 04:19:14 -0500

9lives gravatar image

updated 2015-01-09 04:20:45 -0500

checked the havana code via ( https://github.com/openstack/ceilomet... ) below if you are using metaquery the NotImplementedException will be raised.

    @staticmethod
    def get_resources(user=None, project=None, source=None,
                      start_timestamp=None, start_timestamp_op=None,
                      end_timestamp=None, end_timestamp_op=None,
                      metaquery={}, resource=None, pagination=None):
        """Return an iterable of api_models.Resource instances
        :param user: Optional ID for user that owns the resource.
        :param project: Optional ID for project that owns the resource.
        :param source: Optional source filter.
        :param start_timestamp: Optional modified timestamp start range.
        :param start_timestamp_op: Optonal start time operator, like gt, ge.
        :param end_timestamp: Optional modified timestamp end range.
        :param end_timestamp_op: Optional end time operator, like lt, le.
        :param metaquery: Optional dict with metadata to match on.
        :param resource: Optional resource filter.
        :param pagination: Optional pagination query.
        """

        # We probably want to raise these early, since we don't know from here
        # if they will be handled. We don't want extra wait or work for it to
        # just fail.
        if pagination:
            raise NotImplementedError(_('Pagination not implemented'))
       if metaquery:
            raise NotImplementedError(_('metaquery not implemented'))

The suggestion is change to mongodb as storage backend for it is supported and tested by default.

Hope that helps!

Vic

edit flag offensive delete link more

Comments

Thank you! I would use mango DB and revert back.

exergy gravatar imageexergy ( 2015-01-12 03:50:50 -0500 )edit

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: 2014-04-22 03:33:09 -0500

Seen: 282 times

Last updated: Jan 09 '15