Prometheus etcd scrape fails when etcd uses TLS

Bug #2036950 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard
Antelope
Fix Released
Medium
Mark Goddard
Bobcat
Fix Released
Medium
Mark Goddard
Yoga
Fix Released
Medium
Mark Goddard
Zed
Fix Released
Medium
Mark Goddard

Bug Description

If etcd TLS is enabled (etcd_enable_tls) and prometheus is deployed, scraping Prometheus fails with HTTP 400 due to trying to use HTTP.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/896052
Committed: https://opendev.org/openstack/kolla-ansible/commit/05df4e72095a4209acc8d6d15c37c6e54b937795
Submitter: "Zuul (22348)"
Branch: master

commit 05df4e72095a4209acc8d6d15c37c6e54b937795
Author: Mark Goddard <email address hidden>
Date: Thu Sep 21 12:23:24 2023 +0100

    prometheus: Fix etcd scrape when etcd uses TLS

    Use HTTPS to scrape etcd metrics when etcd TLS is enabled.

    Change-Id: Iaff10d5314a8dc5b07137d93c269f1ac24cf63de
    Closes-Bug: #2036950

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/899825

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/899826

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/899827

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 17.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 17.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/899825
Committed: https://opendev.org/openstack/kolla-ansible/commit/c1321e2309d6d628cecde3990fc12f658928d772
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit c1321e2309d6d628cecde3990fc12f658928d772
Author: Mark Goddard <email address hidden>
Date: Thu Sep 21 12:23:24 2023 +0100

    prometheus: Fix etcd scrape when etcd uses TLS

    Use HTTPS to scrape etcd metrics when etcd TLS is enabled.

    Change-Id: Iaff10d5314a8dc5b07137d93c269f1ac24cf63de
    Closes-Bug: #2036950
    (cherry picked from commit 05df4e72095a4209acc8d6d15c37c6e54b937795)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/899826
Committed: https://opendev.org/openstack/kolla-ansible/commit/bd23f26d43286fd817fdfe32cadf4b3c1806faea
Submitter: "Zuul (22348)"
Branch: stable/zed

commit bd23f26d43286fd817fdfe32cadf4b3c1806faea
Author: Mark Goddard <email address hidden>
Date: Thu Sep 21 12:23:24 2023 +0100

    prometheus: Fix etcd scrape when etcd uses TLS

    Use HTTPS to scrape etcd metrics when etcd TLS is enabled.

    Change-Id: Iaff10d5314a8dc5b07137d93c269f1ac24cf63de
    Closes-Bug: #2036950
    (cherry picked from commit 05df4e72095a4209acc8d6d15c37c6e54b937795)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/899827
Committed: https://opendev.org/openstack/kolla-ansible/commit/12979e7df5607ad4e7e8674fc987b6ccdc8bb86c
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 12979e7df5607ad4e7e8674fc987b6ccdc8bb86c
Author: Mark Goddard <email address hidden>
Date: Thu Sep 21 12:23:24 2023 +0100

    prometheus: Fix etcd scrape when etcd uses TLS

    Use HTTPS to scrape etcd metrics when etcd TLS is enabled.

    Change-Id: Iaff10d5314a8dc5b07137d93c269f1ac24cf63de
    Closes-Bug: #2036950
    (cherry picked from commit 05df4e72095a4209acc8d6d15c37c6e54b937795)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 16.3.0

This issue was fixed in the openstack/kolla-ansible 16.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 14.11.0

This issue was fixed in the openstack/kolla-ansible 14.11.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 15.4.0

This issue was fixed in the openstack/kolla-ansible 15.4.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.