-
Notifications
You must be signed in to change notification settings - Fork 489
Do not garbage collect IPs of stopped VMs using non-default multus networks #5557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Warning Gemini encountered an error creating the summary. You can try again by commenting |
bdc96d9
to
33e50d5
Compare
…tworks If a kubevirt VM: - is not using the default multus network - is stopped - does not have any annotation under `vm.Spec.Template.ObjectMeta.Annotations[nadv1.NetworkAttachmentAnnot]` Then GC would delete the IP of this VM. To fix, we ensure that we find the LSPs of VMs on the spec before it tries (and maybe fails) to get the LSPs defined as annotations Signed-off-by: Andrew Lee <[email protected]>
Pull Request Test Coverage Report for Build 16744851721Details
💛 - Coveralls |
What is the purpose of Could it be used to mount networks on the VM without using the native integration of KubeVirt? I struggle to see why someone would append Multus networks in this annotation when they could simply use the |
/gemini summary |
Summary of ChangesI've addressed a bug where the IP addresses of stopped Kubevirt VMs were being incorrectly garbage collected. This happened when VMs were configured with non-default Multus networks but did not have a specific network attachment annotation. My change ensures that the system correctly identifies and retains the IPs for these VMs by only attempting to process network attachment annotations when they are explicitly defined. Highlights
Changelog
Activity
|
I guess someone would like to inject other multus config like |
…tworks (#5557) If a kubevirt VM: - is not using the default multus network - is stopped - does not have any annotation under `vm.Spec.Template.ObjectMeta.Annotations[nadv1.NetworkAttachmentAnnot]` Then GC would delete the IP of this VM. To fix, we ensure that we find the LSPs of VMs on the spec before it tries (and maybe fails) to get the LSPs defined as annotations Signed-off-by: Andrew Lee <[email protected]> (cherry picked from commit f03180c)
Do not garbage collect IPs of stopped VMs using non-default multus networks
If a kubevirt VM:
vm.Spec.Template.ObjectMeta.Annotations[nadv1.NetworkAttachmentAnnot]
Then GC would delete the IP of this VM.
To fix, we ensure that we find the LSPs of VMs on the spec before it tries (and maybe fails) to get the LSPs defined as annotations
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #5556