2016-07-29 12:05:40 |
Artem Minasyan |
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/ |
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. |
|