External web URL not set in Prometheus

Bug #1825150 reported by Doug Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Doug Szumski
Rocky
Fix Released
Medium
Unassigned
Stein
Fix Released
Medium
Unassigned
Train
Fix Released
Medium
Doug Szumski

Bug Description

Kolla-Ansible deploys Prometheus behind HAProxy. As a user of Prometheus, I am sometimes redirected to the host running Prometheus rather than the HAProxy endpoint. For example, if I click a link in a Slack notification generated by Prometheus Alertmanager, I am redirected to the host running Prometheus Alertmanager which I may not have access to. The expected behaviour is that URLs returned from Prometheus services do not reference the node on which they are running, but always reference the appropriate HAProxy endpoint.

Prometheus provides support for this via the web.external-url flag. See here for more details:

https://www.robustperception.io/using-external-urls-and-proxies-with-prometheus

Doug Szumski (dszumski)
Changed in kolla-ansible:
assignee: nobody → Doug Szumski (dszumski)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/653377

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/653377
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=9d495504be57b30343f3f4c64f86413edfb962ad
Submitter: Zuul
Branch: master

commit 9d495504be57b30343f3f4c64f86413edfb962ad
Author: Doug Szumski <email address hidden>
Date: Wed Apr 17 11:21:14 2019 +0100

    Set external web URL for Prometheus services

    This change ensures that URLs returned from these services reference
    the HAProxy endpoint, rather than the host on which the service is
    running.

    Closes-Bug: #1825150
    Change-Id: I7f966ff749ea37620f1bde7019a598cb9505fa45

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/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/655562

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

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/655563

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

Reviewed: https://review.opendev.org/655562
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=abb5087774a0e7bee268397b3825cd41540ab5c1
Submitter: Zuul
Branch: stable/stein

commit abb5087774a0e7bee268397b3825cd41540ab5c1
Author: Doug Szumski <email address hidden>
Date: Wed Apr 17 11:21:14 2019 +0100

    Set external web URL for Prometheus services

    This change ensures that URLs returned from these services reference
    the HAProxy endpoint, rather than the host on which the service is
    running.

    Closes-Bug: #1825150
    Change-Id: I7f966ff749ea37620f1bde7019a598cb9505fa45
    (cherry picked from commit 9d495504be57b30343f3f4c64f86413edfb962ad)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.opendev.org/655563
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=c418f7458c8b4084332ed0338a23252f330629cf
Submitter: Zuul
Branch: stable/rocky

commit c418f7458c8b4084332ed0338a23252f330629cf
Author: Doug Szumski <email address hidden>
Date: Wed Apr 17 11:21:14 2019 +0100

    Set external web URL for Prometheus services

    This change ensures that URLs returned from these services reference
    the HAProxy endpoint, rather than the host on which the service is
    running.

    Closes-Bug: #1825150
    Change-Id: I7f966ff749ea37620f1bde7019a598cb9505fa45
    (cherry picked from commit 9d495504be57b30343f3f4c64f86413edfb962ad)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.1.1

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

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

This issue was fixed in the openstack/kolla-ansible 8.0.0.0rc2 release candidate.

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

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

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.