Thanks for the clarification Boris. On Tue, Apr 21, 2020 at 8:24 PM Boris Ranto <branto@xxxxxxxxxx> wrote: > > On Tue, Apr 21, 2020 at 2:48 AM Brad Hubbard <bhubbard@xxxxxxxxxx> wrote: > > > > On Tue, Apr 21, 2020 at 5:24 AM Wyllys Ingersoll > > <wyllys.ingersoll@xxxxxxxxxxxxxx> wrote: > > > > > > Im trying to understand how to configure the ceph-mgr restful plugin module for Mimic (13.2.8). > > > > > > Some docs (maybe out of date) seem to indicate that the base url for the api is "/api/v0.1", but ours seems to be using just "/api". > > > > The current docs for mimic are here, > > https://docs.ceph.com/docs/mimic/mgr/restful/ > > > > They show the base as '/' and > > https://github.com/ceph/ceph/blob/mimic/qa/workunits/rest/test_mgr_rest_api.py#L50 > > and https://github.com/ceph/ceph/blob/mimic/src/pybind/mgr/restful/module.py#L314-L319 > > tend to confirm this. > > > > > > > > There used to be a configuration parameter "restapi_base_url", but apparently that is not supported anymore. > > > > This appears to have been abandoned when the restful api server was > > moved to a manager module. > > > > Yes, this is addressing two different REST apis. The old ceph-rest-api > (with /api/v0.1 endpoints) was deprecated and eventually removed from > the ceph project. It was superseded by the restful ceph-mgr module, > more specifically by the /request endpoint in the module, see the docs > about the /request endpoint for more details. > > > > > > > My question - What is the base URL for the mgr restful module and is it configurable? > > > > '/' and, at this point AFAICT no, it is not configurable. > > > > > > > > There are some packages (such as the elasticsearch metricbeat ceph module) that have hard coded "/api/v0.1" as the base URL and wont work with newer ceph releases if that URL doesn't work. > > > > If you would like this behaviour to be available please open a tracker for it. > > > > I believe Wyllys is talking about third-party packages, we no longer > support ceph-rest-api, the ticket should be created against those > projects so that they use the new rest api. > > Alternatively, it should still be possible to run the old > ceph-rest-api even in recent ceph releases. However, you are on your > own here as the code was already deprecated and it is not maintained > by ceph developers. > > Regards, > Boris > > > > > > > > thanks, > > > Wyllys Ingersoll > > > > > > _______________________________________________ > > > Dev mailing list -- dev@xxxxxxx > > > To unsubscribe send an email to dev-leave@xxxxxxx > > > > > > > > -- > > Cheers, > > Brad > > > -- Cheers, Brad _______________________________________________ Dev mailing list -- dev@xxxxxxx To unsubscribe send an email to dev-leave@xxxxxxx