Skip to content

networking: document masquerade subnet size requirement for UDN#116247

Open
Ultimate-etamitlU wants to merge 1 commit into
openshift:mainfrom
Ultimate-etamitlU:doc-udn-masquerade-subnet-requirement
Open

networking: document masquerade subnet size requirement for UDN#116247
Ultimate-etamitlU wants to merge 1 commit into
openshift:mainfrom
Ultimate-etamitlU:doc-udn-masquerade-subnet-requirement

Conversation

@Ultimate-etamitlU

@Ultimate-etamitlU Ultimate-etamitlU commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a limitation bullet to nw-udn-limitations.adoc: internalMasqueradeSubnet must be /18 or larger for IPv4 when UDNs are in use
  • Adds an IMPORTANT admonition to nw-ovn-k-day-2-masq-subnet.adoc warning UDN users about the minimum subnet size and directing pre-4.17 upgraded clusters to perform the day-2 change before creating UDNs

Context

OCPBUGS-55362: clusters with small masquerade subnets hit an "out of range" crash after a finite number of UDN create/delete cycles. The OVN-Kubernetes network ID allocator uses a forward-scanning round-robin capped at MaxNetworks=4096. The masquerade IP formula (10 + networkID×2) means the subnet must contain at least 8203 IPs — a /18 minimum.

Clusters installed before 4.17 retain the default 169.254.169.0/29 (8 IPs), which cannot support any UDN. The existing day-2 procedure already covers how to change this; this PR adds the critical warning that UDN users must perform it on pre-4.17 upgraded clusters.

Test plan

  • Render nw-udn-limitations.adoc — confirm limitation appears in UDN limitations section
  • Render nw-ovn-k-day-2-masq-subnet.adoc — confirm IMPORTANT box appears before Prerequisites

UDNs require internalMasqueradeSubnet >= /18 (IPv4). Each UDN uses two
masquerade IPs via a forward-scanning allocator capped at MaxNetworks=4096.
A smaller subnet exhausts IPs after a finite number of total creates, even
across delete cycles, causing CrashLoopBackOff with "out of range" errors.

Add a limitation bullet to the UDN limitations module and an IMPORTANT
admonition to the day-2 masquerade subnet procedure. Clusters upgraded from
pre-4.17 retain the /29 default (8 IPs) and must perform the day-2 change
to 169.254.0.0/17 before using UDNs.

Signed-off-by: Parikshit Khedekar <pkhedeka@redhat.com>
@openshift-ci openshift-ci Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 23, 2026
@openshift-ci

openshift-ci Bot commented Jul 23, 2026

Copy link
Copy Markdown

@Ultimate-etamitlU: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

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

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants