config-changed IOError: [Errno 2] No such file or directory: '/var/lib/nagios/service-check-haproxy.txt' after recent update to check_status_file.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
Felipe Reyes | ||
OpenStack Glance Charm |
Fix Released
|
High
|
Felipe Reyes | ||
OpenStack Keystone Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
When resyncing charm-helpers into the Glance charm, the following hook failure exists (for at least the Trusty + Icehouse combo):
config-changed IOError: [Errno 2] No such file or directory: '/var/lib/
2017-03-03 22:22:19 INFO config-changed Setting up python-gi (3.12.0-1ubuntu1) ...
2017-03-03 22:22:19 INFO worker.uniter.jujuc server.go:172 running hook tool "juju-log" ["Check command not found: check_status_
2017-03-03 22:22:19 DEBUG worker.uniter.jujuc server.go:173 hook context id "glance/
2017-03-03 22:22:19 INFO juju-log Check command not found: check_status_
2017-03-03 22:22:19 INFO config-changed Traceback (most recent call last):
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed hooks.execute(
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed self._hooks[
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed restart_functions)
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed r = lambda_f()
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed (lambda: f(*args, **kwargs)), restart_map, stopstart,
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed return f(*args, **kwargs)
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed update_
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed nrpe.add_
2017-03-03 22:22:19 INFO config-changed File "/var/lib/
2017-03-03 22:22:19 INFO config-changed f = open(checkpath, 'w')
2017-03-03 22:22:19 INFO config-changed IOError: [Errno 2] No such file or directory: '/var/lib/
2017-03-03 22:22:19 INFO juju.worker.
Logs and artifacts available for viewing at:
Related branches
- Stuart Bishop (community): Approve
- Ryan Beisner (community): Needs Information
- Paul Gear (community): Needs Information
-
Diff: 90 lines (+25/-5)2 files modifiedcharmhelpers/contrib/charmsupport/nrpe.py (+5/-2)
tests/contrib/charmsupport/test_nrpe.py (+20/-3)
Changed in charm-helpers: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in charm-glance: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in charm-helpers: | |
status: | New → In Progress |
Changed in charm-keystone: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-glance: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-helpers: | |
importance: | Undecided → High |
Changed in charm-helpers: | |
status: | In Progress → Fix Released |
Changed in charm-glance: | |
status: | Triaged → In Progress |
Changed in charm-glance: | |
milestone: | none → 17.08 |
Changed in charm-glance: | |
status: | Fix Committed → Fix Released |
See related change: /code.launchpad .net/~paulgear/ charm-helpers/ nrpe-service- immediate- check/+ merge/300682
https:/