Project

General

Profile

Bug #47763

mgr/dashboard: simplify Dashboard HAProxy

Added by Ernesto Puerta almost 2 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Docs
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Contribution from RH OpenStack team (kudos to Francesco Pantano, fpantano) when configuring HAProxy with Ceph-Dashboard:
  • The error standby behaviour is not needed: the regular redirect works enough if properly configured: http-check expect rstatus 2[0-9][0-9]
  • HEAD method works better that GET (it does not involve payload transmited back to HAProxy).

So we could replace the provided haproxy.cfg sample:

listen ceph_dashboard
  bind <ip>:<post> transparent ssl crt <cert_pem>
  mode http
  balance source
  http-check expect rstatus 2[0-9][0-9]
  http-request set-header X-Forwarded-Proto https if { ssl_fc }
  http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
  http-request set-header X-Forwarded-Port %[dst_port]
  option httpchk HEAD /
  server <name_1> <ip_1>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_1>
  server <name_2> <ip_2>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_2>
  ...
  server <name_N> <ip_N>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_N>

A suggestion would be to update docs on HAProxy integration.

History

#1 Updated by Lenz Grimmer almost 2 years ago

  • Tags set to ha, documentation, low-hanging-fruit
  • Category changed from 132 to 175
  • Tags deleted (haproxy, HA)

Thanks for the feedback!

#2 Updated by Ernesto Puerta over 1 year ago

  • Tracker changed from Fix to Bug
  • Project changed from mgr to Dashboard
  • Category changed from 175 to Docs
  • Regression set to No
  • Severity set to 3 - minor

#3 Updated by Ellen Kusasira 6 months ago

Ernesto Puerta, can I work on this issue?

#4 Updated by Laura Flores 6 months ago

Hi Ellen, yes you may work on this issue. Ernesto may have to add you to the Ceph devels group for you to be assigned, but you can work on it while that is in progress.

#5 Updated by Ellen Kusasira 5 months ago

Laura, is this supposed to be a change to the docs only. How do I go about this? Thanks in advance

#6 Updated by Seremba Patrick 5 months ago

Ellen, given the instructions on the issue, and the 'low hanging fruit' tag, you are only required to change the docs. How to go about it? I have found this link...let me hope it can helpful. https://docs.huihoo.com/ceph/v9.0.0/start/documenting-ceph/index.html#making-contributions

Laura and Ernesto I trust can provide further help. Good luck.

Also available in: Atom PDF