Project

General

Profile

Actions

Bug #47763

open

mgr/dashboard: simplify Dashboard HAProxy

Added by Ernesto Puerta over 3 years ago. Updated almost 2 years 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.

Actions #1

Updated by Lenz Grimmer over 3 years ago

  • Translation missing: en.field_tag_list set to ha, documentation, low-hanging-fruit
  • Category changed from 132 to 175
  • Tags deleted (haproxy, HA)

Thanks for the feedback!

Actions #2

Updated by Ernesto Puerta almost 3 years 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
Actions #3

Updated by Ellen Kusasira almost 2 years ago

Ernesto Puerta, can I work on this issue?

Actions #4

Updated by Laura Flores almost 2 years 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.

Actions #5

Updated by Ellen Kusasira almost 2 years ago

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

Actions #6

Updated by Seremba Patrick almost 2 years 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.

Actions

Also available in: Atom PDF