Hello all,
Thanks for the nice wrapup, Stef! Some amendments:
Stef Walter [2017-07-04 11:37 +0200]:
Martin refactored Cockpit's access to libvirt to be more
efficient and
scalable with the number of VMs. It currently uses virsh.
https://github.com/cockpit-project/cockpit/pull/7131
This is a requisite for getting rid of most of the polling completely, which is
in <
https://github.com/cockpit-project/cockpit/pull/7141>. This moves to
event-based handling, which makes the whole UI a looooot more reactive.
At the same time Lars and Pavel started a DBus based wrapper for
libvirt. This wrapper should be maintained near other libvirt bindings,
such as libvirt-python.
https://github.com/larskarlitski/libvirt-dbus
If you want to play around with this, a port of Cockpit's Machine page to that
is in
https://github.com/martinpitt/cockpit/tree/machines-events-dbus
Note that this completely dropped all virsh calls and the associated helper
functions. :-) There is no PR yet, as this is still in the "Proof of Concept"
phase.
Martin