Hi, How do I set the correct URL to Grafana in a new cephadm bootstrapped cluster? When I try to access the performance parts of the Ceph dashboard my browser tells me that it cannot resolve the short hostname that is presented in the URL to Grafana. cephadm seems to use only the hostname and not the FQDN which is needed when using the Dashboard from the browser (at least in this setup). This obviously did not work: root@ceph01:~# ceph dashboard get-grafana-api-url https://ceph01:3000 root@ceph01:~# ceph dashboard set-grafana-api-url https://ceph01.ceph.heinlein-akademie.de:3000 Option GRAFANA_API_URL updated root@ceph01:~# ceph config get mgr mgr/dashboard/GRAFANA_API_URL https://ceph01:3000 root@ceph01:~# ceph config set mgr mgr/dashboard/GRAFANA_API_URL https://ceph01.ceph.heinlein-akademie.de:3000 root@ceph01:~# ceph config get mgr mgr/dashboard/GRAFANA_API_URL https://ceph01:3000 root@ceph01:~# ceph dashboard get-grafana-api-url https://ceph01:3000 Regards -- Robert Sander Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
Did you try to restart the dashboard mgr module after your change ? # ceph mgr module disable dashboard # ceph mgr module enable dashboard Regards,
Hi, Am 02.09.20 um 23:17 schrieb Dimitri Savineau:
Did you try to restart the dashboard mgr module after your change ?
# ceph mgr module disable dashboard # ceph mgr module enable dashboard
Yes, I should have mentioned that. No effect, though. Regards -- Robert Sander Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
Hi Robert, The host where the browser is on needs to be able to reach the Grafana instance by `ceph01` hostname (maybe add an entry to /etc/hosts?). There was a fix [1] that allows custom Grafana URL (so the cephadm doesn't override it). It's backported, maybe the version you are using doesn't contain the fix yet. Regards, Kiefer [1] https://github.com/ceph/ceph/pull/35747 On 2020/9/2, 8:50 PM, "Robert Sander" <r.sander@heinlein-support.de> wrote: Hi, How do I set the correct URL to Grafana in a new cephadm bootstrapped cluster? When I try to access the performance parts of the Ceph dashboard my browser tells me that it cannot resolve the short hostname that is presented in the URL to Grafana. cephadm seems to use only the hostname and not the FQDN which is needed when using the Dashboard from the browser (at least in this setup). This obviously did not work: root@ceph01:~# ceph dashboard get-grafana-api-url https://ceph01:3000 root@ceph01:~# ceph dashboard set-grafana-api-url https://ceph01.ceph.heinlein-akademie.de:3000 Option GRAFANA_API_URL updated root@ceph01:~# ceph config get mgr mgr/dashboard/GRAFANA_API_URL https://ceph01:3000 root@ceph01:~# ceph config set mgr mgr/dashboard/GRAFANA_API_URL https://ceph01.ceph.heinlein-akademie.de:3000 root@ceph01:~# ceph config get mgr mgr/dashboard/GRAFANA_API_URL https://ceph01:3000 root@ceph01:~# ceph dashboard get-grafana-api-url https://ceph01:3000 Regards -- Robert Sander Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
Hi, Am 03.09.20 um 11:57 schrieb Ni-Feng Chang:
The host where the browser is on needs to be able to reach the Grafana instance by `ceph01` hostname (maybe add an entry to /etc/hosts?).
Yes, that is my intermediate solution. But I cannot tell my trainees next week that they have to modify /etc/hosts on their Windows maschines to access performance data.
There was a fix [1] that allows custom Grafana URL (so the cephadm doesn't override it). It's backported, maybe the version you are using doesn't contain the fix yet.
I did a clean cephadm setup yesterday. ceph versions reports 15.2.4 https://tracker.ceph.com/issues/44877 is exactly the issue I experience. It seems that the fix is in 15.2.5, any chance that this will be released until the weekend? ;) Regards -- Robert Sander Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
participants (3)
-
Dimitri Savineau
-
Ni-Feng Chang
-
Robert Sander