Copying Grafana home dashboard file fails with permission denied
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| kolla-ansible |
Fix Released
|
Medium
|
Unassigned | ||
| Victoria |
Fix Released
|
Undecided
|
Unassigned | ||
| Wallaby |
Fix Released
|
Undecided
|
Unassigned | ||
| Xena |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
**Bug Report**
What happened:
Deploying a custom home dashboard file fails, because the copy job is not using privilege escalation.
What you expected to happen:
The custom dashboard file should be copied to the destination host.
How to reproduce it (minimal and precise):
* Set a custom dashboard file to {{ node_config_
* Run kolla-ansible
```
TASK [grafana : Copying over grafana home dashboard if exists] *******
2021-10-11 13:56:00,229 INFO ansible: TASK [grafana : Copying over grafana home dashboard if exists] *******
fatal: [control1]: FAILED! => {"msg": "Failed to get information on remote file (/etc/kolla/
2021-10-11 13:56:00,961 ERROR ansible: fatal: [control1]: FAILED! => {"msg": "Failed to get information on remote file (/etc/kolla/
```
A PR has been created: https:/
| Changed in kolla-ansible: | |
| importance: | Undecided → Medium |
| status: | New → Triaged |
| Changed in kolla-ansible: | |
| status: | Triaged → In Progress |

Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/813185 /opendev. org/openstack/ kolla-ansible/ commit/ 82b0e095a56a970 7268f8348429258 9902ab1c8a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 82b0e095a56a970 7268f8348429258 9902ab1c8a
Author: Uwe Grawert <email address hidden>
Date: Fri Oct 8 12:15:36 2021 +0200
Grafana: Run priviliged when copying home dashboard file
The copy job for the grafana home dashboard file needs to run
priviliged, otherwise permission denied error occurs.
Closes-Bug: #1947710
Change-Id: Ib15e961e5193af 55e45a443305a96 667295f3cb7