[platform] Fix VM MAC address not preserved during migration by sircthulhu · Pull Request #2169 · cozystack/cozystack

@dosubot dosubot bot added size:S

This PR changes 10-29 lines, ignoring generated files.

bug

Something isn't working

labels

Mar 7, 2026

gemini-code-assist[bot]

@dosubot dosubot bot added size:XS

This PR changes 0-9 lines, ignoring generated files.

and removed size:S

This PR changes 10-29 lines, ignoring generated files.

labels

Mar 10, 2026

coderabbitai[bot]

…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 <noreply@anthropic.com>
Signed-off-by: Kirill Ilin <stitch14@yandex.ru>

coderabbitai[bot]

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 10, 2026

@kvaps kvaps deleted the fix/vm-migration-mac-address branch

March 10, 2026 14:18

This was referenced

Mar 10, 2026

kvaps added a commit that referenced this pull request

Mar 10, 2026
…ring migration (#2190)

# Description
Backport of #2169 to `release-1.1`.

kvaps added a commit that referenced this pull request

Mar 10, 2026
…ring migration (#2191)

# Description
Backport of #2169 to `release-1.0`.