[ceph-users] Re: Help needed with Grafana password

2023-11-08 Thread Eugen Block

Hi,
you mean you forgot your password? You can remove the service with  
'ceph orch rm grafana', then re-apply your grafana.yaml containing the  
initial password. Note that this would remove all of the grafana  
configs or custom dashboards etc., you would have to reconfigure them.  
So before doing that you should verify that this is actually what  
you're looking for. Not sure what this has to do with Loki though.


Eugen

Zitat von Sake Ceph :


I configured a password for Grafana because I want to use Loki. I
used the spec parameter initial_admin_password and this works fine for a
staging environment, where I never tried to used Grafana with a password
for Loki. 
    
   Using the username admin with the configured password gives a
credentials error on environment where I tried to use Grafana with Loki in
the past (with 17.2.6 of Ceph/cephadm). I changed the password in the past
within Grafana, but how can I overwrite this now? Or is there a way to
cleanup all Grafana files? 
    
   Best regards, 
   Sake



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Sake Ceph
Hi, 

Well to get promtail working with Loki, you need to setup a password in 
Grafana. 
But promtail wasn't working with the 17.2.6 release, the URL was set to 
containers.local. So I stopped using it, but forgot to click on save in KeePass 
:(

I didn't configure anything special in Grafana, the default dashboards are 
great! So a wipe isn't a problem, it's what I want. 

Best regards, 
Sake 
> Op 09-11-2023 08:19 CET schreef Eugen Block :
> 
>  
> Hi,
> you mean you forgot your password? You can remove the service with  
> 'ceph orch rm grafana', then re-apply your grafana.yaml containing the  
> initial password. Note that this would remove all of the grafana  
> configs or custom dashboards etc., you would have to reconfigure them.  
> So before doing that you should verify that this is actually what  
> you're looking for. Not sure what this has to do with Loki though.
> 
> Eugen
> 
> Zitat von Sake Ceph :
> 
> > I configured a password for Grafana because I want to use Loki. I
> > used the spec parameter initial_admin_password and this works fine for a
> > staging environment, where I never tried to used Grafana with a password
> > for Loki. 
> > 
> >Using the username admin with the configured password gives a
> > credentials error on environment where I tried to use Grafana with Loki in
> > the past (with 17.2.6 of Ceph/cephadm). I changed the password in the past
> > within Grafana, but how can I overwrite this now? Or is there a way to
> > cleanup all Grafana files? 
> > 
> >Best regards, 
> >Sake
> 
> 
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Sake Ceph
To bad, that doesn't work :(
> Op 09-11-2023 09:07 CET schreef Sake Ceph :
> 
>  
> Hi, 
> 
> Well to get promtail working with Loki, you need to setup a password in 
> Grafana. 
> But promtail wasn't working with the 17.2.6 release, the URL was set to 
> containers.local. So I stopped using it, but forgot to click on save in 
> KeePass :(
> 
> I didn't configure anything special in Grafana, the default dashboards are 
> great! So a wipe isn't a problem, it's what I want. 
> 
> Best regards, 
> Sake 
> > Op 09-11-2023 08:19 CET schreef Eugen Block :
> > 
> >  
> > Hi,
> > you mean you forgot your password? You can remove the service with  
> > 'ceph orch rm grafana', then re-apply your grafana.yaml containing the  
> > initial password. Note that this would remove all of the grafana  
> > configs or custom dashboards etc., you would have to reconfigure them.  
> > So before doing that you should verify that this is actually what  
> > you're looking for. Not sure what this has to do with Loki though.
> > 
> > Eugen
> > 
> > Zitat von Sake Ceph :
> > 
> > > I configured a password for Grafana because I want to use Loki. I
> > > used the spec parameter initial_admin_password and this works fine for a
> > > staging environment, where I never tried to used Grafana with a password
> > > for Loki. 
> > > 
> > >Using the username admin with the configured password gives a
> > > credentials error on environment where I tried to use Grafana with Loki in
> > > the past (with 17.2.6 of Ceph/cephadm). I changed the password in the past
> > > within Grafana, but how can I overwrite this now? Or is there a way to
> > > cleanup all Grafana files? 
> > > 
> > >Best regards, 
> > >Sake
> > 
> > 
> > ___
> > ceph-users mailing list -- ceph-users@ceph.io
> > To unsubscribe send an email to ceph-users-le...@ceph.io
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Eugen Block

What doesn't work exactly? For me it did...

Zitat von Sake Ceph :


To bad, that doesn't work :(

Op 09-11-2023 09:07 CET schreef Sake Ceph :


Hi,

Well to get promtail working with Loki, you need to setup a  
password in Grafana.
But promtail wasn't working with the 17.2.6 release, the URL was  
set to containers.local. So I stopped using it, but forgot to click  
on save in KeePass :(


I didn't configure anything special in Grafana, the default  
dashboards are great! So a wipe isn't a problem, it's what I want.


Best regards,
Sake
> Op 09-11-2023 08:19 CET schreef Eugen Block :
>
>
> Hi,
> you mean you forgot your password? You can remove the service with
> 'ceph orch rm grafana', then re-apply your grafana.yaml containing the
> initial password. Note that this would remove all of the grafana
> configs or custom dashboards etc., you would have to reconfigure them.
> So before doing that you should verify that this is actually what
> you're looking for. Not sure what this has to do with Loki though.
>
> Eugen
>
> Zitat von Sake Ceph :
>
> > I configured a password for Grafana because I want to use Loki. I
> > used the spec parameter initial_admin_password and this works fine for a
> > staging environment, where I never tried to used Grafana with a password
> > for Loki. 
> > 
> >Using the username admin with the configured password gives a
> > credentials error on environment where I tried to use Grafana  
with Loki in
> > the past (with 17.2.6 of Ceph/cephadm). I changed the password  
in the past

> > within Grafana, but how can I overwrite this now? Or is there a way to
> > cleanup all Grafana files? 
> > 
> >Best regards, 
> >Sake
>
>
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Sake Ceph
Using podman version 4.4.1 on RHEL 8.8, Ceph 17.2.7

I used 'podman system prune -a -f' and 'podman volume prune -f' to cleanup 
files, but this leaves a lot of files over in 
/var/lib/containers/storage/overlay and a empty folder 
/var/lib/ceph//custom_config_files/grafana..
Found those files with 'find / -name *grafana*'.

> Op 09-11-2023 09:53 CET schreef Eugen Block :
> 
>  
> What doesn't work exactly? For me it did...
> 
> Zitat von Sake Ceph :
> 
> > To bad, that doesn't work :(
> >> Op 09-11-2023 09:07 CET schreef Sake Ceph :
> >>
> >>
> >> Hi,
> >>
> >> Well to get promtail working with Loki, you need to setup a  
> >> password in Grafana.
> >> But promtail wasn't working with the 17.2.6 release, the URL was  
> >> set to containers.local. So I stopped using it, but forgot to click  
> >> on save in KeePass :(
> >>
> >> I didn't configure anything special in Grafana, the default  
> >> dashboards are great! So a wipe isn't a problem, it's what I want.
> >>
> >> Best regards,
> >> Sake
> >> > Op 09-11-2023 08:19 CET schreef Eugen Block :
> >> >
> >> >
> >> > Hi,
> >> > you mean you forgot your password? You can remove the service with
> >> > 'ceph orch rm grafana', then re-apply your grafana.yaml containing the
> >> > initial password. Note that this would remove all of the grafana
> >> > configs or custom dashboards etc., you would have to reconfigure them.
> >> > So before doing that you should verify that this is actually what
> >> > you're looking for. Not sure what this has to do with Loki though.
> >> >
> >> > Eugen
> >> >
> >> > Zitat von Sake Ceph :
> >> >
> >> > > I configured a password for Grafana because I want to use Loki. I
> >> > > used the spec parameter initial_admin_password and this works fine for 
> >> > > a
> >> > > staging environment, where I never tried to used Grafana with a 
> >> > > password
> >> > > for Loki. 
> >> > > 
> >> > >Using the username admin with the configured password gives a
> >> > > credentials error on environment where I tried to use Grafana  
> >> with Loki in
> >> > > the past (with 17.2.6 of Ceph/cephadm). I changed the password  
> >> in the past
> >> > > within Grafana, but how can I overwrite this now? Or is there a way to
> >> > > cleanup all Grafana files? 
> >> > > 
> >> > >Best regards, 
> >> > >Sake
> >> >
> >> >
> >> > ___
> >> > ceph-users mailing list -- ceph-users@ceph.io
> >> > To unsubscribe send an email to ceph-users-le...@ceph.io
> >> ___
> >> ceph-users mailing list -- ceph-users@ceph.io
> >> To unsubscribe send an email to ceph-users-le...@ceph.io
> 
> 
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Eugen Block
Usually, removing the grafana service should be enough. I also have  
this directory (custom_config_files/grafana.) but it's  
empty. Can you confirm that after running 'ceph orch rm grafana' the  
service is actually gone ('ceph orch ls grafana')? The directory  
underneath /var/lib/ceph/{fsid}/grafana. should also be  
gone, can you confirm? Removing a service can take some time, so maybe  
wait a few minutes and then check again. And after you removed it, did  
you deploy again with your initial password? Maybe share the exact  
commands you used and the content of your grafana.yaml (mask sensitive  
data).


Zitat von Sake Ceph :


Using podman version 4.4.1 on RHEL 8.8, Ceph 17.2.7

I used 'podman system prune -a -f' and 'podman volume prune -f' to  
cleanup files, but this leaves a lot of files over in  
/var/lib/containers/storage/overlay and a empty folder  
/var/lib/ceph//custom_config_files/grafana..

Found those files with 'find / -name *grafana*'.


Op 09-11-2023 09:53 CET schreef Eugen Block :


What doesn't work exactly? For me it did...

Zitat von Sake Ceph :

> To bad, that doesn't work :(
>> Op 09-11-2023 09:07 CET schreef Sake Ceph :
>>
>>
>> Hi,
>>
>> Well to get promtail working with Loki, you need to setup a
>> password in Grafana.
>> But promtail wasn't working with the 17.2.6 release, the URL was
>> set to containers.local. So I stopped using it, but forgot to click
>> on save in KeePass :(
>>
>> I didn't configure anything special in Grafana, the default
>> dashboards are great! So a wipe isn't a problem, it's what I want.
>>
>> Best regards,
>> Sake
>> > Op 09-11-2023 08:19 CET schreef Eugen Block :
>> >
>> >
>> > Hi,
>> > you mean you forgot your password? You can remove the service with
>> > 'ceph orch rm grafana', then re-apply your grafana.yaml containing the
>> > initial password. Note that this would remove all of the grafana
>> > configs or custom dashboards etc., you would have to reconfigure them.
>> > So before doing that you should verify that this is actually what
>> > you're looking for. Not sure what this has to do with Loki though.
>> >
>> > Eugen
>> >
>> > Zitat von Sake Ceph :
>> >
>> > > I configured a password for Grafana because I want to use Loki. I
>> > > used the spec parameter initial_admin_password and this  
works fine for a
>> > > staging environment, where I never tried to used Grafana  
with a password

>> > > for Loki. 
>> > > 
>> > >Using the username admin with the configured password gives a
>> > > credentials error on environment where I tried to use Grafana
>> with Loki in
>> > > the past (with 17.2.6 of Ceph/cephadm). I changed the password
>> in the past
>> > > within Grafana, but how can I overwrite this now? Or is  
there a way to

>> > > cleanup all Grafana files? 
>> > > 
>> > >Best regards, 
>> > >Sake
>> >
>> >
>> > ___
>> > ceph-users mailing list -- ceph-users@ceph.io
>> > To unsubscribe send an email to ceph-users-le...@ceph.io
>> ___
>> ceph-users mailing list -- ceph-users@ceph.io
>> To unsubscribe send an email to ceph-users-le...@ceph.io


___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Sake Ceph
I tried everything at this point, even waited a hour, still no luck. Got it 1 
time accidentally working, but with a placeholder for a password. Tried with 
correct password, nothing and trying again with the placeholder didn't work 
anymore. 

So I thought to switch the manager, maybe something is not right (shouldn't 
happen). But applying the Grafana spec on the other mgr, I get the following 
error in the log files:

services/grafana/ceph-dashboard.yml.j2 Traceback (most recent call last): File 
"/usr/share/ceph/mgr/cephadm/template.py",
line 40, in render template = self.env.get_template(name) File 
"/lib/python3.6/site-packages/jinja2/environment.py", 
ine 830, in get_template return self._load_template(name, 
self.make_globals(globals)) File 
"/lib/python3.6/site-packages/jinja2/environment.py",
line 804, in _load_template template = self.loader.load(self, name, globals) 
File "/lib/python3.6/site-packages/jinja2/loaders.py",
line 113, in load source, filename, uptodate = self.get_source(environment, 
name) File "/lib/python3.6/site-packages/jinja2/loaders.py",
line 235, in get_source raise TemplateNotFound(template) 
jinja2.exceptions.TemplateNotFound: services/grafana/ceph-dashboard.yml.j2

During handling of the above exception, another exception occurred: Traceback 
(most recent call last): File "/usr/share/ceph/mgr/cephadm/serve.py",
line 1002, in _check_daemons self.mgr._daemon_action(daemon_spec, 
action=action) File "/usr/share/ceph/mgr/cephadm/module.py",
line 2131, in _daemon_action 
daemon_spec.daemon_type)].prepare_create(daemon_spec) File 
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 27, in prepare_create daemon_spec.final_config, daemon_spec.deps = 
self.generate_config(daemon_spec) File 
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 54, in generate_config 'services/grafana/ceph-dashboard.yml.j2', {'hosts': 
prom_services, 'loki_host': loki_host}) File 
"/usr/share/ceph/mgr/cephadm/template.py",
line 109, in render return self.engine.render(name, ctx) File 
"/usr/share/ceph/mgr/cephadm/template.py",
line 47, in render raise TemplateNotFoundError(e.message) 
cephadm.template.TemplateNotFoundError: services/grafana/ceph-dashboard.yml.j2

I use the following config for Grafana, nothing special. 

service_type: grafana
service_name: grafana
placement:
  count: 2
  label: grafana
extra_container_args:
- -v=/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro
- -v=/opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro
spec:
  anonymous_access: true
  initial_admin_password: aPassw0rdWithSpecialChars-#
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Eugen Block
I just tried it on a 17.2.6 test cluster, although I don't have a  
stack trace the complicated password doesn't seem to be applied (don't  
know why yet). But since it's an "initial" password you can choose  
something simple like "admin", and during the first login you are  
asked to change it anyway. And then you can choose your more  
complicated password, I just verified that.


Zitat von Sake Ceph :

I tried everything at this point, even waited a hour, still no luck.  
Got it 1 time accidentally working, but with a placeholder for a  
password. Tried with correct password, nothing and trying again with  
the placeholder didn't work anymore.


So I thought to switch the manager, maybe something is not right  
(shouldn't happen). But applying the Grafana spec on the other mgr,  
I get the following error in the log files:


services/grafana/ceph-dashboard.yml.j2 Traceback (most recent call  
last): File "/usr/share/ceph/mgr/cephadm/template.py",
line 40, in render template = self.env.get_template(name) File  
"/lib/python3.6/site-packages/jinja2/environment.py",
ine 830, in get_template return self._load_template(name,  
self.make_globals(globals)) File  
"/lib/python3.6/site-packages/jinja2/environment.py",
line 804, in _load_template template = self.loader.load(self, name,  
globals) File "/lib/python3.6/site-packages/jinja2/loaders.py",
line 113, in load source, filename, uptodate =  
self.get_source(environment, name) File  
"/lib/python3.6/site-packages/jinja2/loaders.py",
line 235, in get_source raise TemplateNotFound(template)  
jinja2.exceptions.TemplateNotFound:  
services/grafana/ceph-dashboard.yml.j2


During handling of the above exception, another exception occurred:  
Traceback (most recent call last): File  
"/usr/share/ceph/mgr/cephadm/serve.py",
line 1002, in _check_daemons self.mgr._daemon_action(daemon_spec,  
action=action) File "/usr/share/ceph/mgr/cephadm/module.py",
line 2131, in _daemon_action  
daemon_spec.daemon_type)].prepare_create(daemon_spec) File  
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 27, in prepare_create daemon_spec.final_config,  
daemon_spec.deps = self.generate_config(daemon_spec) File  
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 54, in generate_config  
'services/grafana/ceph-dashboard.yml.j2', {'hosts': prom_services,  
'loki_host': loki_host}) File  
"/usr/share/ceph/mgr/cephadm/template.py",
line 109, in render return self.engine.render(name, ctx) File  
"/usr/share/ceph/mgr/cephadm/template.py",
line 47, in render raise TemplateNotFoundError(e.message)  
cephadm.template.TemplateNotFoundError:  
services/grafana/ceph-dashboard.yml.j2


I use the following config for Grafana, nothing special.

service_type: grafana
service_name: grafana
placement:
  count: 2
  label: grafana
extra_container_args:
- -v=/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro
- -v=/opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro
spec:
  anonymous_access: true
  initial_admin_password: aPassw0rdWithSpecialChars-#



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-09 Thread Eugen Block
It's the '#' character, everything after (including '#' itself) is cut  
off. I tried with single and double quotes which also failed. But as I  
already said, use a simple password and then change it within grafana.  
That way you also don't have the actual password lying around in clear  
text in a yaml file...


Zitat von Eugen Block :

I just tried it on a 17.2.6 test cluster, although I don't have a  
stack trace the complicated password doesn't seem to be applied  
(don't know why yet). But since it's an "initial" password you can  
choose something simple like "admin", and during the first login you  
are asked to change it anyway. And then you can choose your more  
complicated password, I just verified that.


Zitat von Sake Ceph :

I tried everything at this point, even waited a hour, still no  
luck. Got it 1 time accidentally working, but with a placeholder  
for a password. Tried with correct password, nothing and trying  
again with the placeholder didn't work anymore.


So I thought to switch the manager, maybe something is not right  
(shouldn't happen). But applying the Grafana spec on the other mgr,  
I get the following error in the log files:


services/grafana/ceph-dashboard.yml.j2 Traceback (most recent call  
last): File "/usr/share/ceph/mgr/cephadm/template.py",
line 40, in render template = self.env.get_template(name) File  
"/lib/python3.6/site-packages/jinja2/environment.py",
ine 830, in get_template return self._load_template(name,  
self.make_globals(globals)) File  
"/lib/python3.6/site-packages/jinja2/environment.py",
line 804, in _load_template template = self.loader.load(self, name,  
globals) File "/lib/python3.6/site-packages/jinja2/loaders.py",
line 113, in load source, filename, uptodate =  
self.get_source(environment, name) File  
"/lib/python3.6/site-packages/jinja2/loaders.py",
line 235, in get_source raise TemplateNotFound(template)  
jinja2.exceptions.TemplateNotFound:  
services/grafana/ceph-dashboard.yml.j2


During handling of the above exception, another exception occurred:  
Traceback (most recent call last): File  
"/usr/share/ceph/mgr/cephadm/serve.py",
line 1002, in _check_daemons self.mgr._daemon_action(daemon_spec,  
action=action) File "/usr/share/ceph/mgr/cephadm/module.py",
line 2131, in _daemon_action  
daemon_spec.daemon_type)].prepare_create(daemon_spec) File  
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 27, in prepare_create daemon_spec.final_config,  
daemon_spec.deps = self.generate_config(daemon_spec) File  
"/usr/share/ceph/mgr/cephadm/services/monitoring.py",
line 54, in generate_config  
'services/grafana/ceph-dashboard.yml.j2', {'hosts': prom_services,  
'loki_host': loki_host}) File  
"/usr/share/ceph/mgr/cephadm/template.py",
line 109, in render return self.engine.render(name, ctx) File  
"/usr/share/ceph/mgr/cephadm/template.py",
line 47, in render raise TemplateNotFoundError(e.message)  
cephadm.template.TemplateNotFoundError:  
services/grafana/ceph-dashboard.yml.j2


I use the following config for Grafana, nothing special.

service_type: grafana
service_name: grafana
placement:
 count: 2
 label: grafana
extra_container_args:
- -v=/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro
- -v=/opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro
spec:
 anonymous_access: true
 initial_admin_password: aPassw0rdWithSpecialChars-#



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Help needed with Grafana password

2023-11-10 Thread Sake Ceph
Thank you Eugen! This worked :) 
> Op 09-11-2023 14:55 CET schreef Eugen Block :
> 
>  
> It's the '#' character, everything after (including '#' itself) is cut  
> off. I tried with single and double quotes which also failed. But as I  
> already said, use a simple password and then change it within grafana.  
> That way you also don't have the actual password lying around in clear  
> text in a yaml file...
> 
> Zitat von Eugen Block :
> 
> > I just tried it on a 17.2.6 test cluster, although I don't have a  
> > stack trace the complicated password doesn't seem to be applied  
> > (don't know why yet). But since it's an "initial" password you can  
> > choose something simple like "admin", and during the first login you  
> > are asked to change it anyway. And then you can choose your more  
> > complicated password, I just verified that.
> >
> > Zitat von Sake Ceph :
> >
> >> I tried everything at this point, even waited a hour, still no  
> >> luck. Got it 1 time accidentally working, but with a placeholder  
> >> for a password. Tried with correct password, nothing and trying  
> >> again with the placeholder didn't work anymore.
> >>
> >> So I thought to switch the manager, maybe something is not right  
> >> (shouldn't happen). But applying the Grafana spec on the other mgr,  
> >> I get the following error in the log files:
> >>
> >> services/grafana/ceph-dashboard.yml.j2 Traceback (most recent call  
> >> last): File "/usr/share/ceph/mgr/cephadm/template.py",
> >> line 40, in render template = self.env.get_template(name) File  
> >> "/lib/python3.6/site-packages/jinja2/environment.py",
> >> ine 830, in get_template return self._load_template(name,  
> >> self.make_globals(globals)) File  
> >> "/lib/python3.6/site-packages/jinja2/environment.py",
> >> line 804, in _load_template template = self.loader.load(self, name,  
> >> globals) File "/lib/python3.6/site-packages/jinja2/loaders.py",
> >> line 113, in load source, filename, uptodate =  
> >> self.get_source(environment, name) File  
> >> "/lib/python3.6/site-packages/jinja2/loaders.py",
> >> line 235, in get_source raise TemplateNotFound(template)  
> >> jinja2.exceptions.TemplateNotFound:  
> >> services/grafana/ceph-dashboard.yml.j2
> >>
> >> During handling of the above exception, another exception occurred:  
> >> Traceback (most recent call last): File  
> >> "/usr/share/ceph/mgr/cephadm/serve.py",
> >> line 1002, in _check_daemons self.mgr._daemon_action(daemon_spec,  
> >> action=action) File "/usr/share/ceph/mgr/cephadm/module.py",
> >> line 2131, in _daemon_action  
> >> daemon_spec.daemon_type)].prepare_create(daemon_spec) File  
> >> "/usr/share/ceph/mgr/cephadm/services/monitoring.py",
> >> line 27, in prepare_create daemon_spec.final_config,  
> >> daemon_spec.deps = self.generate_config(daemon_spec) File  
> >> "/usr/share/ceph/mgr/cephadm/services/monitoring.py",
> >> line 54, in generate_config  
> >> 'services/grafana/ceph-dashboard.yml.j2', {'hosts': prom_services,  
> >> 'loki_host': loki_host}) File  
> >> "/usr/share/ceph/mgr/cephadm/template.py",
> >> line 109, in render return self.engine.render(name, ctx) File  
> >> "/usr/share/ceph/mgr/cephadm/template.py",
> >> line 47, in render raise TemplateNotFoundError(e.message)  
> >> cephadm.template.TemplateNotFoundError:  
> >> services/grafana/ceph-dashboard.yml.j2
> >>
> >> I use the following config for Grafana, nothing special.
> >>
> >> service_type: grafana
> >> service_name: grafana
> >> placement:
> >>  count: 2
> >>  label: grafana
> >> extra_container_args:
> >> - -v=/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro
> >> - -v=/opt/ceph_cert/host.key:/etc/grafana/certs/cert_key:ro
> >> spec:
> >>  anonymous_access: true
> >>  initial_admin_password: aPassw0rdWithSpecialChars-#
> 
> 
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io