TypeError: __init__() got an unexpected keyword argument 'aodh_endpoint'

Bug #1589425 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Undecided
Rabi Mishra

Bug Description

When using keystone session with ceilometerclient, passing aodh_endpoint for creating the alarm client throws the following error.

2016-06-06 07:11:01.965 | Traceback (most recent call last):
2016-06-06 07:11:01.965 | File "heat/tests/clients/test_ceilometer_client.py", line 26, in test_create
2016-06-06 07:11:01.965 | client = plugin.client()
2016-06-06 07:11:01.965 | File "heat/engine/clients/client_plugin.py", line 135, in client
2016-06-06 07:11:01.965 | self._client_instances[version] = self._create()
2016-06-06 07:11:01.965 | File "heat/engine/clients/os/ceilometer.py", line 42, in _create
2016-06-06 07:11:01.965 | return cc.get_client('2', **args)
2016-06-06 07:11:01.966 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 366, in get_client
2016-06-06 07:11:01.966 | return Client(version, endpoint, **kwargs)
2016-06-06 07:11:01.966 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 313, in Client
2016-06-06 07:11:01.966 | return client_class(*args, **client_kwargs)
2016-06-06 07:11:01.966 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 68, in __init__
2016-06-06 07:11:01.966 | self.http_client = ceiloclient._construct_http_client(**kwargs)
2016-06-06 07:11:01.966 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 415, in _construct_http_client
2016-06-06 07:11:01.966 | **kwargs)
2016-06-06 07:11:09.252 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/ceilometerclient/client.py", line 457, in __init__
2016-06-06 07:11:09.252 | super(SessionClient, self).__init__(*args, **kwargs)
2016-06-06 07:11:09.252 | File "/home/jenkins/workspace/gate-heat-python27-db/.tox/py27/local/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2016-06-06 07:11:09.253 | return wrapped(*args, **kwargs)
2016-06-06 07:11:09.253 | TypeError: __init__() got an unexpected keyword argument 'aodh_endpoint'

Rabi Mishra (rabi)
Changed in python-ceilometerclient:
assignee: nobody → Rabi Mishra (rabi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/325781

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

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

commit 0a1a8d2580b45fcaecf2114e5453af7198dd7fd2
Author: rabi <email address hidden>
Date: Mon Jun 6 14:18:15 2016 +0530

    Ignore aodh_endpoint argument

    When using keystone session, we seem to pass all **kwargs to
    SessionClient for metering. We should drop the 'aodh_endpoint'
    from kwargs.

    Change-Id: Iaf28d4a525d49f62a0ae635dc1102cc1f0308c74
    Closes-Bug: #1589425

Changed in python-ceilometerclient:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-ceilometerclient 2.5.0

This issue was fixed in the openstack/python-ceilometerclient 2.5.0 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.