Merge charm-openstack-service-checks:ignore-unbound-ports into charm-openstack-service-checks:master

Proposed by Pedro Castillo
Status: Merged
Approved by: Ramesh Sattaru
Approved revision: 8c3825673ffd8a5d16f6428c1c4c798e6bf23e8d
Merged at revision: 00dc62e0c31035e2df8c0d46cb58829e3db4f64b
Proposed branch: charm-openstack-service-checks:ignore-unbound-ports
Merge into: charm-openstack-service-checks:master
Diff against target: 69 lines (+22/-3)
2 files modified
src/files/plugins/check_resources.py (+5/-0)
src/tests/unit/test_check_resources.py (+17/-3)
Reviewer Review Type Date Requested Status
JamesLin Approve
Chi Wai CHAN Approve
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
Tianqi Xiao (community) Needs Fixing
BootStack Reviewers Pending
Review via email: mp+444595@code.staging.launchpad.net

Commit message

Ignore unbound ports on check_ports

Description of the change

This MR will filter unbound ports on the `check_ports` Nagios check.

Unbound ports are generally DOWN, and Nagios will fire the `check_ports` alert if any port is down. However, since the unbound ports are always DOWN, this alert will generate noise if there are any unbound ports, forcing operators to deal with the noise by adding these port IDs to the skip list. However, if any of the ignored ports are bound, they will remain in the skip list which is undesired. This MR will now filter unbound ports from the check so that (a) operators don't have to deal with the noise and (b) these ports are automatically re-added to the check once bound.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Tianqi Xiao (txiao) wrote :

The implementation LGTM, but please include unit tests for the changes.

BTW, CI is blocked due to linting error. Please fix it (simply running `make black` and push the changes should do)

review: Needs Fixing
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Chi Wai CHAN (raychan96) wrote :

Thanks for the patch! This looks good to me.

review: Approve
Revision history for this message
JamesLin (jneo8) wrote :

LGTM

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 00dc62e0c31035e2df8c0d46cb58829e3db4f64b

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

No one subscribed via source and target branches