With LDAP enabled and snap install, templating cannot use the'grafana' user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When installed from snap, and attempting to configure LDAP, we receive a traceback:
2022-03-13 22:01:10 INFO unit.grafana/
2022-03-13 22:01:10 INFO unit.grafana/
2022-03-13 22:01:10 ERROR unit.grafana/
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
render_
File "lib/charms/
perms=0o600,
File "/var/lib/
host.
File "/var/lib/
uid = pwd.getpwnam(
KeyError: "getpwnam(): name not found: 'grafana'"
There is no 'grafana' user when we install from snap.
Related branches
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- BootStack Reviewers: Pending requested
- BootStack Reviewers: Pending requested
-
Diff: 65 lines (+22/-3)2 files modifiedsrc/lib/charms/layer/grafana.py (+21/-2)
src/tests/functional/tests/tests.yaml (+1/-1)
Changed in charm-grafana: | |
status: | New → Fix Committed |
Changed in charm-grafana: | |
milestone: | none → 21.10 |
milestone: | 21.10 → 22.10 |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |
Changed in charm-grafana: | |
status: | Fix Released → Fix Committed |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |