ensure every machine has a nrpe unit on it
Bug #1893272 reported by
Andrea Ieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Lint |
Fix Released
|
High
|
Gabriel Cocenza |
Bug Description
Consider a model where a machine has several units deployed on top of it as lxds, but no principal itself. Although juju-lint will alert on principal charms lacking a nrpe subordinate, it will not report the lack of nrpe on a machine with no principal.
In addition to validating relations between nrpe and principal units, we should ensure that every machine in the model has a nrpe unit on it.
Related branches
~gabrielcocenza/juju-lint:bug/1893272
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Martin Kalcok (community): Approve
- Mert Kirpici: Pending requested
- BootStack Reviewers: Pending requested
- Eric Chen: Pending requested
-
Diff: 1965 lines (+1241/-287)10 files modifiedCONTRIBUTING.md (+2/-2)
contrib/includes/base.yaml (+15/-0)
jujulint/lint.py (+20/-9)
jujulint/model_input.py (+331/-0)
jujulint/relations.py (+73/-110)
setup.py (+1/-1)
tests/unit/conftest.py (+224/-67)
tests/unit/test_input.py (+233/-0)
tests/unit/test_jujulint.py (+72/-15)
tests/unit/test_relations.py (+270/-83)
Changed in juju-lint: | |
assignee: | nobody → Canonical BootStack DevOps Centre (canonical-bootstack-doc) |
assignee: | Canonical BootStack DevOps Centre (canonical-bootstack-doc) → nobody |
assignee: | nobody → Eric Chen (eric-chen) |
assignee: | Eric Chen (eric-chen) → nobody |
tags: | added: bseng-142 |
Changed in juju-lint: | |
assignee: | nobody → Gabriel Angelo Sgarbi Cocenza (gabrielcocenza) |
Changed in juju-lint: | |
status: | New → Fix Committed |
Changed in juju-lint: | |
milestone: | none → 1.0.5 |
Changed in juju-lint: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
on second thought, this affects more than just nrpe: if you have a machine with no principal, you will also be missing ntp / telegraf / etc.
Shall we perhaps have lists of "mandatory units" that all machines and/or containers must have?