[openstack-dev] [ceilometer] [Congress] ceilometer client `alarms.list()` HTTPException (HTTP N/A)

Eric K ekcs.openstack at gmail.com
Mon Sep 26 21:47:51 UTC 2016


Hi all,

Looking for some help to resolve a breakage in Congress ceilometer-driver.
When Congress attempts to perform `alarms.list()` on ceilometer client,
the following exception is generated.
First suspicion is Congress-end configuration problem, but it¹s only
`alarms.list()` that fails. Others such as `events.list()` succeeds.

I¹ve reproduced it here in a small example. Any thoughts on how we could
resolve or work around it? Thanks a ton!

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()  # succeeds
[]
>>> client.alarms.list()  # fails
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)


Same information filed in bug:
https://bugs.launchpad.net/python-ceilometerclient/+bug/1626404





More information about the OpenStack-dev mailing list