yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41466
[Bug 1388764] Re: Horizon fail to load resources usage if ceilometer configured with SSL
** Changed in: horizon/juno
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1388764
Title:
Horizon fail to load resources usage if ceilometer configured with SSL
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in OpenStack Dashboard (Horizon) juno series:
Fix Released
Bug description:
When ceilometer is configured in SSL, within Horizon configured as
below for the local_setting
OPENSTACK_SSL_CACERT=<cert>
OPENSTACK_SSL_NO_VERIFY=false
Horizon fail to load the meter-list from ceilometer while ceilometer
will get the meter-list with the same cert via command line.
With checking the code of Horizon. Found that, It uses the wrong arguments to pass the cacert: It should be 'cacert' instead of 'ca_file'
https://github.com/openstack/python-
ceilometerclient/blob/master/ceilometerclient/v2/client.py#L53
In openstack_dashboard/api/ceilometer.py:
@memoized
def ceilometerclient(request):
"""Initialization of Ceilometer client."""
endpoint = base.url_for(request, 'metering')
insecure = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False)
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', None)
return ceilometer_client.Client('2', endpoint,
token=(lambda: request.user.token.id),
insecure=insecure,
ca_file=cacert)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1388764/+subscriptions
References