Logrotated charm in error state with hook failed: "install"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Openstack Exporter Charm |
Fix Released
|
High
|
Sudeep Bhandari | ||
logrotate-charm |
Fix Released
|
High
|
Sudeep Bhandari |
Bug Description
Solutions QA team has a failed run (SKU: undertest_
logrotated stays in error state with the message hook failed: "install"
From the logs we see:
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 WARNING unit.logrotated
unit-logrotated-7: 12:26:19 ERROR juju.worker.
unit-logrotated-7: 12:26:19 DEBUG juju.machinelock created rotating log file "/var/log/
unit-logrotated-7: 12:26:19 DEBUG juju.machinelock machine lock released for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:26:19 DEBUG juju.worker.
unit-logrotated-7: 12:26:19 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:26:19 DEBUG juju.worker.uniter [AGENT-STATUS] error: hook failed: "install"
unit-logrotated-7: 12:27:04 DEBUG juju.worker.
unit-logrotated-7: 12:27:04 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:31:19 DEBUG juju.worker.
unit-logrotated-7: 12:31:19 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:31:19 DEBUG juju.worker.
unit-logrotated-7: 12:31:19 DEBUG juju.machinelock acquire machine lock for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:31:19 DEBUG juju.machinelock machine lock acquired for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:31:19 DEBUG juju.worker.
unit-logrotated-7: 12:31:19 DEBUG juju.worker.
unit-logrotated-7: 12:31:19 DEBUG juju.worker.uniter [AGENT-STATUS] executing: running install hook
unit-logrotated-7: 12:31:19 DEBUG juju.worker.
unit-logrotated-7: 12:31:20 DEBUG unit.logrotated
unit-logrotated-7: 12:31:20 DEBUG unit.logrotated
unit-logrotated-7: 12:31:20 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:21 DEBUG unit.logrotated
unit-logrotated-7: 12:31:22 DEBUG unit.logrotated
unit-logrotated-7: 12:31:22 DEBUG unit.logrotated
unit-logrotated-7: 12:31:22 DEBUG unit.logrotated
unit-logrotated-7: 12:31:24 DEBUG unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 WARNING unit.logrotated
unit-logrotated-7: 12:31:25 ERROR juju.worker.
unit-logrotated-7: 12:31:25 DEBUG juju.machinelock created rotating log file "/var/log/
unit-logrotated-7: 12:31:25 DEBUG juju.machinelock machine lock released for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:31:25 DEBUG juju.worker.
unit-logrotated-7: 12:31:25 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:31:25 DEBUG juju.worker.uniter [AGENT-STATUS] error: hook failed: "install"
unit-logrotated-7: 12:31:43 DEBUG juju.worker.
unit-logrotated-7: 12:31:43 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:35:53 DEBUG juju.worker.
unit-logrotated-7: 12:35:53 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:36:25 DEBUG juju.worker.
unit-logrotated-7: 12:36:25 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:36:25 DEBUG juju.worker.
unit-logrotated-7: 12:36:25 DEBUG juju.machinelock acquire machine lock for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:36:25 DEBUG juju.machinelock machine lock acquired for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:36:25 DEBUG juju.worker.
unit-logrotated-7: 12:36:25 DEBUG juju.worker.
unit-logrotated-7: 12:36:25 DEBUG juju.worker.uniter [AGENT-STATUS] executing: running install hook
unit-logrotated-7: 12:36:25 DEBUG juju.worker.
unit-logrotated-7: 12:36:26 DEBUG unit.logrotated
unit-logrotated-7: 12:36:26 DEBUG unit.logrotated
unit-logrotated-7: 12:36:26 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:27 DEBUG unit.logrotated
unit-logrotated-7: 12:36:29 DEBUG unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 WARNING unit.logrotated
unit-logrotated-7: 12:36:29 ERROR juju.worker.
unit-logrotated-7: 12:36:29 DEBUG juju.machinelock created rotating log file "/var/log/
unit-logrotated-7: 12:36:29 DEBUG juju.machinelock machine lock released for logrotated/7 uniter (run install hook)
unit-logrotated-7: 12:36:29 DEBUG juju.worker.
unit-logrotated-7: 12:36:29 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-logrotated-7: 12:36:29 DEBUG juju.worker.uniter [AGENT-STATUS] error: hook failed: "install"
Logrotated in this test scenario is a subordinate charm of nagios (runs on bionic) which supports up to python 3.6.
Test run:
https:/
(log artifacts found in the link at the bottom of the test run page)
Related branches
- Tianqi Xiao (community): Approve
- Robert Gildein: Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- BootStack Reviewers: Pending requested
- BootStack Reviewers: Pending requested
-
Diff: 34 lines (+9/-3)2 files modifiedcharmcraft.yaml (+5/-1)
src/tox.ini (+4/-2)
- Ramesh Sattaru (community): Approve
- Martin Kalcok (community): Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 38 lines (+6/-6)2 files modifiedcharmcraft.yaml (+5/-5)
src/tests/functional/test_logrotate.py (+1/-1)
tags: | added: bseng-758 |
Changed in charm-logrotated: | |
assignee: | nobody → Sudeep Bhandari (sudeephb) |
Changed in charm-logrotated: | |
status: | New → Fix Committed |
Changed in charm-prometheus-openstack-exporter: | |
status: | New → Fix Committed |
assignee: | nobody → Sudeep Bhandari (sudeephb) |
Changed in charm-prometheus-openstack-exporter: | |
milestone: | none → 23.01 |
Changed in charm-logrotated: | |
milestone: | none → 23.01 |
Changed in charm-prometheus-openstack-exporter: | |
importance: | Undecided → High |
Changed in charm-logrotated: | |
importance: | Undecided → High |
Changed in charm-logrotated: | |
status: | Fix Committed → Fix Released |
Changed in charm-prometheus-openstack-exporter: | |
status: | Fix Committed → Fix Released |
we also saw this on charm-prometheu s-openstack- exporter on bionic:
unit-prometheus -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install pip requires Python '>=3.7' but the running Python is 3.6.9 -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install Traceback (most recent call last): -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install File "/var/lib/ juju/agents/ unit-prometheus -openstack- exporter- 0/charm/ hooks/install" , line 8, in <module> -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install basic.bootstrap _charm_ deps() -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install File "lib/charms/ layer/basic. py", line 202, in bootstrap_ charm_deps -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install _update_ if_newer( pip, pre_install_pkgs) -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install File "lib/charms/ layer/basic. py", line 367, in _update_if_newer -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install pkg], env=_get_ subprocess_ env()) -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install File "/usr/lib/ python3. 6/subprocess. py", line 311, in check_call -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install raise CalledProcessEr ror(retcode, cmd) -openstack- exporter- 0: 20:05:30 WARNING unit.prometheus -openstack- exporter/ 0.install subprocess. CalledProcessEr ror: Command '['/var/ lib/juju/ agents
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus
unit-prometheus