Ceilometer can't redirect to aodh API

Bug #1607449 reported by Artem Minasyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Invalid
Undecided
Unassigned

Bug Description

My initialization has the such form :http://paste.openstack.org/show/543307/
I create alarm via ceilometerclient: http://paste.openstack.org/show/543308/
After that i have such error: http://paste.openstack.org/show/543310/

We have to add aodh_endpoint in LEGACY_OPTS section in client.py. : http://paste.openstack.org/show/543311/

In order to reproduce this bug I recommend that you do the following steps:

1. Create a virtual env on a machine where internal network can be reached.
$ virtualenv venv
$ source venv/bin/activate
$ pip install python-ceilometerclient==2.4.0
$ python
>>> from keystoneclient.v2_0 import Client as KeystoneClient
>>> from keystoneauth1.identity import V2Password
>>> from keystoneauth1.session import Session as KeystoneSession
>>> from ceilometerclient.v2 import client as ceilometer_client
>>>
>>> keystone_auth = V2Password(auth_url="http://10.109.1.8:5000/v2.0", username="admin", password="admin", tenant_name="admin")
>>> keystone_session = KeystoneSession(auth=keystone_auth, verify=False)
>>> keystone_access = keystone_auth.get_access(session=keystone_session)
>>> ceilometer = ceilometer_client.Client(session=keystone_session, aodh_endpoint=aodh_endpoint)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/aminasyan/stacklight-integration-tests/venv/local/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 68, in __init__
    self.http_client = ceiloclient._construct_http_client(**kwargs)
  File "/home/aminasyan/stacklight-integration-tests/venv/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 415, in _construct_http_client
    **kwargs)
  File "/home/aminasyan/stacklight-integration-tests/venv/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 457, in __init__
    super(SessionClient, self).__init__(*args, **kwargs)
  File "/home/aminasyan/stacklight-integration-tests/venv/local/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'aodh_endpoint'

This problem was reproduced on ceilometerclient 2.4.0 but i can't see this issue when i use 2.5.0 version.

Revision history for this message
Julien Danjou (jdanjou) wrote :

This sounds like you're not using the API correctly. If you have a complete and minimal script that can reproduce the issue, it'd be easier to help.

summary: - [Ceilometer]Ceilometer can't redirect to aodh API
+ Ceilometer can't redirect to aodh API
Changed in python-ceilometerclient:
status: New → Incomplete
description: updated
Revision history for this message
Julien Danjou (jdanjou) wrote :

Thanks for updating.

So basically… this is fixed in 2.5.0?

Revision history for this message
Artem Minasyan (aminasyan) wrote :

2.5.0 has not this problem.

Revision history for this message
Julien Danjou (jdanjou) wrote :

Cool… so no bug then!

Changed in python-ceilometerclient:
status: Incomplete → Invalid
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.