Repository navigation
Commit 71cf230
fix(migration): preserve VM MAC address during virtual-machine to vm-instance migration
Migration step 2k stores the old MAC in spec.macAddress of the pre-created
IP resource, but Kube-OVN reads MAC exclusively from the pod annotation
ovn.kubernetes.io/mac_address. Without the annotation, migrated VMs receive
a new random MAC, breaking OS-level network config that matches by MAC
(e.g. netplan match: macaddress).
Add a Flux postRenderer with a kustomize patch to the vm-instance
HelmRelease that injects ovn.kubernetes.io/mac_address and
ovn.kubernetes.io/ip_address annotations into the VirtualMachine pod
template. This ensures the virt-launcher pod is created with the correct
MAC from the first boot, with no race conditions or additional waiting.
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kirill Ilin <[email protected]>1 parent adacd44 commit 71cf230
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
473 | 498 | | |
474 | 499 | | |
475 | 500 | | |
| |||
501 | 526 | | |
502 | 527 | | |
503 | 528 | | |
| 529 | + | |
504 | 530 | | |
505 | 531 | | |
506 | 532 | | |
| |||
0 commit comments