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

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.37%. Comparing base (3a79799) to head (2ee566c).
⚠️ Report is 9 commits behind head on 4.20.

Files with missing lines Patch % Lines
...ork/router/VirtualNetworkApplianceManagerImpl.java 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #14106      +/-   ##
============================================
+ Coverage     16.34%   16.37%   +0.02%     
- Complexity    13576    13596      +20     
============================================
  Files          5669     5669              
  Lines        501405   501477      +72     
  Branches      60907    60915       +8     
============================================
+ Hits          81975    82111     +136     
+ Misses       410246   410164      -82     
- Partials       9184     9202      +18     
Flag Coverage Δ
uitests 4.14% <ø> (-0.01%) ⬇️
unittests 17.23% <0.00%> (+0.02%) ⬆️

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