need extended relation checking for nrpe charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Lint |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently, juju-lint in the canonical-
As an example here are the two applications and their subordinates on machine 2. You can see nrpe is missing from ceph-osd as a subordinate, which means that the ceph-osd service checks will not be dropped into the nagios environment.
ceph-osd/2 active idle 2 10.55.0.198 Unit is ready (2 OSD)
clamav/7 active idle 10.55.0.198
nova-compute-kvm/0 active idle 2 10.55.0.198 Unit is ready
ceilometer-
filebeat/8 active idle 10.55.0.198 Filebeat ready.
landscape-
lldpd/14 active idle 10.55.0.198 LLDP daemon running
neutron-
nrpe-host/5 active idle 10.55.0.198 icmp,5666/tcp ready
ntp/1 active idle 10.55.0.198 123/udp Ready
telegraf/22 active idle 10.55.0.198 9103/tcp Monitoring nova-compute-kvm/0
As there are many application names for a given charm, such as hacluster, and nrpe needs to be related to both the principal service and the hacluster subordinate to configure check_crm_status, we will need to have a way to list charms that should be related to nrpe, not application names.
As an example:
required-relations:
- - nrpe
- hacluster
This should check for all (cs|local)
Related branches
- Martin Kalcok (community): Approve
- Eric Chen: Needs Information
-
Diff: 868 lines (+735/-2)10 files modifiedcontrib/includes/aggregator-kubernetes.yaml (+4/-0)
contrib/includes/aggregator-openstack.yaml (+3/-0)
contrib/includes/base.yaml (+7/-0)
contrib/includes/kubernetes.yaml (+10/-0)
jujulint/lint.py (+47/-0)
jujulint/relations.py (+296/-0)
tests/unit/conftest.py (+89/-0)
tests/unit/test_jujulint.py (+70/-1)
tests/unit/test_relations.py (+208/-0)
tox.ini (+1/-1)
tags: | added: bseng-199 |
Changed in juju-lint: | |
status: | Fix Committed → Fix Released |
It was discovered recently that ntp was not related to nrpe in any of the FCB skus. This check will also be useful to verify that nrpe and ntp have a required relation fulfilled.