[3.0-rc2 / 2.9.36] juju-lint stuck executing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Critical
|
Heather Lanigan | ||
charm-juju-lint |
Fix Released
|
Medium
|
Gabriel Cocenza |
Bug Description
Testrun https:/
```
App Version Status Scale Charm Channel Rev Exposed Message
apache2 active 1 apache2 stable 38 yes Unit is ready
canonical-livepatch active 9 canonical-livepatch stable 48 no Running kernel 5.15.0-
elasticsearch 6.8.23 active 3 elasticsearch candidate 66 no Unit is ready
filebeat 6.8.23 active 9 filebeat stable 38 no Filebeat ready.
grafana active 1 grafana stable 59 yes Ready
graylog 3.3.16-1 active 1 graylog stable 59 no Ready with: filebeat, elasticsearch, mongodb
juju-lint active 1 juju-lint stable 6 no Unit is ready
mongodb-graylog 3.6.8 active 1 mongodb stable 75 no Unit is ready
ntp 3.5 active 9 ntp stable 50 no chrony: Ready
prometheus active 1 prometheus2 stable 33 no Ready
telegraf active 9 telegraf stable 62 no Monitoring elasticsearch/1 (source version/commit d208a64)
Unit Workload Agent Machine Public address Ports Message
apache2/0* active idle 0 54.224.142.195 Unit is ready
canonical-
filebeat/1 active idle 54.224.142.195 Filebeat ready.
ntp/1 active idle 54.224.142.195 123/udp chrony: Ready
telegraf/1 active idle 54.224.142.195 9103/tcp Monitoring apache2/0 (source version/commit d208a64)
elasticsearch/0 active idle 1 54.198.106.29 9200/tcp Unit is ready
canonical-
filebeat/2 active idle 54.198.106.29 Filebeat ready.
ntp/2 active idle 54.198.106.29 123/udp chrony: Ready
telegraf/2 active idle 54.198.106.29 9103/tcp Monitoring elasticsearch/0 (source version/commit d208a64)
elasticsearch/1* active idle 2 52.90.226.82 9200/tcp Unit is ready
canonical-
filebeat/0* active idle 52.90.226.82 Filebeat ready.
ntp/0* active idle 52.90.226.82 123/udp chrony: Ready
telegraf/0* active idle 52.90.226.82 9103/tcp Monitoring elasticsearch/1 (source version/commit d208a64)
elasticsearch/2 active idle 3 54.81.113.57 9200/tcp Unit is ready
canonical-
filebeat/3 active idle 54.81.113.57 Filebeat ready.
ntp/3 active idle 54.81.113.57 123/udp chrony: Ready
telegraf/3 active idle 54.81.113.57 9103/tcp Monitoring elasticsearch/2 (source version/commit d208a64)
grafana/0* active idle 4 54.173.91.75 3000/tcp Ready
canonical-
filebeat/7 active idle 54.173.91.75 Filebeat ready.
ntp/7 active idle 54.173.91.75 123/udp chrony: Ready
telegraf/7 active idle 54.173.91.75 9103/tcp Monitoring grafana/0 (source version/commit d208a64)
graylog/0* active idle 5 3.91.13.20 5044,9000/tcp Ready with: filebeat, elasticsearch, mongodb
canonical-
filebeat/6 active idle 3.91.13.20 Filebeat ready.
ntp/5 active idle 3.91.13.20 123/udp chrony: Ready
telegraf/5 active idle 3.91.13.20 9103/tcp Monitoring graylog/0 (source version/commit d208a64)
juju-lint/0* active executing 6 54.146.51.220 (config-changed) Unit is ready
canonical-
filebeat/4 active idle 54.146.51.220 Filebeat ready.
ntp/4 active idle 54.146.51.220 123/udp chrony: Ready
telegraf/4 active idle 54.146.51.220 9103/tcp Monitoring juju-lint/0 (source version/commit d208a64)
mongodb-graylog/0* active idle 7 3.87.157.136 27017,27019,
canonical-
filebeat/5 active idle 3.87.157.136 Filebeat ready.
ntp/6 active idle 3.87.157.136 123/udp chrony: Ready
telegraf/6 active idle 3.87.157.136 9103/tcp Monitoring mongodb-graylog/0 (source version/commit d208a64)
prometheus/0* active idle 8 54.92.140.189 9090,12321/tcp Ready
canonical-
filebeat/8 active idle 54.92.140.189 Filebeat ready.
ntp/8 active idle 54.92.140.189 123/udp chrony: Ready
telegraf/8 active idle 54.92.140.189 9103/tcp Monitoring prometheus/0 (source version/commit d208a64)
Machine State Address Inst id Base AZ Message
0 started 54.224.142.195 i-02d1a96e1005b4092 ubuntu:20.04 us-east-1c running
1 started 54.198.106.29 i-03f17eab6061298a7 ubuntu:20.04 us-east-1c running
2 started 52.90.226.82 i-0df579fab5115a6a5 ubuntu:20.04 us-east-1c running
3 started 54.81.113.57 i-0d7b15c74add6832b ubuntu:20.04 us-east-1c running
4 started 54.173.91.75 i-005b792bd9f7b2c7f ubuntu:20.04 us-east-1c running
5 started 3.91.13.20 i-0f87ddc05aa214c5e ubuntu:20.04 us-east-1c running
6 started 54.146.51.220 i-077aabcb44180d678 ubuntu:20.04 us-east-1c running
7 started 3.87.157.136 i-004e8efaf4cfcb371 ubuntu:20.04 us-east-1c running
8 started 54.92.140.189 i-0a716c52d306ee8c0 ubuntu:20.04 us-east-1c running
```
We saw this in earlier testruns of 3.0 as well, also on the juju-lint charm. This could be a bug in juju-lint bug I'm opening it here first.
In the juju-lint debug log we only see:
```
2022-10-18 15:46:26 DEBUG juju.worker.
2022-10-18 15:50:31 DEBUG juju.worker.
2022-10-18 15:55:24 DEBUG juju.worker.
2022-10-18 15:59:31 DEBUG juju.worker.
2022-10-18 16:03:47 DEBUG juju.worker.
2022-10-18 16:07:57 DEBUG juju.worker.
2022-10-18 16:13:17 DEBUG juju.worker.
2022-10-18 16:19:15 DEBUG juju.worker.
2022-10-18 16:24:04 DEBUG juju.worker.
2022-10-18 16:29:13 DEBUG juju.worker.
2022-10-18 16:33:39 DEBUG juju.worker.
2022-10-18 16:37:42 DEBUG juju.worker.
2022-10-18 16:43:18 DEBUG juju.worker.
2022-10-18 16:47:52 DEBUG juju.worker.
2022-10-18 16:51:57 DEBUG juju.worker.
2022-10-18 16:56:37 DEBUG juju.worker.
```
So it looks like the `executing` status is incorrect.
Logs and configs can be found here:
https:/
Related branches
- Mert Kirpici: Approve
- Erhan Sunar: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 162 lines (+51/-13)4 files modifiedlib/lib_jujulint.py (+15/-6)
scripts/templates/auto_lint.py (+2/-2)
tests/unit/test_auto_lint.py (+4/-4)
tests/unit/test_charm.py (+30/-1)
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 3.0-rc3 |
Changed in juju: | |
assignee: | nobody → Heather Lanigan (hmlanigan) |
Changed in charm-juju-lint: | |
status: | New → In Progress |
assignee: | nobody → Gabriel Angelo Sgarbi Cocenza (gabrielcocenza) |
importance: | Undecided → Medium |
Changed in juju: | |
milestone: | 3.0-rc3 → 3.0.0 |
Changed in juju: | |
status: | New → Invalid |
Changed in charm-juju-lint: | |
status: | In Progress → Fix Committed |
tags: | added: cdo-qa |
Changed in charm-juju-lint: | |
milestone: | none → 23.01 |
Changed in charm-juju-lint: | |
status: | Fix Committed → Fix Released |
Changed in charm-juju-lint: | |
status: | Fix Released → Fix Committed |
Changed in charm-juju-lint: | |
status: | Fix Committed → Fix Released |
From the logs, looks like the charm is stuck in the config changed hook:
To start the hook executution: uniter. operation executor.go:135 preparing operation "run config-changed hook" for juju-lint/0 uniter. operation executor.go:135 executing operation "run config-changed hook" for juju-lint/0
2022-10-18 13:58:37 DEBUG juju.machinelock machinelock.go:176 machine lock "machine-lock" acquired for juju-lint/0 uniter (run config-changed hook)
2022-10-18 13:58:37 DEBUG juju.worker.
219 2022-10-18 13:58:37 DEBUG juju.worker.
Usually when finished: uniter. remotestate watcher.go:650 got config change for juju-lint/0: ok=true, hashes= [b9faa1f948a0e1 b6cbb819711cc8f 94a4c0fc21c0dd5 31b97 610cce62609fde9] uniter. operation runhook.go:173 ran "config-changed" hook (via hook dispatching script: dispatch) uniter. operation executor.go:135 committing operation "run config-changed hook" for juju-lint/0 juju/machine- lock.log" with max size 10 MB and max backups 5 uniter. operation executor.go:124 lock released for juju-lint/0
229 2022-10-18 13:58:37 DEBUG juju.worker.
230 2022-10-18 13:58:37 INFO juju.worker.
231 2022-10-18 13:58:37 DEBUG juju.worker.
232 2022-10-18 13:58:37 DEBUG juju.machinelock machinelock.go:206 created rotating log file "/var/log/
233 2022-10-18 13:58:37 DEBUG juju.machinelock machinelock.go:190 machine lock "machine-lock" released for juju-lint/0 uniter (run config-changed hook)
234 2022-10-18 13:58:37 DEBUG juju.worker.
However the first last config changed hook, we never get the 2nd half. The machine lock is held.