Backups fail if port is changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
High
|
Matthew Ruffell |
Bug Description
Changing the default port from 3000 will cause the backup script to fail:
root@grafana-
Traceback (most recent call last):
File "/usr/lib/
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/lib/
raise err
File "/usr/lib/
sock.
ConnectionRefus
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
chunked=
File "/usr/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
conn = self._new_conn()
File "/usr/lib/
self, "Failed to establish a new connection: %s" % e)
urllib3.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
timeout=timeout
File "/usr/lib/
_stacktrace
File "/usr/lib/
raise MaxRetryError(
urllib3.
t at 0x7fe4aa961e10>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/
main(args)
File "/usr/local/
org_name = requests.
File "/usr/lib/
return request('get', url, params=params, **kwargs)
File "/usr/lib/
return session.
File "/usr/lib/
resp = self.send(prep, **send_kwargs)
File "/usr/lib/
r = adapter.
File "/usr/lib/
raise ConnectionError(e, request=request)
requests.
ject at 0x7fe4aa961e10>: Failed to establish a new connection: [Errno 111] Connection refused',))
This seems to be caused from https:/
def main(args):
base_url = 'http://
Changing the port in base_url to the updated port does resolve the error.
Related branches
- James Hebden (community): Approve
- Chris Johnston (community): Approve
- Drew Freiberger (community): Approve
- Paul Goins: Needs Fixing
-
Diff: 145 lines (+71/-4)4 files modifiedsrc/files/dashboards_backup (+2/-1)
src/reactive/grafana.py (+5/-2)
src/templates/juju-dashboards-backup.j2 (+1/-1)
src/tests/functional/tests/test_grafana.py (+63/-0)
tags: | added: sts |
description: | updated |
Changed in charm-grafana: | |
status: | New → In Progress |
assignee: | nobody → Matthew Ruffell (mruffell) |
Changed in charm-grafana: | |
importance: | Undecided → High |
Changed in charm-grafana: | |
status: | In Progress → Fix Committed |
milestone: | none → 20.10 |
The fix appears to be released in grafana charm revision 38. /jaas.ai/ grafana/ 38
https:/