kubevirt: vmi Interface pod IP disappers intermittently
What happened: 1.Create a virtual machine with guest OS alma linux 9 (https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-9.4-20240507.x86_64.qcow2) 2.Create a bridge interface 3.wait for sometime for the bridge interface configured via multus to get ip address from dhcp 4.Ip address is assigned to the bridge interface on the vm from dhcp. 5.kubectl get vmi <vmi-name> -w -o yaml This lists the Guest OS and InfoSource from qemu-guest-agent with interface name and ip addresses.
After sometime use the above same command kubectl get vmi <vmi-name> -w -o yaml to check vmi ip addresses and it will be missing InfoSource as qemu-guest-agent and interface and interface ip address information.
So above happens intermittently, initially the frequency is more, later the frequency of flapping of ip address on bridge interface on vmi reduces. We notice the flapping of ip address from our GUI as it fetches the information from vmi.Status.Interfaces everytime its updated.
What you expected to happen: vmi ip address once configured should stay intact and should not flap.
How to reproduce it (as minimally and precisely as possible): 1.Create a virtual machine with guest OS alma linux 9 (https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-9.4-20240507.x86_64.qcow2) 2.Create a bridge interface 3.wait for sometime for the bridge interface configured via multus to get ip address from dhcp 4.Ip address is assigned to the bridge interface on the vm from dhcp. 5.kubectl get vmi <vmi-name> -w -o yaml This lists the Guest OS and InfoSource from qemu-guest-agent with interface name and ip addresses.
Repeat step 5 to check Interfaces and guestOSinfo status
Additional context: The issue happens with only some of the guest OSs like alma linux 9 and rocky linux 9 During the issue qemu-ga is running, connected and virsh qemu-agent-command default_vm3 ‘{“execute”:“guest-network-get-interfaces”}’ will successfully retrieve all the interfaces.
Also agent-poller thread retrieves and stores the interface info from qemu-ga every 120seconds as expected even during the issue.
Environment:
-
KubeVirt version (use
virtctl version): virtctl version Client Version: version.Info{GitVersion:“v1.1.0”, GitCommit:“v1.1.0”, GitTreeState:“clean”, BuildDate:“2023-11-02T22:28:28Z”, GoVersion:“go1.21.5”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{GitVersion:“v1.1.1”, GitCommit:“v1.1.1”, GitTreeState:“clean”, BuildDate:“2023-12-21T21:41:25Z”, GoVersion:“go1.21.9”, Compiler:“gc”, Platform:“linux/amd64”} -
Kubernetes version (use
kubectl version):
Client Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.13+rke2r1”, GitCommit:“96b450c75ae3c48037f651b4777646dcca855ed0”, GitTreeState:“clean”, BuildDate:“2024-04-16T20:10:57Z”, GoVersion:“go1.21.9 X:boringcrypto”, Compiler:“gc”, Platform:“linux/amd64”} Kustomize Version: v5.0.1 Server Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.13+rke2r1”, GitCommit:“96b450c75ae3c48037f651b4777646dcca855ed0”, GitTreeState:“clean”, BuildDate:“2024-04-16T20:10:57Z”, GoVersion:“go1.21.9 X:boringcrypto”, Compiler:“gc”, Platform:“linux/amd64”}
- VM or VMI specifications: Issue seen with https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-9.4-20240507.x86_64.qcow2)
- Cloud provider or hardware configuration: N/A
- OS (e.g. from /etc/os-release): N/A
- Kernel (e.g.
uname -a): N/A - Install tools: N/A
- Others: N/A
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 32 (13 by maintainers)
Commits related to this issue
- CI: Replace kubevirt dynamic inventory with generated yaml -> VirtualMachineInstance resources sometimes temporarily loose their IP (at least as far as the kubevirt controllers can see). See https://... — committed to VannTen/kubespray by VannTen 2 years ago
- CI: Replace kubevirt dynamic inventory with generated yaml VirtualMachineInstance resources sometimes temporarily loose their IP (at least as far as the kubevirt controllers can see). See https://git... — committed to VannTen/kubespray by VannTen 2 years ago
- CI: Replace kubevirt dynamic inventory with generated yaml VirtualMachineInstance resources sometimes temporarily loose their IP (at least as far as the kubevirt controllers can see). See https://git... — committed to VannTen/kubespray by VannTen 2 years ago
- Fix for https://github.com/kubevirt/kubevirt/issues/12698 1.Send updates of guestInfo only during a change 2.validate if guestos and interface info not empty — committed to rrajendran17/kubevirt by rrajendran17 2 years ago
- iFix for https://github.com/kubevirt/kubevirt/issues/12698 1.Send updates of guestInfo only during a change 2.validate if guestos and interface info not empty Signed-off-by: Renuka Devi Rajendran <re... — committed to rrajendran17/kubevirt by rrajendran17 2 years ago
- CI: Replace kubevirt dynamic inventory with generated yaml VirtualMachineInstance resources sometimes temporarily loose their IP (at least as far as the kubevirt controllers can see). See https://git... — committed to kpoxo6op/kubespray by VannTen 2 years ago
Hi @rrajendran17, I haven’t gotten to it yet. I hope to get to it by next week.
Hi @rrajendran17, I will look into it.