Kibana deployment fails due to invalid value for elasticsearch.ssl.certificateAuthorities

Bug #1864180 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard
Ussuri
Fix Released
Medium
Mark Goddard

Bug Description

When deploying Kibana with the default configuration of openstack_cacert being unset, it fails due to an invalid configuration. The error message is both unfriendly and useless:

"message":"child \"elasticsearch\" fails because [child \"ssl\" fails because [child \"certificateAuthorities\" fails because [single value of \"certificateAuthorities\" fails because [\"certificateAuthorities\" must be a string]]]]"}

This is because we set elasticsearch.ssl.certificateAuthorities even when there is no CA cert configured.

Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
milestone: none → 10.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/709091

Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
status: New → In Progress
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

You mean "useless" rather than "useful".

Mark Goddard (mgoddard)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/709091
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=6bae6da36c069387632a12788c8493b336b109de
Submitter: Zuul
Branch: master

commit 6bae6da36c069387632a12788c8493b336b109de
Author: Mark Goddard <email address hidden>
Date: Fri Feb 21 10:14:50 2020 +0000

    Fix kibana deployment with openstack_cacert unset

    When deploying Kibana with the default configuration of openstack_cacert
    being unset, it fails due to an invalid configuration. The error message
    is both unfriendly and useful:

    "message":"child \"elasticsearch\" fails because [child \"ssl\" fails
    because [child \"certificateAuthorities\" fails because [single value of
    \"certificateAuthorities\" fails because [\"certificateAuthorities\"
    must be a string]]]]"}

    This is because we set elasticsearch.ssl.certificateAuthorities even
    when there is no CA cert configured.

    This change fixes the issue by only setting
    elasticsearch.ssl.certificateAuthorities when a CA cert is configured.

    Change-Id: I5954751451b7c931e8a9d79c713a2798522d8b81
    Closes-Bug: #1864180

Changed in kolla-ansible:
status: In Progress → Fix Released
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.