Charm attempts to write to /etc/nagios/nrpe.d/ before nagios is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
During a CDK deployment on baremetal using the bionic series charm. Charm revision 68. Test run can artifacts can be found here: https:/
/var/log/
...
2020-06-06 02:01:08 DEBUG config-changed Traceback (most recent call last):
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed hooks.execute(
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed self._hooks[
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed update_
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed nrpe_setup.write()
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed self.nagios_
2020-06-06 02:01:08 DEBUG config-changed File "/var/lib/
2020-06-06 02:01:08 DEBUG config-changed with open(nrpe_
2020-06-06 02:01:08 DEBUG config-changed FileNotFoundError: [Errno 2] No such file or directory: '/etc/nagios/
...
Later in the Juju unit logs we see the nagios unit running its install hook:
...
var/log/
var/log/
var/log/
var/log/
var/log/
var/log/
var/log/
var/log/
...
In an ideal world the hacluster charm should check if nagios is installed before writing that file.
Changed in charm-hacluster: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Aurelien Lourot (aurelien-lourot) |
Changed in charm-hacluster: | |
assignee: | Aurelien Lourot (aurelien-lourot) → Alex Kavanagh (ajkavanagh) |
Changed in charm-hacluster: | |
assignee: | Alex Kavanagh (ajkavanagh) → nobody |
Changed in charm-hacluster: | |
milestone: | none → 20.08 |
Changed in charm-hacluster: | |
status: | Fix Committed → Fix Released |
sub'd field-high
We hit this in 3 of our FCE release runs: /solutions. qa.canonical. com/#/qa/ testRun/ 91ca72b5- 59ff-4be8- 9dd6-e169800796 26 /solutions. qa.canonical. com/#/qa/ testRun/ 1d4582a4- 9b0e-4407- ad14-2d59690bf3 38 /solutions. qa.canonical. com/#/qa/ testRun/ 47c4f529- 0b6f-4e68- 9f49-716ee171bc 6c
https:/
https:/
https:/
The artifacts/logs from the run can be found by clicking the link at the bottom of the page.