Skip to content

Conversation

fasaxc
Copy link
Member

@fasaxc fasaxc commented Oct 14, 2025

Description

While trying to debug a flake, I felt like I could do with a bit more logging from the lb controller. Increase verbosity around its decision points.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

kube-controllers: improve logs around load balancer IPAM.

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@Copilot Copilot AI review requested due to automatic review settings October 14, 2025 15:54
@fasaxc fasaxc requested a review from a team as a code owner October 14, 2025 15:54
@marvin-tigera marvin-tigera added this to the Calico v3.32.0 milestone Oct 14, 2025
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Oct 14, 2025
@fasaxc fasaxc added docs-not-required Docs not required for this change and removed docs-pr-required Change is not yet documented labels Oct 14, 2025
@marvin-tigera marvin-tigera added docs-pr-required Change is not yet documented and removed docs-not-required Docs not required for this change labels Oct 14, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves logging and diagnostics for the kube-controllers load balancer component to help debug CI failures and flakes. The changes focus on increasing verbosity around key decision points in the load balancer IP allocation process.

  • Enhanced logging from Debug to Warn/Info level for better visibility during troubleshooting
  • Added informational logs at critical decision points in IP assignment and release logic
  • Improved test assertion with better error message for load balancer ingress status

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
kube-controllers/pkg/controllers/loadbalancer/loadbalancer_controller.go Enhanced logging throughout IP assignment/release logic with more detailed messages and elevated log levels
kube-controllers/pkg/controllers/loadbalancer/loadbalancer_controller_fv_test.go Improved test assertion with more descriptive error message for load balancer ingress status

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

Labels

docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants