Project

General

Profile

Actions

Bug #46304

open

"ceph dashboard set-grafana-api-url" not being applied when using cephadm

Added by Matt Schuchhardt almost 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.


Related issues 1 (1 open0 closed)

Related to Dashboard - Bug #46305: mgr/dashboard: `ceph dashboard set-grafana-api-url` not being appliedNew

Actions
Actions #1

Updated by Matt Schuchhardt almost 4 years ago

Apologies, this is the output from the command: Option GRAFANA_API_URL updated

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Sebastian Wagner almost 4 years ago

  • Related to Bug #46305: mgr/dashboard: `ceph dashboard set-grafana-api-url` not being applied added
Actions #5

Updated by Sebastian Wagner almost 4 years ago

did oyu deploy grafana with cephadm?

Actions #6

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.

Actions #7

Updated by Gregor Krmelj almost 4 years ago

This issue has been posted multiple times, just listing them here for reference purposes:

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.

Actions #8

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
Actions

Also available in: Atom PDF