config-changed, upgrade-charm fails if no nrpe is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-compute (Juju Charms Collection) |
Fix Released
|
Critical
|
Jorge Niedbalski | ||
Trusty |
Fix Released
|
Critical
|
Jorge Niedbalski |
Bug Description
On a system without nrpe enabled, the following error is raised after applying a config change.
2015-04-24 11:18:53 DEBUG worker.uniter.jujuc server.go:103 hook context id "az1-compute/
2015-04-24 11:18:53 INFO juju-log Check command not found: check_upstart_job
2015-04-24 11:18:53 INFO config-changed Traceback (most recent call last):
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed main()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed hooks.execute(
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed self._hooks[
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed f(*args)
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed update_
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed nrpe_setup.write()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed self.nagios_
2015-04-24 11:18:53 INFO config-changed File "/var/lib/
2015-04-24 11:18:53 INFO config-changed with open(nrpe_
2015-04-24 11:18:53 INFO config-changed IOError: [Errno 2] No such file or directory: '/etc/nagios/
2015-04-24 11:18:53 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1
2015-04-24 11:18:53 DEBUG juju.worker.
2015-04-24 11:18:53 DEBUG juju.worker.
2015-04-24 11:18:55 DEBUG juju.worker.
Related branches
- Billy Olsen: Approve
-
Diff: 53 lines (+23/-2)2 files modifiedhooks/nova_compute_hooks.py (+5/-2)
unit_tests/test_nova_compute_hooks.py (+18/-0)
- OpenStack Charmers: Pending requested
-
Diff: 53 lines (+23/-2)2 files modifiedhooks/nova_compute_hooks.py (+5/-2)
unit_tests/test_nova_compute_hooks.py (+18/-0)
- Billy Olsen: Approve
-
Diff: 53 lines (+23/-2)2 files modifiedhooks/nova_compute_hooks.py (+5/-2)
unit_tests/test_nova_compute_hooks.py (+18/-0)
Changed in nova-compute (Juju Charms Collection): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in nova-compute (Charms Trusty): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
tags: | added: cts openstack-backport-potential |
Changed in nova-compute (Juju Charms Collection): | |
status: | New → In Progress |
Changed in nova-compute (Charms Trusty): | |
status: | New → In Progress |
Changed in nova-compute (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in nova-compute (Charms Trusty): | |
importance: | Undecided → High |
Changed in nova-compute (Charms Trusty): | |
importance: | High → Critical |
Changed in nova-compute (Juju Charms Collection): | |
importance: | High → Critical |
Changed in nova-compute (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
milestone: | none → 15.04 |
Changed in nova-compute (Charms Trusty): | |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in nova-compute (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
ftr i think this was not actually an issue on trunk as of yesterday since i tried upgrading without this patch and it seemed to work just fine. In any case a harmless patch.