dashboards-relation-changed fails with grafana 7/stable snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
High
|
Chi Wai CHAN |
Bug Description
When deploying Grafana for LMA, it deploys just fine.
However when an Openstack deployment is being related to the same Grafana, the unit goes into error with the hook dashboards-
The environment :
* MaaS 3.2
* Juju 2.9.38
* Grafana running on Focal with 7/stable snap channel 7.5.17
This is clearly related to the release of 7.5.17 last week on 7/stable (related to #1995279). Using for example, the channel 20.04/stable of the snap, suddenly all the hooks seems to complete properly.
However for security reasons on Grafana 7.2.0, this is not an appropriate workaround.
At first glance, it looks like the charm is unable to use correctly the API from Grafana on "http://
#
# versions of Grafana's snap
#
Current version of Grafana :
ubuntu@grafana-1:~$ snap info grafana
name: grafana
summary: feature rich metrics dashboard and graph editor
publisher: Canonical✓
...
snap-id: ehNKbg99zAxHVPC
tracking: 7/stable
refresh-date: today at 08:23 UTC
channels:
latest/stable: 6.7.4 2020-06-04 (36) 56MB -
latest/candidate: 6.7.4 2023-01-12 (36) 56MB -
latest/beta: 6.7.4 2023-01-12 (36) 56MB -
latest/edge: 6.7.4 2023-01-12 (36) 56MB -
rock/stable: –
rock/candidate: –
rock/beta: 8.2.7 2022-08-10 (494) 138MB -
rock/edge: 9.2.1 2022-10-20 (502) 102MB -
20.04/stable: 7.2.0 2021-03-18 (465) 111MB -
20.04/candidate: ↑
20.04/beta: ↑
20.04/edge: 7.2.0 2021-03-24 (475) 110MB -
7/stable: 7.5.17 2023-02-14 (531) 61MB -
7/candidate: 7.5.17 2023-01-14 (531) 61MB -
7/beta: 7.5.17 2023-01-14 (531) 61MB -
7/edge: 7.5.17 2023-01-13 (531) 61MB -
6/stable: 6.7.4 2020-06-04 (36) 56MB -
6/candidate: 6.7.4 2020-06-04 (36) 56MB -
6/beta: 6.7.4 2020-06-04 (36) 56MB -
6/edge: 6.7.4 2020-06-09 (36) 56MB -
5/stable: 5.0.0 2020-05-19 (7) 33MB -
5/candidate: ↑
5/beta: ↑
5/edge: ↑
installed: 7.5.17 (531) 61MB -
#
# Traceback of the error encountered
#
2023-02-20 10:58:18 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/
success, reason = import_
File "/var/lib/
dashboard[
File "/var/lib/
result = create_
File "/var/lib/
r.raise_
File "/var/lib/
raise HTTPError(
requests.
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 WARNING unit.grafana/
...
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 WARNING unit.grafana/
2023-02-20 10:58:18 ERROR juju.worker.
Related branches
- Ramesh Sattaru (community): Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 40 lines (+3/-5)1 file modifiedsrc/lib/charms/layer/grafana.py (+3/-5)
tags: | added: bseng-921 |
Changed in charm-grafana: | |
status: | New → Confirmed |
assignee: | nobody → Chi Wai CHAN (raychan96) |
Changed in charm-grafana: | |
milestone: | none → 23.01 |
importance: | Undecided → High |
Changed in charm-grafana: | |
status: | Confirmed → Fix Released |
subscribed ~field-high
It has an impact on Prodstack6 deployment and a deployment for another customer.
But most likely it concerns any new deployment of LMA for Openstack.