Under certain deployment conditions, the charm can attempt to write to
the /etc/nagios/nrpe.d/ directory before it exists. This directory is
created by the nrpe charm, but if the hacluster (this charm) gets
installed first, then it can be triggered to attempt to set up the nrpe
entries before the directory can be created by nrpe. This change (and
the associated charm-helpers change) ensures that the charm will delay
the nrpe config until the directory is available (and thus, the nrpe
charm is fully installed)
Reviewed: https:/ /review. opendev. org/740979 /git.openstack. org/cgit/ openstack/ charm-hacluster /commit/ ?id=24fa642247b 0692de387df417b 7862ee450e15b9
Committed: https:/
Submitter: Zuul
Branch: master
commit 24fa642247b0692 de387df417b7862 ee450e15b9
Author: Alex Kavanagh <email address hidden>
Date: Tue Jul 14 09:58:50 2020 +0100
Fix directory /etc/nagios/nrpe.d/ issue
Under certain deployment conditions, the charm can attempt to write to
the /etc/nagios/nrpe.d/ directory before it exists. This directory is
created by the nrpe charm, but if the hacluster (this charm) gets
installed first, then it can be triggered to attempt to set up the nrpe
entries before the directory can be created by nrpe. This change (and
the associated charm-helpers change) ensures that the charm will delay
the nrpe config until the directory is available (and thus, the nrpe
charm is fully installed)
Related charm-helpers: https:/ /github. com/juju/ charm-helpers/ pull/492
Change-Id: Ibcbb5f56205b72 c475807e3c34c64 a00844908f4
Closes-Bug: #1882557