Skip to content

Fix/secondary nic filter#144

Open
anluerz wants to merge 2 commits into
gardener:mainfrom
anluerz:fix/secondary-nic-filter
Open

Fix/secondary nic filter#144
anluerz wants to merge 2 commits into
gardener:mainfrom
anluerz:fix/secondary-nic-filter

Conversation

@anluerz

@anluerz anluerz commented Jul 2, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

On nodes with a secondary NIC, such as an
additional ENI in a different subnet, agents would probe the secondary
IP on the nwpd port. If that port isn't reachable through the secondary
NIC's security group / firewall rules, the probes fail and nwpd reports
false-positive TCP connectivity failures even though the node itself is
healthy.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Restrict network problem detector checks for nodes to node subnet

@anluerz anluerz requested a review from a team as a code owner July 2, 2026 11:22
@gardener-prow gardener-prow Bot added the do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Jul 2, 2026
@gardener-prow

gardener-prow Bot commented Jul 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign scheererj for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@CLAassistant

CLAassistant commented Jul 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@gardener-prow gardener-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Jul 2, 2026
@anluerz

anluerz commented Jul 2, 2026

Copy link
Copy Markdown
Author

/kind bugfix

@gardener-prow

gardener-prow Bot commented Jul 2, 2026

Copy link
Copy Markdown

@anluerz: The label(s) kind/bugfix cannot be applied, because the repository doesn't have them.

Details

In response to this:

/kind bugfix

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@anluerz

anluerz commented Jul 2, 2026

Copy link
Copy Markdown
Author

/kind bug

@gardener-prow gardener-prow Bot added kind/bug Bug and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jul 2, 2026
anluerz added 2 commits July 2, 2026 13:33
BuildClusterConfig previously collected every InternalIP entry from
node.status.addresses. On nodes with a secondary NIC, such as an
additional ENI in a different subnet, agents would probe the secondary
IP on the nwpd port. If that port isn't reachable through the secondary
NIC's security group / firewall rules, the probes fail and nwpd reports
false-positive TCP connectivity failures even though the node itself is
healthy.

Filter the InternalIPs against the shoot's node network CIDRs so only
addresses from the actual node network are used as probe targets. The
CIDRs are read from the shoot-info ConfigMap's `nodeNetworks` key, which
carries both the IPv4 and (for dual-stack shoots) IPv6 node network.

Note: This depends on the provider extension reporting an accurate node
CIDR in shoot-info; for IPv6, the AWS extension currently reports the
whole VPC /56, which limits the effectiveness of the filter for IPv6
until fixed there.
@anluerz anluerz force-pushed the fix/secondary-nic-filter branch from 238e946 to f966abe Compare July 2, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/bug Bug size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants