Hi Lenz and Wyllys,

issue https://tracker.ceph.com/issues/41930 has been created some days ago by myself to address this issue. The related PR is https://github.com/ceph/ceph/pull/30478.

Regards
Volker

Am 23.09.19 um 10:27 schrieb Lenz Grimmer:
Hi Wyllys,

when you're talking about "ceph-mgr" here, I assume you're referring to
the Ceph Dashboard, correct?

On 9/18/19 3:42 PM, Wyllys Ingersoll wrote:

ceph-mgr is difficult to put behind an nginx reverse proxy configuration
currently because of the HTTP return codes that it uses in different
situations.

We have 3 ceph-mgr servers (one on each of 3 monitors).  Only 1 is ever
active.  We do not expose the monitors outside of the cluster, so we
cannot point the browser directly at the manager IP address, instead we
have an nginx proxy server setup on a separate administrative node in
front of the cluster.

When a reverse proxy asks an inactive manager for the root URL (/), the
inactive mgr will return a 302 redirect code referencing the active mgr
node - which is good, we can handle that.  However, when the reverse
proxy requests content from the inactive mgr, for example requesting
something like "/runtime.26209474bfa8dc87a77c.js", the inactive mgr
returns a 404 Not Found error instead of a 302 redirect.  This makes it
difficult (impossible?) to get all of the content if an inactive
ceph-mgr is selected by the reverse proxy.

It would be nice if any request to an inactive ceph-mgr returned a 302
with the correct location (and full URI path) to the client (the reverse
proxy in this case).
You raise a very good point. Indeed, the current implementation makes it
a bit challenging to put the dashboard behind a proxy. We have captured
some of these concerns in the tracker here:

https://tracker.ceph.com/issues/24662
Patch: https://github.com/ceph/ceph/pull/29088

This fix will also be backported into the Nautilus branch.

However, you seem to be observing a somewhat different issue. I would
have assumed that the redirection would apply to all objects and not
just the top level URL - would you mind submitting a bug report about
this for further investigation?

Maybe this is related to https://tracker.ceph.com/issues/41843 by any
chance?

Lenz


_______________________________________________
Dev mailing list -- dev@ceph.io
To unsubscribe send an email to dev-leave@ceph.io

-- 
Volker Theile
Software Engineer | Ceph | openATTIC
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5
90409 Nürnberg
Germany
GF: Felix Imendörffer, HRB 247165 (AG München)
Phone: +49 173 5876879
E-Mail: vtheile@suse.com