Grafana 5.1 database fix

Bug #1784803 reported by Mario Bris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grafana Charm
Won't Fix
Medium
Joe Guo

Bug Description

New grafana 5.1 will break GUI if grafana.db does not define json_data as empty string
json_data: "{}"

https://git.launchpad.net/~brism/grafana-charm/

Tags: 4010 sts
Ante Karamatić (ivoks)
tags: added: 4010
Revision history for this message
Wouter van Bommel (woutervb) wrote :

Please add more detail on what exactly breaks and how to reproduce

Changed in charm-grafana:
status: New → Incomplete
Revision history for this message
Mario Bris (brism) wrote :

We have replaced charms with other solution already but here's the fix https://git.launchpad.net/~brism/grafana-charm/commit/?id=40ed5ea081767c1f0f749feb3a7c1c586623ba4d

Revision history for this message
Joe Guo (guoqiao) wrote :

I will change this to use API instead of SQL, so the issue will be fixed by the way.

Changed in charm-grafana:
status: Incomplete → Triaged
importance: Undecided → Medium
assignee: nobody → Joe Guo (guoqiao)
Bui Hong Ha (telescreen)
tags: added: sts
Revision history for this message
Bui Hong Ha (telescreen) wrote :

It looks like grafana 6.7 also requires json_data to be defined as {} instead of an empty string.
In current charm revision, json_data only added as {} if the revision is 7 while The latest/stable channels of grafana snap is sill in 6.7. Therefore, prometheus data source will be failed to added.

https://pastebin.ubuntu.com/p/YnwPpHPD7m/

Eric Chen (eric-chen)
Changed in charm-grafana:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.