cozystack/packages/apps/vm-instance/templates
Kirill Ilin 9a4f49238c
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>
2026-03-10 12:41:50 +01:00
..
_helpers.tpl feat(vm-instance): port cpuModel, instancetype switching, and runStrategy changes 2026-02-14 03:02:41 +01:00
dashboard-resourcemap.yaml bugfix: vm and vmi add svc to dashboard 2025-07-08 10:02:34 +03:00
secret.yaml [virtual-machine] add comment about sshKeys logic 2025-07-09 10:37:39 +02:00
service.yaml [vm] Always expose VMs with a service 2025-12-19 14:51:09 +03:00
vm-update-hook.yaml feat(vm-instance): port cpuModel, instancetype switching, and runStrategy changes 2026-02-14 03:02:41 +01:00
vm.yaml fix(migration): preserve VM MAC address during virtual-machine to vm-instance migration 2026-03-10 12:41:50 +01:00