config-changed, upgrade-charm fails if no nrpe is present

Bug #1448143 reported by Jorge Niedbalski
6
This bug affects 1 person
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/0:config-changed:1947388715018298365"; dir "/var/lib/juju/agents/unit-az1-compute-0/charm"
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/juju/agents/unit-az1-compute-0/charm/hooks/config-changed", line 328, in <module>
2015-04-24 11:18:53 INFO config-changed main()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/config-changed", line 322, in main
2015-04-24 11:18:53 INFO config-changed hooks.execute(sys.argv)
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/charmhelpers/core/hookenv.py", line 544, in execute
2015-04-24 11:18:53 INFO config-changed self._hooks[hook_name]()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/charmhelpers/core/host.py", line 312, in wrapped_f
2015-04-24 11:18:53 INFO config-changed f(*args)
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/config-changed", line 119, in config_changed
2015-04-24 11:18:53 INFO config-changed update_nrpe_config()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/config-changed", line 317, in update_nrpe_config
2015-04-24 11:18:53 INFO config-changed nrpe_setup.write()
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/charmhelpers/contrib/charmsupport/nrpe.py", line 244, in write
2015-04-24 11:18:53 INFO config-changed self.nagios_servicegroups)
2015-04-24 11:18:53 INFO config-changed File "/var/lib/juju/agents/unit-az1-compute-0/charm/hooks/charmhelpers/contrib/charmsupport/nrpe.py", line 167, in write
2015-04-24 11:18:53 INFO config-changed with open(nrpe_check_file, 'w') as nrpe_check_config:
2015-04-24 11:18:53 INFO config-changed IOError: [Errno 2] No such file or directory: '/etc/nagios/nrpe.d/check_neutron-plugin-openvswitch-agent.cfg'
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.uniter.filter filter.go:426 resolved event handled
2015-04-24 11:18:53 DEBUG juju.worker.uniter.filter filter.go:225 resolved clear completed
2015-04-24 11:18:55 DEBUG juju.worker.uniter.filter filter.go:317 got unit change

Related branches

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
Revision history for this message
Edward Hope-Morley (hopem) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.