-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Reuse minikube-net network if it already exists for kvm driver #9610
Comments
/assign |
Hey @prezha this comment from a duplicate issue may be helpful to you: #9049 (comment)
|
hey @priyawadhwa , thank you for that, and on a first glance, i'm not sure if the fact that kvm driver shares the same network for all vms is an issue necessarily, but i'll have a look i'm sharing here some observations and proposals i have so far:
implies that the error is raised in createNetwork() it could be due to a race condition, ie, trying to recreate network that is still in the process of creation - depicted in call diagram:
[*] i'd propose to eliminate this call
now, nearly could be the key here, as
also, right after that createNetwork() call we call ensureNetwork() that should remediate any issues caused by someone/something messing the network next, i'd also propose to cleanup inactive networks in setupNetwork() before trying to create a new one, adding 1sec delay before and after it refs - all funcs mentioned above are in the
i'll create a pr with those proposals and welcome any comments |
@prezha soudns good thanks! I think cleaning up inactive networks is a good idea, as long as we make sure we are only cleaning up networks created by minikube that are no longer in use. |
@priyawadhwa great! yes, the idea would be to clean up only those nets that are no longer used btw, we are using libvirt v3.4.0 (from june 2017) and the current one is v6.8.0 (from oct 2020), but is potentially a separate topic |
Good catch, yah we could probably open a separate issue to upgrade libvirt |
@priyawadhwa i've submitted pr (#9641) with proposed changes above - please have a look and feedback also, i've created a separate issue for libvirt upgrade (#9642) |
We've been seeing a lot of errors on KVM (#8952) which are related to this error:
I was able to fix this manually on the machine by running these commands:
#2513 (comment)
It would be nice if, instead of having to manually run these commands, minikube could:
The text was updated successfully, but these errors were encountered: