client.alarms.list() errors

Bug #1626404 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

On a fresh devstack install with ceilometer clients version 2.6.1, client.alarms.list() errors when other things (like client.events.list()) succeeds.

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from keystoneauth1 import session # Version 2.12.1
>>> from keystoneauth1.identity import v2
>>> import ceilometerclient.client as cc
>>> auth = v2.Password(auth_url='http://192.168.218.145:5000/v2.0', username='admin', password='password', tenant_name='admin')
>>> sess = session.Session(auth=auth)
>>> client = cc.get_client(version='2', session=sess)
>>> client.events.list()
[]
>>> client.alarms.list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/v2/alarms.py", line 83, in list
    return self._list(options.build_url(self._path(), q))
  File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/common/base.py", line 63, in _list
    resp = self.api.get(url)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 187, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line 473, in request
    raise exc.from_response(resp, body)
ceilometerclient.exc.HTTPException: HTTPException (HTTP N/A)

Changed in python-ceilometerclient:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/384847

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/383002
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=b8a78396b273c23ba7a633d98365a5dfc969b1f2
Submitter: Jenkins
Branch: master

commit b8a78396b273c23ba7a633d98365a5dfc969b1f2
Author: Mehdi Abaakouk <email address hidden>
Date: Thu Oct 6 16:39:44 2016 +0200

    Set code and details on HTTPException

    Even the HTTPException is unknown for ceilometer we should set the code
    and print it with the details.

    Closes-bug: #1626404
    Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0

Changed in python-ceilometerclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (stable/newton)

Reviewed: https://review.openstack.org/384847
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=9d9b477708fdce08db162a9bf3723cf7ee0df267
Submitter: Jenkins
Branch: stable/newton

commit 9d9b477708fdce08db162a9bf3723cf7ee0df267
Author: Mehdi Abaakouk <email address hidden>
Date: Thu Oct 6 16:39:44 2016 +0200

    Set code and details on HTTPException

    Even the HTTPException is unknown for ceilometer we should set the code
    and print it with the details.

    Closes-bug: #1626404
    Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0
    (cherry picked from commit b8a78396b273c23ba7a633d98365a5dfc969b1f2)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.7.0

This issue was fixed in the openstack/python-ceilometerclient 2.7.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.6.2

This issue was fixed in the openstack/python-ceilometerclient 2.6.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.7.0

This issue was fixed in the openstack/python-ceilometerclient 2.7.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.6.2

This issue was fixed in the openstack/python-ceilometerclient 2.6.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.