SSLError during cclient.meters.list() by https

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

Bug Description

import ceilometerclient.client
cclient = ceilometerclient.client.get_client(VERSION,
                                             os_username=USERNAME,
                                             os_password=PASSWORD,
                                             os_tenant_name=PROJECT_NAME,
                                             os_auth_url=AUTH_URL,
                                             os_insecure=True)
for i in cclient.meters.list():
    print(i)

SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

-----------------------
If we use https connection url in os_auth_url parameter but not use cacert then we get error during getting meters.list()

The reason is os_insecure flag is not correctly accessed by HTTPClient.

Ekaterina (ekaterian)
Changed in python-ceilometerclient:
status: New → In Progress
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/387391

Changed in python-ceilometerclient:
assignee: nobody → Ekaterina (ekaterian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/387391
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=5328c3168a7ed011fc2c6ac16ba8f8e4f9c5e380
Submitter: Jenkins
Branch: master

commit 5328c3168a7ed011fc2c6ac16ba8f8e4f9c5e380
Author: Ekaterina Khripunova <email address hidden>
Date: Mon Oct 17 12:24:25 2016 +0300

    Fixes SSLError during cclient.meters.list() by https

        The problem causes the function _adjust_kwargs(kwargs) which creates
        a new dict client_kwargs with new-named keys. It gets 'os_insecure' key
        from kwargs and gives it key-name 'insecure'.
        But the bug is in using kwargs.get('insecure') <which is None> to
        produse value of 'verify'.

    Change-Id: If77b2d3c75beddcd1a0a82353b56c84b29184ec7
    Closes-Bug: 1634027
    Related-Bug: 1394449

Changed in python-ceilometerclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.7.0

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