Needs update ceilometerclient version from 2.4.0 to 2.5.0

Bug #1607781 reported by Artem Minasyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
High
MOS Ceilometer

Bug Description

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.

Changed in mos:
assignee: nobody → MOS Packaging Team (mos-packaging)
milestone: none → 9.1
importance: Undecided → High
Changed in mos:
status: New → Confirmed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Hi Artem, could you please provide more information.

Do we need to fix the issue for 10.0 as well?

tags: added: area-ceilometer
description: updated
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Hi Ceilometer team,

we don't have 2.5 in stable/mitaka branch in upstream and packaging team can't build 2.5 version for Mitaka because we don't have the required code in the repository:

https://review.fuel-infra.org/gitweb?p=openstack/python-ceilometerclient.git;a=shortlog;h=refs/heads/stable/mitaka

Need to sync 2.5 with stable/mitaka

Changed in mos:
assignee: MOS Packaging Team (mos-packaging) → MOS Ceilometer (mos-ceilometer)
Changed in mos:
status: Confirmed → 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.