We need 2.5.0 version of ceilometerclient for correct work. We can't create alarm via ceilometerclient 2.4.0 version.
In order to reproduce this problem 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.
Hi Artem, could you please provide more information.
Do we need to fix the issue for 10.0 as well?