cozystack/packages
Kirill Ilin 2658bfabda fix(migration): preserve VM MAC address during virtual-machine to vm-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>
(cherry picked from commit 9a4f49238c)
2026-03-10 14:18:35 +00:00
..
apps fix(migration): preserve VM MAC address during virtual-machine to vm-instance migration 2026-03-10 14:18:35 +00:00
core Prepare release v1.0.3 2026-03-06 01:37:07 +00:00
extra Prepare release v1.0.3 2026-03-06 01:37:07 +00:00
library refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
system fix(etcd-operator): replace deprecated kube-rbac-proxy image 2026-03-10 11:37:08 +00:00
tests/cozy-lib-tests refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00