Thank you Eugen! This worked :) 
> Op 09-11-2023 14:55 CET schreef Eugen Block <ebl...@nde.ag>:
> 
>  
> 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 <ebl...@nde.ag>:
> 
> > 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 <c...@paulusma.eu>:
> >
> >> 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

Reply via email to