]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #47265 from s0nea/wip-dashboard-redirect-fqdn
authorNizamudeen A <nia@redhat.com>
Fri, 23 Sep 2022 05:29:24 +0000 (10:59 +0530)
committerGitHub <noreply@github.com>
Fri, 23 Sep 2022 05:29:24 +0000 (10:59 +0530)
mgr/dashboard: add option to resolve ip addr

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
1  2 
doc/mgr/dashboard.rst

index d3eb125fe7f38ce2b78ee2d9495e7cd319fdd993,228e03a7d0a34bfeaec0590c5434a850a0e3a07b..7139a2ead4d78a4dcaffa035f06fd33a335fb5f0
@@@ -1227,12 -1100,27 +1227,29 @@@ Configure the error status cod
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
  When redirection is disabled, you may want to customize the HTTP status
 -code of standby dashboards. To do so you need to run the command::
 +code of standby dashboards. To do so you need to run the command:
 +
 +.. prompt:: bash $
  
 -  $ ceph config set mgr mgr/dashboard/standby_error_status_code 503
 +   ceph config set mgr mgr/dashboard/standby_error_status_code 503
  
+ Resolve IP address to hostname before redirect
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ The redirect from a standby to the active dashboard is done via the IP
+ address. This is done because resolving IP addresses to hostnames can be error
+ prone in containerized environments. It is also the reason why the option is
+ disabled by default.
+ However, in some situations it might be helpful to redirect via the hostname.
+ For example if the configured TLS certificate matches only the hostnames. To
+ activate the redirection via the hostname run the following command::
+   $ ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr True
+ You can disable it again by::
+   $ ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr False
  HAProxy example configuration
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^