with ceilometerclient 1.0.13 the os_insecure argument is no longer handled properly for ceilometerclient.client.get_client(), as seen below:
>>> from ceilometerclient import client as ceilo_client
>>> args = {'os_service_type': 'metering', 'os_insecure': 'True', 'os_auth_url': 'https://127.0.0.1:5000', 'os_project_domain_name': 'Default', 'os_tenant_name': 'myproject', 'os_user_domain_name': 'Default', 'os_username': 'myuser', 'os_password': 'mypassw0rd'}
>>> c = ceilo_client.get_client('2', **args)
>>> c.meters.list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/ceilometerclient/v2/meters.py", line 30, in list
return self._list(options.build_url(path, q))
File "/usr/lib/python2.7/site-packages/ceilometerclient/common/base.py", line 68, in _list
resp = self.api.get(url)
File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 355, in get
return self.client_request("GET", url, **kwargs)
File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 345, in client_request
self, method, url, **kwargs)
File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 244, in client_request
self.authenticate()
File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 315, in authenticate
self.auth_plugin.authenticate(self)
File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/auth.py", line 203, in authenticate
self._do_authenticate(http_client)
File "/usr/lib/python2.7/site-packages/ceilometerclient/client.py", line 192, in _do_authenticate
ks_session = _get_keystone_session(**ks_kwargs)
File "/usr/lib/python2.7/site-packages/ceilometerclient/client.py", line 84, in _get_keystone_session
v2_auth_url, v3_auth_url = _discover_auth_versions(ks_session, auth_url)
File "/usr/lib/python2.7/site-packages/ceilometerclient/client.py", line 33, in _discover_auth_versions
ks_discover = discover.Discover(session=session, auth_url=auth_url)
File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/discover.py", line 166, in __init__
authenticated=authenticated)
File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 142, in __init__
authenticated=authenticated)
File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 40, in get_version_data
resp = session.get(url, headers=headers, authenticated=authenticated)
File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 478, in get
return self.request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 370, in request
resp = send(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 409, in _send_request
raise exceptions.SSLError(msg)
keystoneclient.exceptions.SSLError: SSL exception connecting to https://127.0.0.1:5000
Fix proposed to branch: master /review. openstack. org/169442
Review: https:/