Skip to content

network: skip dhcp and dns health checks on internal LB routers - #14106

Open
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:pr/fix-internal-lb-healthcheck-flood
Open

network: skip dhcp and dns health checks on internal LB routers#14106
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:pr/fix-internal-lb-healthcheck-flood

Conversation

@nagaboinaramgopal

Copy link
Copy Markdown
Contributor

Description

An internal LB VM runs only the load balancer, but it is configured with the full virtual router health check set. The dhcp and dns checks have nothing to verify on an internal LB, so they fail on every advanced health check run and flood the event log with failures every few minutes.

This excludes the dhcp and dns checks for a router whose role is internal LB, using the existing per-router excluded-checks mechanism (the same one that already excludes the gateway check on backup routers).

Fixes: #12658

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

N/A

How Has This Been Tested?

Added a unit test on createMonitorServiceCommand: for a router whose role is internal LB, the excluded health checks now include dhcp_check.py and dns_check.py. Before this change the excluded set is empty for that router and the test fails. The existing appliance-manager tests still pass.

How did you try to break this feature and the system with this change?

The exclusion is gated on the internal LB role, so a normal virtual router or VPC router is unaffected. The change only appends to the existing excluded-checks list, alongside the backup-router gateway-check exclusion that is already there.

An internal LB VM runs only the load balancer, but it was given the full
virtual router health check set, so the dhcp and dns checks failed on every
advanced health check run and flooded the event log. Exclude those checks for
a router whose role is internal LB, using the existing per-router
excluded-checks mechanism.

Fixes: apache#12658

@sureshanaparti sureshanaparti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 4.14%. Comparing base (3a79799) to head (2ee566c).
⚠️ Report is 8 commits behind head on 4.20.

❗ There is a different number of reports uploaded between BASE (3a79799) and HEAD (2ee566c). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3a79799) HEAD (2ee566c)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               4.20   #14106       +/-   ##
=============================================
- Coverage     16.34%    4.14%   -12.21%     
=============================================
  Files          5669      405     -5264     
  Lines        501405    33073   -468332     
  Branches      60907     5903    -55004     
=============================================
- Hits          81975     1370    -80605     
+ Misses       410246    31527   -378719     
+ Partials       9184      176     -9008     
Flag Coverage Δ
uitests 4.14% <ø> (-0.01%) ⬇️
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants