upgrading from rev 39 to rev 51 failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
Critical
|
Xav Paice |
Bug Description
When upgrading rev 39 to rev 51, I faced issue like below [1]
test bundle is [2], after deploying them
juju upgrade-charm grafana
I can see the issue.
[1]
https:/
[2]
- bundles
series: bionic
applications:
elasticsearch:
charm: cs:elasticsearch-51
num_units: 1
to:
- "2"
filebeat:
charm: cs:filebeat-33
grafana:
charm: cs:grafana-39
num_units: 1
to:
- "1"
logrotated:
charm: cs:~logrotate-
ntp:
charm: cs:ntp-47
prometheus2:
charm: cs:prometheus2-25
num_units: 1
to:
- "0"
machines:
"0": {}
"1": {}
"2": {}
relations:
- - grafana:
- prometheus2:
- - grafana:juju-info
- ntp:juju-info
- - grafana:juju-info
- filebeat:beats-host
- - logrotated:
- grafana:juju-info
- - elasticsearch:
- filebeat:beats-host
- - filebeat:
- elasticsearch:
Related branches
- Alvaro Uria (community): Approve
- Andrea Ieri: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Zachary Zehring (community): Approve
- BootStack Reviewers: Pending requested
-
Diff: 156 lines (+78/-13)2 files modifiedsrc/reactive/grafana.py (+28/-13)
src/tests/unit/test_grafana.py (+50/-0)
tags: | added: sts |
summary: |
- upgrading from 39 to 51 failed. + upgrading from rev 39 to rev 51 failed. |
description: | updated |
Changed in charm-grafana: | |
status: | In Progress → Fix Committed |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |
Reproduced on Bionic. Xenial works fine.
Appears to be an issue starting Grafana: b/0.juju- log server.go:327 Reactive main running for hook upgrade-charm b/0.juju- log server.go:327 Unable to find implementation for relation: requires of register- application b/0.juju- log server.go:327 Initializing Snap Layer b/0.juju- log server.go:327 Invoking reactive handler: reactive/ snap.py: 117:upgrade_ charm b/0.upgrade- charm logger.go:60 All snaps up to date. b/0.juju- log server.go:327 Invoking reactive handler: reactive/ tls_client. py:186: remove_ states b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:652: wipe_nrpe_ checks b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:1186: check_adminuser b/0.juju- log server.go:327 Checking for existing users, loop 1 of 6 b/0.juju- log server.go:327 check_adminuser ::sqlite3. OperationError: no such table: user b/0.juju- log server.go:327 Invoking reactive handler: hooks/relations /tls-certificat es/requires. py:109: broken: certificates b/0.juju- log server.go:327 Invoking reactive handler: hooks/relations /http/provides. py:15:broken: website uniter. operation runhook.go:152 ran "upgrade-charm" hook (via explicit, bespoke hook script) b/0.juju- log server.go:327 Reactive main running for hook config-changed b/0.juju- log server.go:327 Unable to find implementation for relation: requires of register- application b/0.juju- log server.go:327 Initializing Snap Layer b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:323: config_ changed b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:483: setup_grafana b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:652: wipe_nrpe_ checks b/0.juju- log server.go:327 Invoking reactive handler: hooks/relations /tls-certificat es/requires. py:109: broken: certificates b/0.juju- log server.go:327 Invoking reactive handler: hooks/relations /http/provides. py:15:broken: website b/0.juju- log server.go:327 Invoking reactive handler: reactive/ grafana. py:585: restart_ grafana b/0.juju- log server.go:327 Starting grafana-server b/0.juju- log server.go:327 Retrying '_block_ until_port_ open' 10 more times (delay=2)
2021-10-19 21:23:54 INFO unit.grafana-
2021-10-19 21:23:55 ERROR unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:23:56 WARNING unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:23:56 INFO unit.grafana-
2021-10-19 21:24:01 INFO unit.grafana-
2021-10-19 21:24:01 INFO unit.grafana-
2021-10-19 21:24:01 INFO unit.grafana-
2021-10-19 21:24:02 INFO juju.worker.
2021-10-19 21:24:02 INFO juju.worker.uniter resolver.go:154 found queued "config-changed" hook
2021-10-19 21:24:03 INFO unit.grafana-
2021-10-19 21:24:03 ERROR unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-19 21:24:04 INFO unit.grafana-
2021-10-...