vault-hacluster - hook "config-changed" failed

Bug #1809672 reported by Mark Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack HA Cluster Charm
Triaged
High
Unassigned

Bug Description

The application vault-hacluster fails to configure because the directory /etc/nagios/nrpe.d/ does not exist.

Creating this directory with `mkdir -p /etc/nagios/nrpe.d/` allows the units to continue.

2018-12-24 17:21:23 INFO juju-log Installing python-dbus with options: ['--option=Dpkg::Options::=--force-confold']
2018-12-24 17:21:23 DEBUG config-changed Reading package lists...
2018-12-24 17:21:23 DEBUG config-changed Building dependency tree...
2018-12-24 17:21:23 DEBUG config-changed Reading state information...
2018-12-24 17:21:24 DEBUG config-changed python-dbus is already the newest version (1.2.6-1).
2018-12-24 17:21:24 DEBUG config-changed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2018-12-24 17:21:24 DEBUG config-changed Traceback (most recent call last):
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/config-changed", line 512, in <module>
2018-12-24 17:21:24 DEBUG config-changed hooks.execute(sys.argv)
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/charmhelpers/core/hookenv.py", line 909, in execute
2018-12-24 17:21:24 DEBUG config-changed self._hooks[hook_name]()
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/config-changed", line 169, in config_changed
2018-12-24 17:21:24 DEBUG config-changed update_nrpe_config()
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/config-changed", line 491, in update_nrpe_config
2018-12-24 17:21:24 DEBUG config-changed nrpe_setup.write()
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/charmhelpers/contrib/charmsupport/nrpe.py", line 301, in write
2018-12-24 17:21:24 DEBUG config-changed self.nagios_servicegroups)
2018-12-24 17:21:24 DEBUG config-changed File "/var/lib/juju/agents/unit-vault-hacluster-0/charm/hooks/charmhelpers/contrib/charmsupport/nrpe.py", line 195, in write
2018-12-24 17:21:24 DEBUG config-changed with open(nrpe_check_file, 'w') as nrpe_check_config:
2018-12-24 17:21:24 DEBUG config-changed IOError: [Errno 2] No such file or directory: '/etc/nagios/nrpe.d/check_corosync_rings.cfg'
2018-12-24 17:21:24 ERROR juju.worker.uniter.operation runhook.go:129 hook "config-changed" failed: exit status 1

Changed in charm-hacluster:
status: New → Triaged
importance: Undecided → High
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.