If password changed, action to retrieve it will return the old one

Bug #1835093 reported by Alvaro Uria
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grafana Charm
Fix Released
Medium
Joe Guo

Bug Description

# Use case:
juju deploy grafana
juju run-action --wait grafana/0 get-admin-password
# PASS1 retrieved
juju config grafana admin_password=PASS2
juju run-action --wait grafana/0 get-admin-password
# PASS1 retrieved, but does not work (PASS2 should be retrieved)

# Expected
Return PASS2

# Fix
When admin_password is changed, charm will do so via Grafana's API. However, charm doesn't update the stored password in the unitdata db. Alternatively, when Juju config has a password configured, the stored password (in unitdata) should be removed.

Alvaro Uria (aluria)
Changed in grafana-charm:
importance: Undecided → Medium
status: New → Confirmed
Joe Guo (guoqiao)
Changed in charm-grafana:
status: Confirmed → In Progress
assignee: nobody → Joe Guo (guoqiao)
Joe Guo (guoqiao)
Changed in charm-grafana:
status: In Progress → Fix Committed
milestone: none → 20.05
Jeremy Lounder (jldev)
Changed in charm-grafana:
status: Fix Committed → Fix Released
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.