nagios-charmers team mailing list archive
-
nagios-charmers team
-
Mailing list archive
-
Message #01351
[Bug 1895560] Re: hook failed: "monitors-relation-changed"
Closing this due to inactivity (low number of occurrences, and no hit
for more than one year)
** Tags added: solutions-qa-expired
** Changed in: charm-nagios
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Nagios
Charm developers, which is subscribed to Nagios Charm.
https://bugs.launchpad.net/bugs/1895560
Title:
hook failed: "monitors-relation-changed"
Status in Nagios Charm:
Invalid
Bug description:
Nagios charm reports an error during a deployment.
hook failed: "monitors-relation-changed"
logs show
2020-09-14 01:53:30 DEBUG monitors-relation-changed Traceback (most recent call last):
2020-09-14 01:53:30 DEBUG monitors-relation-changed File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/monitors-relation-changed", line 197, in <module>
2020-09-14 01:53:30 DEBUG monitors-relation-changed main(sys.argv)
2020-09-14 01:53:30 DEBUG monitors-relation-changed File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/monitors-relation-changed", line 140, in main
2020-09-14 01:53:30 DEBUG monitors-relation-changed apply_relation_config(relid, units, all_hosts)
2020-09-14 01:53:30 DEBUG monitors-relation-changed File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/monitors-relation-changed", line 171, in apply_relation_config
2020-09-14 01:53:30 DEBUG monitors-relation-changed host = get_pynag_host(target_id)
2020-09-14 01:53:30 DEBUG monitors-relation-changed File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/common.py", line 363, in get_pynag_host
2020-09-14 01:53:30 DEBUG monitors-relation-changed host = Model.Host.objects.get_by_shortname(target_id)
2020-09-14 01:53:30 DEBUG monitors-relation-changed File "/usr/lib/python2.7/dist-packages/pynag/Model/__init__.py", line 458, in get_by_shortname
2020-09-14 01:53:30 DEBUG monitors-relation-changed return ObjectFetcher._cached_shortnames[self.object_type][shortname]
2020-09-14 01:53:30 DEBUG monitors-relation-changed KeyError: 'FCE_TEMPLATE-graylog-mongodb-1'
2020-09-14 01:53:30 ERROR juju.worker.uniter.operation runhook.go:136 hook "monitors-relation-changed" (via explicit, bespoke hook script) failed: exit status 1
2020-09-14 01:53:30 DEBUG juju.machinelock machinelock.go:186 machine lock released for uniter (run relation-changed (34; unit: nrpe-host/2) hook)
It is a one off error, we have passing runs with the same configuration
Problematic run logs - https://oil-
jenkins.canonical.com/artifacts/68b86e98-8736-415f-83a6-64a163deee5e/generated/generated/lma/juju-
crashdump-lma-2020-09-14-02.06.34.tar.gz
all realted files
https://oil-jenkins.canonical.com/artifacts/68b86e98-8736-415f-83a6-64a163deee5e/index.html
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-nagios/+bug/1895560/+subscriptions
References