Bug #46304
open"ceph dashboard set-grafana-api-url" not being applied when using cephadm
0%
Description
When I run `ceph dashboard set-grafana-api-url https://example.com:443`, I see the following output:
However, it doesn't seem to update the configurations accordingly. When I run `ceph dashboard get-grafana-api-url`, it displays the original URL, rather than the example.com URL. This persists after dashboard disables/enable and mgr restarts as well.
Updated by Matt Schuchhardt almost 4 years ago
Apologies, this is the output from the command: Option GRAFANA_API_URL updated
Updated by Matt Schuchhardt almost 4 years ago
...and I posted this to the wrong project. This should be in mgr. Sorry, this is amateur hour today.
Updated by Matt Schuchhardt almost 4 years ago
I recreated this in the proper project https://tracker.ceph.com/issues/46305 --- if you could squash this ticket I'd really appreciate it. Sorry about the chatter.
Updated by Sebastian Wagner almost 4 years ago
- Related to Bug #46305: mgr/dashboard: `ceph dashboard set-grafana-api-url` not being applied added
Updated by Sebastian Wagner almost 4 years ago
did oyu deploy grafana with cephadm?
Updated by Matt Schuchhardt almost 4 years ago
Yep, I did use cephadm for the installation, largely just via the quickstart guide. Everything else seems to be working expectedly, which leads me to believe it's not an orchestrator bug.
Updated by Gregor Krmelj almost 4 years ago
The fix was supposedly solved in this commit: https://github.com/ceph/ceph/commit/935a56ab0ca810c8d348609a99483372404f9cdf#diff-b2eb7e15b64fdea42d7c8afdab01bcbcR251
with the introduction of the dashboard `config_dashboard` setting.
Setting `config_dashboard` to `False` is suppose to disable cephadm from managing the dashboard (incl. the API URL settings).
I tracked down this commit but to the best of my ability I see it didn't make the v15.2.4 release.
I had the same issue and I found somewhere (can't find the exact source now) mention a possible workaround. Set the host's address field to the fqdn and leave the host name with the default hostname (not fqdn) as per docs recommendation (https://docs.ceph.com/docs/master/cephadm/concepts/#fully-qualified-domain-names-vs-bare-host-names)
ceph orch host set-addr <host> <fqdn>
In my use case this was a viable workaround.
Updated by Sebastian Wagner over 3 years ago
- Project changed from Orchestrator to mgr
- Subject changed from "ceph dashboard set-grafana-api-url" not being applied to "ceph dashboard set-grafana-api-url" not being applied when using cephadm