-
Notifications
You must be signed in to change notification settings - Fork 736
Remove support for libvirt as multipass backend #4365
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4365 +/- ##
==========================================
+ Coverage 89.24% 89.77% +0.52%
==========================================
Files 260 256 -4
Lines 17329 16872 -457
==========================================
- Hits 15465 15146 -319
+ Misses 1864 1726 -138 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should already be there, since daemon should link with libqemu.a. This absence caused problems when the CMakeLists.txt from libvirt, which contained daemon, was removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally both the build and the snap, both seem to work fine. All google tests also passed.
ea0e7aa to
49258bc
Compare
|
Additionally to all the changes directly related to libvirt I have found the following backend-dependant functions that could warrant a change/adaptation when LXD is removed:
Should I add a comment in the removable functions post LXD removal? |
|
Yes please @tobe2098. Well spotted! |
|
Hey Antoni, I noticed |
|
On it
Both LXD and libvirt (ofc also QEMU) use the functions on that folder. |
|
OK got it, that makes sense. I wouldn't object doing them together when removing LXD if you prefer. Up to you. You can also add TODO tags in the code if you think that's helpful. |
e55c739 to
9a19181
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a few nitpicks
f39edbb to
301d713
Compare
Reintroduced test that was removed due to inaccurate comments.
Added comments earmarking the functions that can be removed once both libvirt and LXD have been removed as backends.
On LXD removal the qemu_img_utils can be moved to the qemu backend since it is the only caller.
The ARP cache displays IP addresses that have recently been translated from a MAC address. It can potentially contains stale IP addresses so we return the most recent IP address (assuming IP addresses are assigned in sequential order).
Ubuntu Core images initialize themselves in two stages separated by a guest system reboot. An IP address is assigned to the guest during the first phase even though networking is not fully initialized. We wait until a fresh IP is assigned and the guest signals it is ready by sending a response from a ping.
301d713 to
3fde1f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
The pull request removes from the multipass repo all components related to libvirt. This is part of the effort to restrict multipass to a single backend per platform.
There may still be driver specific logic that has been missed in the initial scan over the code.
Fixes #4364.
MULTI-1891