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/nagios/service-check-haproxy.txt' after recent update to check_status_file.py
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_file.py"]
2017-03-03 22:22:19 DEBUG worker.uniter.jujuc server.go:173 hook context id "glance/0-config-changed-2954441461654224842"; dir "/var/lib/juju/agents/unit-glance-0/charm"
2017-03-03 22:22:19 INFO juju-log Check command not found: check_status_file.py
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/juju/agents/unit-glance-0/charm/hooks/config-changed", line 632, in <module>
2017-03-03 22:22:19 INFO config-changed hooks.execute(sys.argv)
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/hookenv.py", line 731, in execute
2017-03-03 22:22:19 INFO config-changed self._hooks[hook_name]()
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1864, in wrapped_f
2017-03-03 22:22:19 INFO config-changed restart_functions)
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/host.py", line 655, in restart_on_change_helper
2017-03-03 22:22:19 INFO config-changed r = lambda_f()
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1863, in <lambda>
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/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
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/juju/agents/unit-glance-0/charm/hooks/config-changed", line 405, in config_changed
2017-03-03 22:22:19 INFO config-changed update_nrpe_config()
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/config-changed", line 593, in update_nrpe_config
2017-03-03 22:22:19 INFO config-changed nrpe.add_init_service_checks(nrpe_setup, services(), current_unit)
2017-03-03 22:22:19 INFO config-changed File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/charmsupport/nrpe.py", line 387, in add_init_service_checks
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/nagios/service-check-haproxy.txt'
2017-03-03 22:22:19 INFO juju.worker.uniter.context context.go:579 handling reboot
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/ nagios/ service- check-haproxy. txt' after recent update to check_status_ file.py
2017-03-03 22:22:19 INFO config-changed Setting up python-gi (3.12.0-1ubuntu1) ... file.py" ] 0-config- changed- 295444146165422 4842"; dir "/var/lib/ juju/agents/ unit-glance- 0/charm" file.py juju/agents/ unit-glance- 0/charm/ hooks/config- changed" , line 632, in <module> sys.argv) juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 731, in execute hook_name] () juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/contrib/ openstack/ utils.py" , line 1864, in wrapped_f juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/core/ host.py" , line 655, in restart_ on_change_ helper juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/contrib/ openstack/ utils.py" , line 1863, in <lambda> juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/contrib/ hardening/ harden. py", line 79, in _harden_inner2 juju/agents/ unit-glance- 0/charm/ hooks/config- changed" , line 405, in config_changed nrpe_config( ) juju/agents/ unit-glance- 0/charm/ hooks/config- changed" , line 593, in update_nrpe_config init_service_ checks( nrpe_setup, services(), current_unit) juju/agents/ unit-glance- 0/charm/ hooks/charmhelp ers/contrib/ charmsupport/ nrpe.py" , line 387, in add_init_ service_ checks nagios/ service- check-haproxy. txt' uniter. context context.go:579 handling reboot
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.