Skip to content

[Backport release-1.1] [platform] Fix VM MAC address not preserved during migration#2190

Merged
kvaps merged 1 commit intorelease-1.1from
backport-2169-to-release-1.1
Mar 10, 2026
Merged

[Backport release-1.1] [platform] Fix VM MAC address not preserved during migration#2190
kvaps merged 1 commit intorelease-1.1from
backport-2169-to-release-1.1

Conversation

@github-actions
Copy link

Description

Backport of #2169 to release-1.1.

…instance migration

Kube-OVN reads MAC address exclusively from the pod annotation
ovn.kubernetes.io/mac_address, not from the IP resource spec.macAddress.
Without pod-level annotations, migrated VMs receive a new random MAC,
breaking OS-level network config that matches by MAC (e.g. netplan).

Add a Helm lookup for the Kube-OVN IP resource in the vm-instance chart
template. When the IP resource exists, its macAddress and ipAddress are
automatically injected as pod annotations. This removes the need for
fragile Flux postRenderers on the HelmRelease — the chart itself handles
MAC/IP preservation based on actual cluster state.

Remove the postRenderers approach from migration 29 since the chart now
handles this natively.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kirill Ilin <[email protected]>
(cherry picked from commit 9a4f492)
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Mar 10, 2026
@kvaps kvaps merged commit 109b4a3 into release-1.1 Mar 10, 2026
5 checks passed
@kvaps kvaps deleted the backport-2169-to-release-1.1 branch March 10, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants