esunar / test4

GNU General Public License v3.0
0 stars 0 forks source link

Juju lint-false positives for nagios #131

Closed esunar closed 2 years ago

esunar commented 2 years ago

Juju-lint reports a false positive issue for nagios.

2019-12-10 09:00:21 [INFO] The following subordinates couldn't be found: 2019-12-10 09:00:21 [ERROR] -> nrpe [nagios]

This means that nagios unit does not have it's subordinate nrpe. Please not that nagios charm does not expose relation of type nrpe-external-master which is for subordinates:

ubuntu@maas001-rack001:~/$ juju add-relation "nagios:nrpe-external-master" "nrpe-container:nrpe-external-master" ERROR application "nagios" has no "nrpe-external-master" relation

The relation nagios - general-info does not allow setting this.

Hence nagios charm is not ready to have subordinate nrpe checks and this should be excluded from juju-lint checks.


Imported from Launchpad using lp2gh.

esunar commented 2 years ago

(by arif-ali) We have a customer who is running the juju-lint as part of verification, and ideally would not like to see this error. So, if we could resolve this, then that would be appreciated

esunar commented 2 years ago

(by arif-ali) any thoughts on this please?

esunar commented 2 years ago

(by ec0) Please see comments in the MR.

esunar commented 2 years ago

(by ec0) MR has been approved. I think it would also make sense to test this on a real cloud, and update the canonical reference rules in the repository before closing out this bug.